/* Colores tomados directamente del logotipo:
   --primary: #0D3B6E (azul marino del texto) | --accent: #3D8B28 (verde casa/hoja) */

:root {
  --primary:     #0D3B6E;   /* Azul marino del logotipo */
  --accent:      #3D8B28;   /* Verde del logotipo */
  --accent-light:#5AAE3E;   /* Verde claro */
  --blue-dark:   #071F3A;   /* Azul muy oscuro */
  --muted:       #EAF7EE;
  --muted-blue:  #E8EEF8;
  --bg:          #F5FAF6;
  --dark:        #071F3A;   /* Azul oscuro (fondo bases/footer) */
  --white:       #ffffff;
  --text:        #0D1A2D;
  --text-muted:  #4A6080;
  --glass:       rgba(255,255,255,.12);
  --glass-border:rgba(255,255,255,.2);
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 8px 32px rgba(13,59,110,.18);
  --shadow-lg:   0 20px 60px rgba(13,59,110,.25);
  --t:           .3s cubic-bezier(.4,0,.2,1);
  --header-h:    72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
em    { font-style: normal; color: var(--accent); }

/* ── SCROLL ANIMATIONS ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .8s var(--t), transform .8s var(--t);
}
.reveal[data-delay=".1"]  { transition-delay: .1s; }
.reveal[data-delay=".2"]  { transition-delay: .2s; }
.reveal[data-delay=".25"] { transition-delay: .25s; }
.reveal[data-delay=".3"]  { transition-delay: .3s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity var(--t);
}
.btn:hover::after { opacity: 1; }
.btn:hover        { transform: translateY(-3px); }
.btn:active       { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.btn--full        { width: 100%; justify-content: center; }

.btn--glow {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(61,139,40,.4);
  animation: pulse-glow 2.5s infinite;
}
.btn--glow:hover { box-shadow: 0 12px 32px rgba(61,139,40,.5); animation: none; }

.btn--ghost {
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-color: var(--glass-border);
}
.btn--ghost:hover { background: rgba(255,255,255,.2); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}
.btn--primary:hover { box-shadow: var(--shadow); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover { background: var(--white); color: var(--primary); }

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(61,139,40,.5); }
  50%      { box-shadow: 0 0 0 14px rgba(61,139,40,.0); }
}

/* ── LAYOUT ──────────────────────────────── */
.container    { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section      { padding: 6rem 0; }
.section--forest { padding: 7rem 0; position: relative; overflow: hidden; }
.section--dark   { background: var(--dark); }

.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: .4rem 0 .75rem;
}
.section__sub { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.section__header--light h2 { color: var(--white); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--muted);
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .6rem;
}
.tag--light { color: var(--white); background: rgba(255,255,255,.15); }

/* ── HEADER ──────────────────────────────── */
#header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 200;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
#header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(13,59,110,.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img {
  height: 72px;
  width: auto;
  background: rgba(255,255,255,.97);
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: 0 2px 18px rgba(0,0,0,.22);
  transition: transform var(--t), box-shadow var(--t);
}
.nav__logo:hover img { transform: scale(1.04); box-shadow: 0 4px 24px rgba(0,0,0,.28); }

.nav__links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  padding: 1.25rem 0 1.75rem;
  box-shadow: 0 12px 32px rgba(42,107,26,.14);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.nav__links.open { display: flex; }
.nav__links li a {
  display: block;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  transition: color var(--t), padding-left var(--t);
}
.nav__links li a:hover { color: var(--accent); padding-left: 2.4rem; }
.nav__btn {
  margin: .75rem 2rem 0 !important;
  padding: .65rem 1.5rem !important;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white) !important;
  border-radius: 50px;
  text-align: center;
}
.nav__btn:hover { padding-left: 1.5rem !important; opacity: .9; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}
#header.scrolled .nav__toggle span { background: var(--primary); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 5rem;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('imagenes/hero-bg.webp');
  background-size: cover;
  background-position: center;
  animation: kenBurns 25s ease-out infinite alternate;
  will-change: transform;
}
@media (max-width: 959px) {
  .hero__bg { background-image: url('imagenes/hero-bg-mobile.webp'); }
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translateX(0); }
  100% { transform: scale(1.12) translateX(-2%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(7,31,58,.88) 0%,
    rgba(13,59,110,.62) 50%,
    rgba(7,31,58,.90) 100%
  );
}

