/* =============================================
   RATÓN DE LIMÓN — Estilos principales
   Paleta: Limón #E8E04A | Salvia #6B8F5E | Crema #FAF7F0 | Carbón #2C2C2C
   ============================================= */

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

:root {
  --limon:    #E8E04A;
  --limon-d:  #C8C030;
  --salvia:   #6B8F5E;
  --salvia-d: #4E6B44;
  --crema:    #FAF7F0;
  --crema-d:  #F0EBE0;
  --carbon:   #2C2C2C;
  --gris:     #6B6B6B;
  --blanco:   #FFFFFF;
  --radio:    12px;
  --radio-lg: 24px;
  --sombra:   0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--crema);
  color: var(--carbon);
  line-height: 1.6;
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; }
em { font-style: italic; color: var(--salvia); }

/* --- NAVBAR --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--crema);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--crema-d);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--carbon);
}
.logo-icon { font-size: 1.5rem; }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.logo-footer {
  height: 72px;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--carbon);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--salvia); }

.btn-nav {
  background: var(--limon) !important;
  color: var(--carbon) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--limon-d) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--carbon);
}

.nav-links.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  background: var(--crema);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--crema-d);
  gap: 1.2rem;
  z-index: 99;
}

/* --- HERO --- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 2rem;
  aspect-ratio: 1200 / 630;
  background: url('/img/og-image.jpg') center center / cover no-repeat;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: var(--salvia);
  color: var(--blanco);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
}

.hero-tag {
  display: inline-block;
  background: var(--salvia);
  color: var(--blanco);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title { margin-bottom: 1.2rem; }

.hero-sub {
  color: var(--gris);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: auto; }

.hero-content {
  max-width: 680px;
}

.blob {
  width: 380px;
  height: 380px;
  background: var(--limon);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%       { border-radius: 40% 60% 45% 55% / 60% 40% 50% 50%; }
  66%       { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
}

/* --- BOTONES --- */
.btn-primary {
  display: inline-block;
  background: var(--salvia);
  color: var(--blanco);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary:hover { background: var(--salvia-d); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--carbon);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--carbon);
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--carbon); color: var(--blanco); }

.btn-small {
  display: inline-block;
  background: var(--limon);
  color: var(--carbon);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-small:hover { background: var(--limon-d); }

/* --- FEATURES --- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 3rem 4rem;
  background: var(--salvia);
}

.feature {
  text-align: center;
  color: var(--blanco);
  padding: 1.5rem 1rem;
}
.feature-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--limon); }
.feature p { font-size: 0.9rem; opacity: 0.85; }

/* --- SECCIONES GENERALES --- */
.section {
  padding: 5rem 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  color: var(--gris);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  color: var(--salvia);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.section-cta { text-align: center; margin-top: 3rem; }

/* --- PRODUCTO CARDS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.product-img-placeholder {
  background: var(--crema-d);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.badge-agotado {
  display: inline-block;
  background: #e0e0e0;
  color: #888;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.4rem;
}
.btn-agotado {
  background: #e0e0e0 !important;
  color: #888 !important;
  cursor: default;
}

.product-info { padding: 1.2rem 1.4rem 1.4rem; }

.product-tag {
  display: inline-block;
  background: var(--crema-d);
  color: var(--salvia-d);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

.product-info h3 { margin-bottom: 0.4rem; }
.product-info p { color: var(--gris); font-size: 0.9rem; margin-bottom: 1rem; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--salvia-d);
}

/* --- NOSOTROS --- */
.nosotros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  background: var(--crema-d);
}

.nosotros-text h2 { margin-bottom: 1.2rem; }
.nosotros-text p { color: var(--gris); margin-bottom: 1rem; }
.nosotros-text .btn-secondary { margin-top: 1rem; }

.nosotros-blob {
  width: 320px;
  height: 320px;
  background: var(--limon);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin: 0 auto;
}

/* --- CONTACTO --- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--crema-d);
  border-radius: var(--radio);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: var(--blanco);
  transition: border-color 0.2s;
  outline: none;
}
.contacto-form input:focus,
.contacto-form textarea:focus { border-color: var(--salvia); }
.contacto-form textarea { resize: vertical; }

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contacto-item span { font-size: 1.4rem; }
.contacto-item p { color: var(--gris); }

/* --- FOOTER --- */
.footer {
  background: var(--carbon);
  color: var(--blanco);
  padding: 3rem 4rem 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.8rem;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.footer-links h4,
.footer-social h4 {
  color: var(--limon);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--limon); }

.social-links { display: flex; flex-direction: column; gap: 0.6rem; }
.social-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--limon); }

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero {
    padding: 1.5rem 1rem;
  }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .blob { width: 260px; height: 260px; font-size: 5rem; }

  .features { grid-template-columns: repeat(2, 1fr); padding: 2rem; }

  .section { padding: 3rem 2rem; }

  .product-grid { grid-template-columns: 1fr; max-width: 400px; }

  .nosotros { grid-template-columns: 1fr; gap: 2rem; }
  .nosotros-img { display: none; }

  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-top { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 480px) {
  .navbar { padding: 1rem; }
  .features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer { padding: 2rem 1.5rem 1rem; }
}
