/* ============================================================
   TABACO DE LIAR Y ENTUBAR — styles.css
   Paleta: Verde oscuro (#1a2e1a) / Dorado (#B8860B) / Crema (#F5F0E8)
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-dark:       #0f1f0f;
  --color-dark-2:     #1a2e1a;
  --color-dark-3:     #243624;
  --color-mid:        #2d4a2d;
  --color-gold:       #B8860B;
  --color-gold-light: #D4A017;
  --color-gold-pale:  #F0D060;
  --color-cream:      #F5F0E8;
  --color-cream-2:    #EDE7D9;
  --color-white:      #FFFFFF;
  --color-text:       #1a2e1a;
  --color-text-muted: #4a6a4a;
  --color-whatsapp:   #25D366;
  --color-whatsapp-d: #128C7E;
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-xl:        32px;
  --shadow-sm:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:        0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:        0 8px 40px rgba(0,0,0,.18);
  --transition:       0.25s ease;
  --font-sans:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:            1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TYPOGRAPHY ── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-dark-2);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: .75rem 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,134,11,.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(245,240,232,.5);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: rgba(245,240,232,.1);
  border-color: var(--color-cream);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-color: var(--color-whatsapp);
}
.btn--whatsapp:hover, .btn--whatsapp:focus-visible {
  background: var(--color-whatsapp-d);
  border-color: var(--color-whatsapp-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

.btn--sm  { font-size: .875rem; padding: .5rem 1.1rem; }
.btn--lg  { font-size: 1.05rem; padding: .9rem 2rem; }
.btn--xl  { font-size: 1.15rem; padding: 1.1rem 2.4rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; justify-content: center; }

/* ── TOP BAR ── */
.topbar {
  background: var(--color-dark);
  color: var(--color-cream-2);
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem 0;
}
.topbar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.topbar__badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-gold-pale);
}
.topbar__whatsapp {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-whatsapp);
  transition: color var(--transition);
}
.topbar__whatsapp:hover { color: #4de88a; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark-2);
  border-bottom: 1px solid rgba(184,134,11,.2);
  box-shadow: var(--shadow-md);
  transition: background var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  line-height: 1.1;
  text-decoration: none;
}
.header__logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.header__logo-text {
  display: flex;
  flex-direction: column;
}
.logo__main {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--color-cream);
}
.logo__accent {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: .06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__link {
  color: rgba(245,240,232,.8);
  font-size: .9rem;
  font-weight: 600;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav__link:hover, .nav__link:focus-visible {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  cursor: pointer;
  padding: .25rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark-2);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__content {
  padding: 5rem 0;
  max-width: 780px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(184,134,11,.2);
  border: 1px solid rgba(184,134,11,.4);
  color: var(--color-gold-pale);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__desc {
  font-size: 1.2rem;
  color: rgba(245,240,232,.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 3rem;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--color-gold-pale);
  font-size: .95rem;
  font-weight: 600;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── FEATURES ── */
.features {
  padding: 6rem 0;
  background: var(--color-white);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature__card {
  padding: 2.5rem 2rem;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition);
}
.feature__card:hover { transform: translateY(-5px); }
.feature__icon {
  width: 60px;
  height: 60px;
  background: var(--color-dark-2);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.feature__title { font-size: 1.25rem; font-weight: 800; margin-bottom: .75rem; color: var(--color-dark-2); }
.feature__desc { color: var(--color-text-muted); font-size: .95rem; }

/* ── WHY US ── */
.why-us { padding: 6rem 0; background: var(--color-cream-2); }
.why-us__content {
  columns: 2 300px;
  column-gap: 3rem;
  color: var(--color-text-muted);
}
.why-us__content p { margin-bottom: 1.5rem; }
.why-us__content strong { color: var(--color-dark-2); }

/* ── CTA MID ── */
.cta-mid {
  padding: 6rem 0;
  background: var(--color-dark-2);
  color: var(--color-cream);
  text-align: center;
}
.cta-mid__inner { max-width: 800px; margin: 0 auto; }
.cta-mid__icon { color: var(--color-gold); margin-bottom: 1.5rem; }
.cta-mid__title { font-size: 2.5rem; font-weight: 900; margin-bottom: 1.5rem; }
.cta-mid__text { font-size: 1.1rem; opacity: 0.8; margin-bottom: 2.5rem; }

/* ── PACKS ── */
.packs { padding: 6rem 0; background: var(--color-cream); }
.packs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}
.pack__card {
  background: var(--color-white);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.pack__card:hover { transform: translateY(-8px); }
.pack--featured { border: 2px solid var(--color-gold); }
.pack__badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-dark);
  padding: .4rem 1.2rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.pack__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.pack__price { font-size: 3rem; font-weight: 900; color: var(--color-dark-2); margin-bottom: .5rem; }
.pack__price span { font-size: 1rem; opacity: 0.5; font-weight: 600; }
.pack__per-kg { font-weight: 700; color: var(--color-gold); margin-bottom: 2rem; }
.pack__list { margin-bottom: 2.5rem; text-align: left; }
.pack__list li { padding: .5rem 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: .95rem; }

/* ── PRICE TABLE ── */
.price-table-container { max-width: 800px; margin: 0 auto; }
.price-table-title { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }
.price-table { width: 100%; border-collapse: collapse; background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 1.2rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,.05); }
.price-table th { background: var(--color-dark-2); color: var(--color-cream); font-weight: 700; }
.price-table .row--featured { background: rgba(184,134,11,.05); }
.price-table a { color: var(--color-gold); font-weight: 700; text-decoration: underline; }

/* ── STEPS ── */
.steps { padding: 6rem 0; background: var(--color-white); }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.step__card { text-align: center; position: relative; }
.step__number { font-size: 4rem; font-weight: 900; color: rgba(184,134,11,.1); position: absolute; top: -2rem; left: 50%; transform: translateX(-50%); z-index: 1; }
.step__icon { position: relative; z-index: 2; width: 80px; height: 80px; background: var(--color-cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--color-gold); border: 2px solid var(--color-gold); }
.step__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }

/* ── SHIPPING ── */
.shipping { padding: 6rem 0; background: var(--color-cream-2); }
.shipping__inner { display: flex; gap: 4rem; align-items: center; flex-wrap: wrap; }
.shipping__content { flex: 1; min-width: 300px; }
.shipping__list { margin: 2rem 0; }
.shipping__list li { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; font-weight: 600; }
.shipping__list svg { color: var(--color-gold); }
.shipping__visual { flex: 1; min-width: 300px; background: var(--color-dark-2); color: var(--color-cream); padding: 4rem 2rem; border-radius: var(--radius-xl); text-align: center; }
.shipping__map-icon { margin-bottom: 1.5rem; color: var(--color-gold); }
.shipping__map-text { font-size: 1.25rem; font-weight: 700; }

/* ── GUIDE ── */
.guide { padding: 6rem 0; background: var(--color-white); }
.guide__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.guide__card { padding: 2rem; background: var(--color-cream); border-radius: var(--radius-lg); }
.guide__icon { color: var(--color-gold); margin-bottom: 1rem; }
.guide__card h3 { margin-bottom: 1rem; font-size: 1.2rem; }

/* ── TESTIMONIALS ── */
.testimonials { padding: 6rem 0; background: var(--color-dark-2); color: var(--color-cream); }
.testimonials__carousel { display: flex; gap: 2rem; animation: carouselScroll 60s linear infinite; will-change: transform; }
@keyframes carouselScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonials__carousel:hover { animation-play-state: paused; }
.testimonial__card { background: #ffffff; padding: 2rem; border-radius: 12px; min-width: 280px; max-width: 320px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.testimonial__stars { color: #FFC107; margin-bottom: 1rem; font-size: 1.3rem; letter-spacing: .2rem; }
.testimonial__text { font-style: italic; margin-bottom: 1rem; font-size: 0.9rem; color: #333333; line-height: 1.5; }
.testimonial__name { font-weight: 700; color: #000000; margin-top: 0.8rem; font-style: normal; display: block; font-size: 0.95rem; line-height: 1.4; }
.testimonial__location { font-size: 0.85rem; color: #666666; font-weight: 400; }

/* ── FAQ ── */
.faq { padding: 6rem 0; background: var(--color-cream); }
.faq__grid { max-width: 800px; margin: 0 auto; }
.faq__item { background: var(--color-white); border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq__question { padding: 1.5rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__question::after { content: '+'; font-size: 1.5rem; color: var(--color-gold); }
.faq__item[open] .faq__question::after { content: '−'; }
.faq__answer { padding: 0 1.5rem 1.5rem; color: var(--color-text-muted); }

/* ── CTA FINAL ── */
.cta-final { padding: 8rem 0; background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%); color: var(--color-cream); text-align: center; }
.cta-final__inner { max-width: 700px; margin: 0 auto; }
.cta-final__title { font-size: 3rem; font-weight: 900; margin-bottom: 1.5rem; }
.cta-final__text { font-size: 1.25rem; opacity: 0.8; margin-bottom: 3rem; }

/* ── FOOTER ── */
.footer { background: var(--color-dark); color: var(--color-cream); padding: 5rem 0 2rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4rem; margin-bottom: 4rem; }
.footer__brand { max-width: 400px; }
.footer__logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.footer__logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.footer__logo-text { display: flex; flex-direction: column; }
.footer__tagline { opacity: 0.6; font-size: .95rem; }
.footer__nav { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer__nav-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--color-gold); }
.footer__nav-group a { display: block; margin-bottom: .75rem; opacity: 0.7; transition: opacity var(--transition); }
.footer__nav-group a:hover { opacity: 1; color: var(--color-gold); }
.footer__bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.05); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; opacity: 0.5; }
.footer__legal { display: flex; gap: 2rem; }

/* ── WA FLOAT ── */
.wa-float { position: fixed; bottom: 30px; right: 30px; width: 64px; height: 64px; background: var(--color-whatsapp); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(37,211,102,.4); z-index: 999; transition: transform .3s ease; }
.wa-float:hover { transform: scale(1.1) rotate(5deg); }
.wa-float__tooltip { position: absolute; right: 80px; background: #333; color: #fff; padding: .5rem 1rem; border-radius: 8px; font-size: .85rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.wa-float:hover .wa-float__tooltip { opacity: 1; }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-dark-2); padding: 2rem; flex-direction: column; align-items: flex-start; border-bottom: 2px solid var(--color-gold); }
  .nav--open { display: flex; }
  .nav__toggle { display: block; }
  .hero { min-height: auto; }
  .hero__content { padding: 4rem 0; }
  .why-us__content { columns: 1; }
  .shipping__inner { flex-direction: column; }
}

/* ── MOBILE OPTIMIZATIONS ── */
@media (max-width: 768px) {
  .section-header { text-align: center; padding: 0 10px; }
  .section-title { font-size: 1.8rem; }
  
  /* Alineación de la sección CTA-MID (Ahorro) */
  .cta-mid__title { font-size: 1.8rem; text-align: center; }
  .cta-mid__text { text-align: center !important; }
  .cta-mid__text p { text-align: center !important; }
  .cta-mid__text table { font-size: 0.8rem; }
  .cta-mid__text th, .cta-mid__text td { padding: 10px 5px; }
  
  /* Alineación de Testimonios */
  .testimonials .section-header { display: flex; flex-direction: column; align-items: center; }
  
  /* Ajustes de Hero */
  .hero__title { font-size: 2rem; text-align: center; }
  .hero__desc { text-align: center; margin: 0 auto 2rem; }
  .hero__actions { justify-content: center; }
  .hero__features { justify-content: center; }
  
  /* Ajustes de Footer */
  .footer__inner { flex-direction: column; text-align: center; gap: 2rem; }
  .footer__brand, .footer__nav { max-width: 100%; align-items: center; justify-content: center; }
  .footer__logo { justify-content: center; }
  .footer__nav { flex-direction: column; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; gap: 1rem; }
  
  /* Asegurar visibilidad del botón de WhatsApp en móvil */
  .wa-float {
    display: flex !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