/* ── HERO PARTICLES ──────────────────────── */
.hero__particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.p {
  position: absolute;
  bottom: -20px;
  width: 8px;
  height: 12px;
  background: rgba(255,255,255,.18);
  border-radius: 50% 0 50% 0;
  animation: floatUp 14s infinite ease-in;
}
.p:nth-child(1)  { left:5%;  width:6px;  height:9px;  animation-delay:0s;    animation-duration:12s; }
.p:nth-child(2)  { left:15%; width:10px; height:15px; animation-delay:2s;    animation-duration:16s; opacity:.7; }
.p:nth-child(3)  { left:28%; width:5px;  height:8px;  animation-delay:4s;    animation-duration:11s; }
.p:nth-child(4)  { left:42%; width:8px;  height:12px; animation-delay:1s;    animation-duration:15s; opacity:.5; }
.p:nth-child(5)  { left:58%; width:6px;  height:10px; animation-delay:3s;    animation-duration:13s; }
.p:nth-child(6)  { left:70%; width:12px; height:18px; animation-delay:5s;    animation-duration:18s; opacity:.6; }
.p:nth-child(7)  { left:82%; width:7px;  height:11px; animation-delay:1.5s;  animation-duration:14s; }
.p:nth-child(8)  { left:92%; width:5px;  height:8px;  animation-delay:3.5s;  animation-duration:10s; opacity:.8; }
.p:nth-child(9)  { left:35%; width:9px;  height:14px; animation-delay:6s;    animation-duration:17s; opacity:.4; }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  5%   { opacity: .8; }
  80%  { opacity: .3; }
  100% { transform: translateY(-110vh) rotate(540deg); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: heroFadeIn 1.2s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.25rem;
  animation: heroFadeIn 1s .2s ease both;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .05em;
}
.hero__title span { display: block; animation: heroFadeIn 1s ease both; }
.hero__title span:nth-child(1) { animation-delay: .3s; }
.hero__title span:nth-child(2) { animation-delay: .5s; }
.hero__title span:nth-child(3) { animation-delay: .7s; }
.hero__title-accent {
  background: linear-gradient(90deg, #7dcf56, #b4f067, #5aba3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: heroFadeIn 1s .5s ease both, shimmerText 4s 1.5s ease infinite alternate;
}
@keyframes shimmerText {
  0%   { background-position: 0%; }
  100% { background-position: 100%; }
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: heroFadeIn 1s .9s ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: heroFadeIn 1s 1.1s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: heroFadeIn 1s 1.4s ease both;
  z-index: 2;
}
.hero__scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: scaleY(1); transform-origin: top; }
  50%      { transform: scaleY(.6); }
}
@media (max-width: 639px) {
  /* En celular el hero mide más que la pantalla (min-height: 100vh),
     así que este indicador ("Descubre más" + línea), al estar con
     "position: absolute; bottom: 5.5rem" respecto del hero, termina
     cayendo encima del botón "Ver bases legales" y de los íconos de
     Instagram/TikTok en vez de quedar abajo de todo. Se oculta en
     pantallas chicas porque ahí no aporta nada (el usuario ya sabe
     que puede seguir bajando) y en desktop se deja igual, donde sí
     se ve bien.
  */
  .hero__scroll { display: none; }
}

.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 80px; }

/* ── CONÓCENOS ───────────────────────────── */
.conocenos__layout {
  display: grid;
  gap: 3.5rem;
  margin-top: .5rem;
}
.lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.conocenos__text > p:not(.lead) { color: var(--text-muted); margin-bottom: 1.25rem; }

.feature-list { display: flex; flex-direction: column; gap: .85rem; margin: 1.5rem 0 2rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .85rem; font-weight: 500; }
.feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(61,139,40,.35);
}

.company-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(42,107,26,.1);
  border-left: 4px solid var(--accent);
}
.company-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1.1rem;
  font-size: .88rem;
}
.company-card dt { font-weight: 700; color: var(--primary); white-space: nowrap; }
.company-card dd { color: var(--text-muted); }

.conocenos__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4/3;
}
.conocenos__img {
  width: 100%; height: 100%;
  background-image: url('imagenes/conocenos-bg.webp');
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.conocenos__img-wrap:hover .conocenos__img { transform: scale(1.04); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--t);
}
.stat:hover { transform: translateY(-4px); }
.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat__label { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; font-weight: 500; }

