/* ===== VARIABLES ===== */
:root {
  --honey:    #C8722A;
  --amber:    #E8943A;
  --cream:    #FDF6EC;
  --warm:     #F5E6D0;
  --terracota:#A0522D;
  --dark:     #2C1A0E;
  --olive:    #6B7C3A;
  --white:    #FFFFFF;
  --shadow:   rgba(44,26,14,0.15);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', sans-serif;
  --radius: 18px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(253,246,236,0.97);
  box-shadow: 0 2px 20px var(--shadow);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 52px; object-fit: contain; }
.nav-links {
  list-style: none; display: flex; gap: 36px;
}
.nav-links a {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark);
  position: relative; padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--honey);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--honey); }
.nav-links a:hover::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--honey);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(200,114,42,0.35);
}
.btn-primary:hover {
  background: var(--terracota);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200,114,42,0.45);
}
.btn-secondary {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 13px 34px;
  border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--honey);
  transform: translateY(-3px);
}

/* ===== SECTION TAGS ===== */
.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--honey);
  margin-bottom: 10px;
}
.section-tag.light { color: rgba(255,255,255,0.8); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.section-header p { color: #7a5c3a; font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: url('../assets/images/productos.jpeg') center/cover no-repeat;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,26,14,0.72) 0%, rgba(200,114,42,0.45) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 0 24px;
  max-width: 700px;
}
.hero-tag {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1; margin-bottom: 20px;
}
.hero-title em { color: var(--amber); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px; line-height: 1.6;
}
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block; width: 2px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== NOSOTROS ===== */
.nosotros { padding: 100px 0; background: var(--cream); }
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.nosotros-img { position: relative; }
.nosotros-img img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px var(--shadow);
  width: 100%; height: 480px; object-fit: cover;
}
.badge-years {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--honey);
  color: var(--white);
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(200,114,42,0.5);
  animation: pulse 3s ease-in-out infinite;
}
.badge-num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.badge-text { font-size: 0.7rem; font-weight: 700; text-align: center; letter-spacing: 0.05em; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}
.nosotros-text h2 {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px; line-height: 1.2;
}
.nosotros-text p { color: #5a3e28; line-height: 1.8; margin-bottom: 16px; font-size: 1.05rem; }
.pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px;
}
.pillar {
  display: flex; align-items: center; gap: 10px;
  background: var(--warm); border-radius: 12px; padding: 14px 16px;
  font-weight: 700; font-size: 0.9rem; color: var(--dark);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 8px 20px var(--shadow); }
.pillar-icon { font-size: 1.4rem; }

/* ===== PRODUCTOS ===== */
.productos { padding: 100px 0; background: var(--warm); }
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.producto-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.producto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(44,26,14,0.2);
}
.producto-img-wrap { position: relative; overflow: hidden; height: 240px; }
.producto-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.producto-card:hover .producto-img-wrap img { transform: scale(1.08); }
.producto-overlay {
  position: absolute; inset: 0;
  background: rgba(200,114,42,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.producto-card:hover .producto-overlay { opacity: 1; }
.producto-overlay span {
  color: var(--white); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 2px solid var(--white); padding: 10px 24px; border-radius: 50px;
}
.producto-info { padding: 20px 22px 24px; }
.producto-info h3 {
  font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 8px;
}
.producto-info p { color: #7a5c3a; font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.tag-natural {
  display: inline-block;
  background: var(--olive); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 50px;
}

/* ===== ESTRELLA ===== */
.estrella {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--terracota) 0%, var(--honey) 60%, var(--amber) 100%);
  color: var(--white);
}
.estrella-bg {
  position: absolute; inset: 0;
  background: url('../assets/images/producto_estrella.jpeg') center/cover no-repeat;
  opacity: 0.12;
}
.estrella-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.estrella-text h2 {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px; line-height: 1.2;
}
.estrella-text p { font-size: 1.05rem; line-height: 1.8; opacity: 0.92; margin-bottom: 32px; }
.estrella-img { position: relative; display: flex; justify-content: center; }
.estrella-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  filter: blur(40px);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.estrella-img img {
  width: 380px; height: 380px; object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative; z-index: 1;
  animation: floatImg 4s ease-in-out infinite;
}
@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* ===== CONTACTO ===== */
.contacto { padding: 100px 0; background: var(--cream); }
.redes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.red-card {
  display: flex; align-items: center; gap: 20px;
  padding: 28px 28px;
  border-radius: var(--radius);
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.red-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.red-card:hover::before { transform: translateX(0); }
.red-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.whatsapp  { background: linear-gradient(135deg, #128C7E, #25D366); }
.facebook  { background: linear-gradient(135deg, #1877F2, #42A5F5); }
.instagram { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); }
.email-gradient { background: linear-gradient(135deg, #B71C1C, #D32F2F, #E53935); }
.tiktok { background: linear-gradient(135deg, #000000, #010101, #69C9D0); }



.red-icon { width: 52px; height: 52px; flex-shrink: 0; }
.red-icon svg { width: 100%; height: 100%; }
.red-info h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 4px; }
.red-info p  { font-size: 0.9rem; opacity: 0.85; }
.red-arrow { margin-left: auto; font-size: 1.5rem; opacity: 0.7; transition: transform var(--transition); }
.red-card:hover .red-arrow { transform: translateX(6px); opacity: 1; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  text-align: center; padding: 48px 24px;
}
.footer-logo { height: 56px; margin: 0 auto 20px; object-fit: contain; }
.footer p { font-size: 0.9rem; margin-bottom: 6px; }
.footer-love { font-size: 1rem; color: var(--amber); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal       { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nosotros-grid, .estrella-grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-img img { height: 320px; }
  .estrella-img img { width: 280px; height: 280px; }
  .estrella-glow { width: 260px; height: 260px; }
  .badge-years { right: 12px; bottom: -16px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); padding: 20px 24px; box-shadow: 0 8px 20px var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .pillars { grid-template-columns: 1fr; }
  .productos-grid { grid-template-columns: 1fr; }
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(44,26,14,0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-backdrop.open {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: var(--cream);
  border-radius: var(--radius);
  max-width: 520px; width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: scale(0.88) translateY(30px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-box img {
  width: 100%; height: 320px; object-fit: cover;
}
.modal-box h3 {
  font-family: var(--font-serif); font-size: 1.5rem;
  padding: 20px 24px 8px; color: var(--dark);
}
.modal-box p {
  padding: 0 24px 24px; color: #7a5c3a; line-height: 1.7; font-size: 0.95rem;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(44,26,14,0.6); color: var(--white);
  border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--honey); }
