@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary: #ff6b6b;
  --primary-dark: #ee5253;
  --secondary: #4834d4;
  --accent: #f9ca24;
  --dark: #ec822c;
  --dark-hover: #d4700f;
  --text: #2d2d2d;
  --light: #f1f2f6;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* === Header & Navigation === */
.header_cont {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.logo {
  max-width: 90px;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.menu-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-header {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--dark);
}

.btn-header i {
  font-size: 1.2rem;
  color: var(--text);
}

/* === Hero Section === */
.presentacion {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/img/fondo.png') center/cover no-repeat;
  margin-bottom: 40px;
}

.presentacion-contenido {
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}

.h1_presentacion {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nuestro-menu {
  background: var(--primary);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
  transition: var(--transition);
}

.nuestro-menu:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(255, 107, 107, 0.5);
}

/* === Products List === */
.productos_cont {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.productos_cont h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}

.productos_cont h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  padding: 20px 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0;
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  width: auto;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.producto-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.1);
}

.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: space-between;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.stock-tag {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
  display: block;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: auto;
}

.stock-badge.disponible {
  background: rgba(46, 204, 113, 0.15);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.stock-badge.agotado {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* === Carrito === */
.carrito_cont {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
  background: transparent;
}

.glass-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  background: transparent;
  box-shadow: none;
}

thead {
  background: transparent;
  color: #666;
}

th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0 20px;
}

tbody tr {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

tbody td {
  padding: 20px;
  border: none;
}

tbody td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

tbody td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.btn-qty {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  transition: var(--transition);
  margin: 0;
}

.btn-qty:hover {
  background: var(--dark);
  color: var(--white);
}

/* === Form Checkout === */
#checkout-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 60px auto;
  max-width: 800px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.full-width {
  grid-column: span 2;
}

.form-group {
  margin-bottom: 24px;
  width: 100%;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

input,
select,
textarea {
  width: 100% !important;
  padding: 14px 18px !important;
  border: 2px solid var(--light) !important;
  border-radius: var(--radius-sm) !important;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  margin: 0 !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  background: var(--white);
}

.pago-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.pago-option {
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
}

.pago-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(255, 107, 107, 0.05);
}

.pago-option input {
  width: auto !important;
}

/* === Footer === */
#footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 24px 40px;
  margin-top: 100px;
  box-shadow: 0 -4px 20px rgba(236, 130, 44, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: left;
}

.footer-section h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.admin-link:hover {
  color: var(--white);
}

.portafolio-gabo-dev {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.portafolio-gabo-dev:hover {
  color: var(--white);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.85);
}

/* === Responsive Utilities === */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* === Toast Notifications === */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #2d2d2d;
  color: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  min-width: 280px;
  transform: translateY(100px);
  opacity: 0;
  animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  border-left: 4px solid var(--dark);
}

.toast.success {
  border-left-color: #2ecc71;
}

.toast.error {
  border-left-color: #e74c3c;
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}



.redes-btn {
  background: #25d366;
  padding: 12px 24px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: var(--transition);
}

.redes-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}


/* === Admin styles === */
.admin-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--dark-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #2d2d2d;
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .pago-options {
    grid-template-columns: 1fr;
  }

  .h1_presentacion {
    font-size: 2.8rem;
  }
}