/* ── PRODUCTS ────────────────────────────── */
.section__forest-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,18,18,.82), rgba(30,30,30,.90)),
    url('imagenes/products-bg.webp');
  background-size: cover;
  background-position: center;
}

.products {
  display: grid;
  gap: 2rem;
  margin-top: .5rem;
}

.product-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--t);
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.product-card--hero {
  box-shadow: 0 8px 40px rgba(0,0,0,.3), 0 0 0 3px var(--accent-light);
}

.product-card__ribbon {
  position: absolute;
  top: -1px; right: 1.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .45rem 1.1rem .35rem;
  border-radius: 0 0 12px 12px;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(61,139,40,.45);
}

.product-card__media {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.product-card__media--1 {
  background-image: url('imagenes/card-1.webp');
}
.product-card__media--2 {
  background-image: url('imagenes/card-2.webp');
}
.product-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,30,10,.35) 0%, rgba(255,255,255,.7) 100%);
}
.product-card__sticker {
  position: relative;
  z-index: 1;
  max-height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.3));
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.product-card:hover .product-card__sticker { transform: scale(1.08) rotate(-2deg); }

.product-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .75rem;
  gap: 1rem;
}
.product-card__top h3 { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.product-card__price {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.product-card__unit {
  display: block;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}
.product-card__body > p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.1rem; }
.product-card__perks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.product-card__perks li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.product-card__perks li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── BASES ───────────────────────────────── */
.bases__content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 0;
}
.bases__content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin: .5rem 0 1.5rem; }
.bases__content p { color: rgba(255,255,255,.8); margin-bottom: 1rem; font-size: 1.02rem; }
.bases__content strong { color: var(--white); }
.cve {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: .2rem .8rem;
  border-radius: 8px;
  font-size: .9rem;
  letter-spacing: .05em;
}
.bases__content .btn { margin-top: 1.25rem; gap: .6rem; }

/* ── CONTACTO ────────────────────────────── */
.contact__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; margin-top: .5rem; }

.contact__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--muted);
  color: var(--accent);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all var(--t);
}
.contact__item:hover .contact__icon { background: var(--accent); color: var(--white); transform: scale(1.05); }
.contact__item div { display: flex; flex-direction: column; gap: .2rem; padding-top: .25rem; min-width: 0; }
.contact__item strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 600; }
.contact__item a, .contact__item span { font-weight: 500; color: var(--text); font-size: .95rem; overflow-wrap: anywhere; }
.contact__item a:hover { color: var(--accent); }

/* Floating label form */
.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { position: relative; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.4rem 1.2rem .6rem;
  border: 2px solid #d4e8d4;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-group label {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
  transition: all var(--t);
  background: transparent;
}
.form-group textarea ~ label { top: 1.25rem; transform: none; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61,139,40,.1); }
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: .45rem;
  transform: none;
  font-size: .72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
}
.form-group textarea { resize: vertical; min-height: 130px; padding-top: 1.6rem; }
.form-group input.error,
.form-group textarea.error { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.1); }
.form__status { font-size: .9rem; min-height: 1.4em; font-weight: 500; }
.form__status.success  { color: var(--accent); }
.form__status.error-msg { color: #c0392b; }

/* ── GALLERY ──────────────────────────────── */
.gallery { overflow: hidden; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 400px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  margin: 0;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 7s ease;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(7,31,58,.88) 0%, transparent 100%);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  padding: 2.5rem 1.4rem 1rem;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t), transform var(--t);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }

/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.75); font-size: .875rem; }
.footer__top {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 1.5rem 2.5rem;
}
.footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  padding: 5px 12px;
}
.footer__hook {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1.1rem;
  letter-spacing: -.01em;
}
.footer__hook em { color: #7dcf56; font-style: normal; }
.footer__brand p   { line-height: 1.9; opacity: .7; font-size: .92rem; }
.footer__cve       { display: inline-block; margin-top: .5rem; font-size: .78rem; color: rgba(255,255,255,.45); letter-spacing: .05em; }

.footer__nav, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer__nav > span, .footer__contact > span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-light);
  margin-bottom: .25rem;
}
.footer__nav a, .footer__contact a, .footer__contact span, .footer__contact small {
  color: rgba(255,255,255,.6);
  transition: color var(--t);
  font-size: .875rem;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--white); }
.footer__contact small { opacity: .5; font-size: .8rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 1.5rem;
}
.footer__bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
  font-size: .8rem;
  opacity: .5;
}

/* ── RESPONSIVE: TABLET ──────────────────── */
@media (min-width: 640px) {
  .products           { grid-template-columns: repeat(2, 1fr); }
  .stats-grid         { grid-template-columns: repeat(3, 1fr); }
  .footer__top        { grid-template-columns: repeat(2, 1fr); }
  .hero__title        { font-size: clamp(2.6rem, 7vw, 4.2rem); }
  .prize__grid        { grid-template-columns: repeat(4, 1fr); }
  .trust__grid        { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 639px) {
  .gallery__grid      { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery__item      { height: 210px; }
  .gallery__item:last-child { grid-column: 1 / -1; }
  .gallery__caption   { opacity: 1; transform: translateY(0); }

  /* Compactar tarjetas de estadísticas para que las 3 quepan sin cortarse */
  .stats-grid         { gap: .55rem; }
  .stat               { padding: 1.25rem .5rem; }
  .stat__num          { font-size: 1.5rem; }
  .stat__label        { font-size: .7rem; }
}

/* ── HERO SOCIAL ─────────────────────────── */
.hero__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.6rem;
  animation: heroFadeIn 1s 1.3s ease both;
  flex-wrap: wrap;
}
.hero__social-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hero__social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--t);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hero__social a:hover { transform: translateY(-2px); }
.hero__social a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(220,39,67,.4);
}
.hero__social a[href*="tiktok"]:hover {
  background: #111;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}

/* ── NAV SOCIAL ICONS ────────────────────── */
.nav__social-item { display: none; }
.nav__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .55rem;
  color: rgba(255,255,255,.9);
  transition: color var(--t), transform var(--t);
}
#header.scrolled .nav__social-icon { color: var(--text); }
.nav__social-icon:hover { transform: scale(1.18) translateY(-1px); }
.nav__social-icon[href*="instagram"]:hover { color: #e1306c; }
.nav__social-icon[href*="tiktok"]:hover    { color: var(--primary); }
#header:not(.scrolled) .nav__social-icon[href*="instagram"]:hover { color: #ffb3c8; }
#header:not(.scrolled) .nav__social-icon[href*="tiktok"]:hover    { color: rgba(255,255,255,.7); }

@media (min-width: 960px) {
  .nav__social-item { display: flex; align-items: center; }
}

/* ── CONTACT ICON VARIANTS ───────────────── */
.contact__icon--ig:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888) !important; color: var(--white) !important; }
.contact__icon--tt:hover { background: #111 !important; color: var(--white) !important; }
.contact__icon--wa:hover { background: #25D366 !important; color: var(--white) !important; }

/* ── FOOTER SOCIAL ───────────────────────── */
.footer__social {
  display: flex;
  gap: .75rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.footer__social-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  transition: all var(--t);
  white-space: nowrap;
}
.footer__social-btn:hover { transform: translateY(-2px); color: var(--white); }
.footer__social-btn--ig:hover {
  background: linear-gradient(45deg,#f09433,#dc2743,#bc1888);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(220,39,67,.35);
}
.footer__social-btn--tt:hover {
  background: #111;
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}

/* ── HERO BADGES ─────────────────────────── */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  list-style: none;
  margin-bottom: 1.5rem;
  animation: heroFadeIn 1s .8s ease both;
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  padding: .3rem .85rem;
  border-radius: 50px;
  white-space: nowrap;
}
.hero__badges li svg { flex-shrink: 0; color: #7dcf56; }

/* ── PRIZE ───────────────────────────────── */
.prize { background: var(--bg); }
.prize__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: .5rem;
}
.prize__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
  transition: transform var(--t), box-shadow var(--t);
}
.prize__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prize__icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(61,139,40,.3);
  flex-shrink: 0;
}
.prize__item strong { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.prize__item span   { font-size: .85rem; color: var(--text-muted); line-height: 1.4; }

/* ── TRUST STRIP ──────────────────────── */
.trust {
  background: var(--muted-blue);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(13,59,110,.08);
  border-bottom: 1px solid rgba(13,59,110,.08);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}
.trust__item { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; }
.trust__item > div { min-width: 0; }
.trust__item strong, .trust__item span { overflow-wrap: anywhere; }
.trust__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--white);
  color: var(--accent);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(61,139,40,.12);
}
.trust__item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .15rem;
}
.trust__item span { font-size: .81rem; color: var(--text-muted); line-height: 1.45; }
.trust__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(13,59,110,.1);
  padding-top: 1.25rem;
}
.trust__legal a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.trust__legal a:hover { color: var(--accent); }
.trust__legal strong { color: var(--primary); }
.trust__legal svg { color: var(--accent); flex-shrink: 0; }

/* ── FAQ ─────────────────────────────────── */
.faq { background: var(--bg); }
.faq__grid {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.faq__item {
  background: var(--white);
  border: 1px solid rgba(13,59,110,.1);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(13,59,110,.08);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  color: var(--primary);
  font-weight: 800;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 900;
}
.faq__item[open] summary::after { content: '-'; }
.faq__item p {
  color: var(--text-muted);
  padding: 0 1.4rem 1.25rem;
  font-size: .95rem;
}

/* ── TESTIMONIALS ────────────────────── */
.testimonials { background: var(--muted); }

.testimonials__stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .5rem;
}

.testimonials__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(13,59,110,.12);
  color: var(--primary);
  cursor: pointer;
  transition: all var(--t);
  box-shadow: 0 2px 10px rgba(13,59,110,.1);
  z-index: 2;
}
.testimonials__arrow:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.08);
}
.testimonials__arrow:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.testimonials__window {
  flex: 1;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 1.5rem;
  transition: transform .52s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  list-style: none;
}

.testimonial-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 4px 24px rgba(13,59,110,.1);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  user-select: none;
  transition: box-shadow var(--t), transform var(--t);
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px rgba(13,59,110,.16);
  transform: translateY(-3px);
}

.testimonial-card__stars {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.testimonial-card__text {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(13,59,110,.07);
}
.testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--av, var(--primary));
  color: var(--white);
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.testimonial-card__author div { display: flex; flex-direction: column; gap: .1rem; }
.testimonial-card__author strong { font-size: .9rem; color: var(--primary); font-weight: 700; }
.testimonial-card__author span  { font-size: .78rem; color: var(--text-muted); }

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(13,59,110,.2);
  border: none;
  cursor: pointer;
  transition: all var(--t);
  padding: 0;
}
.testimonials__dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.testimonials__dot:hover:not(.active) { background: rgba(13,59,110,.4); }

@media (max-width: 959px) {
  .testimonial-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
}
@media (max-width: 639px) {
  .testimonial-card { flex: 0 0 100%; }
  .testimonials__stage { gap: .5rem; }
  .testimonials__arrow { width: 36px; height: 36px; }
}

/* ── MOBILE CTA BAR ──────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--dark);
  padding: .9rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 28px rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-cta__label { color: rgba(255,255,255,.8); font-size: .9rem; min-width: 0; }
.mobile-cta__label strong { color: var(--white); font-weight: 800; }
.mobile-cta__btn { padding: .6rem 1.5rem !important; font-size: .9rem; white-space: nowrap; flex-shrink: 0; }

/* Pantallas muy angostas (≤380px): compactar la barra fija para que nada se corte */
@media (max-width: 380px) {
  .mobile-cta        { padding: .8rem 1rem; gap: .6rem; }
  .mobile-cta__label { font-size: .82rem; }
  .mobile-cta__btn   { padding: .55rem 1.1rem !important; font-size: .85rem; }
  /* Botones con texto largo: permitir ajuste para no desbordar */
  .btn               { white-space: normal; max-width: 100%; }
}

@media (max-width: 959px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
}

/* ── RESPONSIVE: DESKTOP ─────────────────── */
@media (min-width: 960px) {
  .nav__toggle  { display: none; }
  .nav__links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    gap: .2rem;
  }
  .nav__links li a { padding: .5rem .85rem; font-size: .9rem; }
  #header:not(.scrolled) .nav__links li a { color: rgba(255,255,255,.9); }
  #header:not(.scrolled) .nav__links li a:hover { color: var(--white); }
  .nav__btn {
    margin: 0 0 0 .75rem !important;
    padding: .55rem 1.35rem !important;
    font-size: .88rem;
  }
  .nav__btn:hover { padding-left: 1.35rem !important; }

  .conocenos__layout  { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact__layout    { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer__top        { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}
