/* ═══════════════════════════════════════════
   FUENTES PERSONALIZADAS
   ═══════════════════════════════════════════ */
@font-face {
  font-family: 'TheYoungestSerifDisplay';
  src: url('../fonts/the-youngest-serif-display.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSerifBalinese';
  src: url('../fonts/NotoSerifBalinese-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #06243B;
  --blue-light: #1A4A6E;
  --blue-dark: #020F18;
  --blue-pale: #F4F3EE;
  --yellow: #E39C00;
  --beige: #F4F3EE;
  --dark: #000000;
  --dark-navy: #06243B;
  --gray: #555555;
  --gray-light: #F4F3EE;
  --white: #FFFFFF;
  --font-editorial: 'Noto Serif Bengali', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'NotoSerifBalinese', 'Inter', sans-serif; color: var(--dark); overflow-x: hidden; background: #fff; }
h1, h2, h3, h4, h5 { font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
strong { font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; font-weight: 700; }

/* ═══════════════════════════════════════════
   ANIMACIONES BASE — el sistema completo
   ═══════════════════════════════════════════ */

/* Keyframes */
@keyframes fromBottom {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fromLeft {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fromRight {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fromTop {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Clases de animación para el HERO (se ejecutan al cargar) ── */
.anim-hero-badge    { animation: fromTop    0.7s cubic-bezier(0.16,1,0.3,1) 0.1s  both; }
.anim-hero-title    { animation: fromLeft   0.9s cubic-bezier(0.16,1,0.3,1) 0.2s  both; }
.anim-hero-desc     { animation: fromBottom 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.anim-hero-btns     { animation: fromBottom 0.9s cubic-bezier(0.16,1,0.3,1) 0.48s both; }
.anim-hero-social   { animation: fromBottom 0.9s cubic-bezier(0.16,1,0.3,1) 0.60s both; }
.anim-hero-img      { animation: fromRight  1.0s cubic-bezier(0.16,1,0.3,1) 0.15s both; }

/* ── Clases de animación para SCROLL (esperan clase .in-view) ── */

/* Estado inicial — oculto */
.anim-up,
.anim-left,
.anim-right,
.anim-fade {
  opacity: 0;
}
.anim-up    { transform: translateY(60px); }
.anim-left  { transform: translateX(-70px); }
.anim-right { transform: translateX(70px); }

/* Estado final — visible cuando JS agrega .in-view */
.anim-up.in-view {
  animation: fromBottom 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.anim-left.in-view {
  animation: fromLeft 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.anim-right.in-view {
  animation: fromRight 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.anim-fade.in-view {
  animation: fadeIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
}

/* Delays para stagger */
.anim-d0  { animation-delay: 0s    !important; }
.anim-d1  { animation-delay: 0.10s !important; }
.anim-d2  { animation-delay: 0.20s !important; }
.anim-d3  { animation-delay: 0.30s !important; }
.anim-d4  { animation-delay: 0.40s !important; }
.anim-d5  { animation-delay: 0.50s !important; }
.anim-d6  { animation-delay: 0.60s !important; }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6,36,59,0.10);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  transition: box-shadow .3s;
}
.nav-logo img { max-height: 90px; }
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.10); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--dark-navy);
  font-family: 'NotoSerifBalinese', 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--yellow);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-primary {
  background: var(--yellow);
  color: var(--dark) !important; -webkit-text-fill-color: var(--dark);
  border: none; border-radius: 8px;
  padding: 10px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(227,156,0,0.38);
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
  letter-spacing: 0.3px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,156,0,0.52); text-decoration: none !important; }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 8px;
  padding: 10px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: all .2s;
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
  letter-spacing: 0.3px;
}
.btn-outline:hover { background: var(--blue); color: white; -webkit-text-fill-color: white; }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; cursor: pointer;
  border: none; background: transparent; padding: 4px;
  border-radius: 8px; transition: background .2s; gap: 5px;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--blue-pale); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark-navy); border-radius: 2px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s, width .25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 80px; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.99);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6,36,59,0.10);
  padding: 0 5%; max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.mobile-menu.open { max-height: 420px; padding: 20px 5% 28px; }
.mobile-menu a {
  display: block; text-decoration: none;
  color: var(--dark-navy); font-size: 16px; font-weight: 500;
  font-family: 'NotoSerifBalinese', 'Inter', sans-serif;
  padding: 14px 0; border-bottom: 1px solid rgba(6,36,59,0.08);
  transition: color .2s, padding-left .2s;
}
.mobile-menu a:hover { color: var(--blue); padding-left: 6px; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn-mobile {
  margin-top: 16px; display: block; text-align: center;
  background: var(--yellow);
  color: var(--dark) !important; -webkit-text-fill-color: var(--dark);
  border-radius: 10px; padding: 14px !important; font-weight: 700 !important;
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
  box-shadow: 0 4px 16px rgba(227,156,0,0.40); border-bottom: none !important;
}
.mobile-menu .btn-mobile:hover { padding-left: 0 !important; opacity: .9; }

/* ── Navbar CTA: texto centrado, sin subrayado, pulso periódico ── */
#navbar .btn-primary {
  justify-content: center;
  text-decoration: none;
  animation: btnNavPulse 4.5s ease-in-out infinite;
}
#navbar .btn-primary:hover {
  text-decoration: none;
  animation-play-state: paused;
}

@keyframes btnNavPulse {
  0%, 55%, 100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 16px rgba(227,156,0,0.38);
  }
  10% {
    transform: scale(1.04) translateY(0);
    box-shadow: 0 6px 28px rgba(227,156,0,0.72), 0 0 0 5px rgba(227,156,0,0.14);
  }
  20% {
    transform: scale(1.02) translateY(0);
    box-shadow: 0 5px 20px rgba(227,156,0,0.52), 0 0 0 2px rgba(227,156,0,0.08);
  }
  30% {
    transform: scale(1.035) translateY(0);
    box-shadow: 0 6px 26px rgba(227,156,0,0.65), 0 0 0 4px rgba(227,156,0,0.12);
  }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #F4F3EE 0%, #ECEAE0 50%, #F8F7F2 100%);
  display: flex; align-items: center; padding: 120px 5% 40px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,36,59,0.06) 0%, transparent 70%);
  border-radius: 50%; animation: float 6s ease-in-out infinite;
}
#hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(227,156,0,0.12) 0%, transparent 70%);
  border-radius: 50%; animation: float 8s ease-in-out infinite reverse;
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,36,59,0.07); border: 1px solid rgba(6,36,59,0.15);
  color: var(--blue); border-radius: 20px; padding: 6px 14px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
  font-family: 'NotoSerifBalinese', 'Inter', sans-serif;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--yellow); border-radius: 50%; animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(36px, 4.5vw, 58px); font-weight: 800; line-height: 1.15;
  color: var(--blue); margin-bottom: 20px;
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
}
.hero-title .accent { color: var(--yellow); }
.hero-desc {
  font-size: 16px; color: var(--gray); line-height: 1.7;
  margin-bottom: 36px; max-width: 460px;
  font-family: 'NotoSerifBalinese', 'Inter', sans-serif;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-social { display: flex; align-items: center; gap: 12px; }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid white;
  margin-left: -10px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
}
.avatars span:first-child { margin-left: 0; background: var(--blue); }
.avatars span:nth-child(2) { background: var(--blue-light); }
.avatars span:nth-child(3) { background: var(--yellow); }
.hero-social-text { font-size: 13px; color: var(--gray); }
.stars { color: var(--yellow); font-size: 13px; }
.hero-visual { position: relative; }
.hero-img { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(6,36,59,0.22); }
.hero-img img { width: 100%; height: 420px; object-fit: cover; display: block; transition: transform .5s; }
.hero-img:hover img { transform: scale(1.03); }
.hero-badge-float {
  position: absolute; bottom: -20px; left: -20px; background: white;
  border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 12px;
  animation: floatCard 4s ease-in-out infinite; z-index: 10;
}
.badge-icon { width: 40px; height: 40px; background: rgba(227,156,0,0.20); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.badge-icon i { color: var(--yellow); font-size: 18px; }
.badge-text span:first-child { display: block; font-weight: 700; font-size: 14px; font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; color: var(--blue); }
.badge-text span:last-child { font-size: 12px; color: var(--gray); }

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
section { padding: 96px 5%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; margin-bottom: 16px; color: var(--blue); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.section-desc { font-size: 16px; color: var(--gray); max-width: 600px; margin: 0 auto; line-height: 1.7; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.eyebrow {
  display: block;
  font-family: var(--font-editorial);
  font-size: 11px; font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.cta-center { text-align: center; margin-top: 48px; }

/* ─────────────────────────────────────────
   PROBLEMS
───────────────────────────────────────── */
#problems { background: var(--beige); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }

.problem-card {
  perspective: 1000px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
  min-height: 300px;
}
.problem-card::before { display: none; }

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.problem-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 32px 28px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front {
  background: white;
  border: 1px solid rgba(6,36,59,0.10);
  box-shadow: 0 2px 12px rgba(6,36,59,0.06);
}

.card-back {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.card-back-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
}
.card-back-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
  line-height: 1.3;
}
.card-back-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  font-family: 'NotoSerifBalinese', 'Inter', sans-serif;
}
.card-back-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: rgba(227,156,0,0.20);
  border: 1px solid rgba(227,156,0,0.50);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s;
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
}
.card-back-cta:hover {
  background: rgba(227,156,0,0.35);
}

.card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 20px; }
.icon-red    { background: #FEE2E2; color: #EF4444; }
.icon-orange { background: rgba(227,156,0,0.20); color: #9B6700; }
.icon-purple { background: #F3E8FF; color: #9333EA; }
.icon-yellow { background: rgba(227,156,0,0.15); color: #7A5200; }
.icon-teal   { background: rgba(6,36,59,0.08); color: var(--blue); }
.icon-pink   { background: #FCE7F3; color: #EC4899; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--blue); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.card-desc { font-size: 14px; color: var(--gray); line-height: 1.65; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }

/* ─────────────────────────────────────────
   ETAPAS / CATÁLOGO
───────────────────────────────────────── */
#catalogo { background: white; }
.etapas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1150px; margin: 0 auto; }
.etapa-card {
  background: var(--beige); border-radius: 20px; padding: 32px 24px; text-align: center;
  position: relative; transition: transform .35s, box-shadow .35s;
  box-shadow: 0 4px 16px rgba(6,36,59,0.07);
}
.etapa-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(6,36,59,0.15); }
.etapa-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--yellow);
  color: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(227,156,0,0.50);
  font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif;
}
.etapa-icon { width: 56px; height: 56px; border-radius: 14px; margin: 16px auto 20px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ei-teal   { background: rgba(6,36,59,0.08); color: var(--blue); }
.ei-yellow { background: rgba(227,156,0,0.20); color: #7A5200; }
.ei-purple { background: #EDE9FE; color: #7C3AED; }
.ei-red    { background: #FEE2E2; color: #DC2626; }
.etapa-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--blue); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.etapa-list { list-style: none; text-align: left; }
.etapa-list li { font-size: 13px; color: var(--gray); padding: 5px 0; display: flex; align-items: center; gap: 8px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.etapa-list li::before { content: '✓'; color: var(--yellow); font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   MARCAS
───────────────────────────────────────── */
#marcas { background: var(--beige); }
.marcas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 960px; margin: 0 auto 48px; }
.marca-card {
  background: white; border: 1.5px solid rgba(6,36,59,0.10); border-radius: 16px;
  text-decoration: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: transform .28s, box-shadow .28s, border-color .28s;
  position: relative; overflow: hidden; min-height: 110px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.marca-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(227,156,0,0.12), #fff); opacity: 0; transition: opacity .28s;
}
.marca-card:hover { transform: translateY(-5px); border-color: var(--yellow); box-shadow: 0 12px 32px rgba(6,36,59,0.12); }
.marca-card:hover::before { opacity: 1; }
.marca-card:hover .marca-visit { opacity: 1; transform: translateY(0); }
.marca-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px 20px; width: 100%; }
.marca-name { font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; font-size: 17px; font-weight: 800; color: var(--dark-navy); letter-spacing: .5px; transition: color .25s; }
.marca-visit { font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: all .25s; display: flex; align-items: center; gap: 4px; font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }

/* ─────────────────────────────────────────
   PARA QUIÉN
───────────────────────────────────────── */
#para-quien { background: var(--blue); color: white; }
.para-quien-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; max-width: 1100px; margin: 0 auto; }
.para-quien-label { color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.para-quien-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: white; margin-bottom: 20px; line-height: 1.2; font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.para-quien-desc { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.7; margin-bottom: 36px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-dot { width: 36px; height: 36px; border-radius: 10px; background: rgba(227,156,0,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.feature-text strong { display: block; color: white; font-size: 15px; margin-bottom: 3px; font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.feature-text span { color: rgba(255,255,255,0.65); font-size: 13px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.para-quien-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.para-quien-img img { width: 100%; height: 380px; object-fit: cover; display: block; }
.stats-float {
  position: absolute; bottom: -24px; right: -24px; background: white;
  border-radius: 16px; padding: 20px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2); animation: floatCard 5s ease-in-out infinite;
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--blue); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.stat-label { font-size: 12px; color: var(--gray); font-family: var(--font-editorial); letter-spacing: -0.01em; }

/* ─────────────────────────────────────────
   CONTACTO
───────────────────────────────────────── */
#contacto { background: var(--beige); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; max-width: 1000px; margin: 0 auto; }
.contacto-title { font-size: clamp(26px,3vw,36px); font-weight: 800; margin-bottom: 16px; color: var(--blue); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.contacto-desc { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 28px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dark-navy); font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.check-list li::before { content: '✓'; color: var(--yellow); font-weight: 800; font-size: 14px; }
.contact-info-card { background: white; border-radius: 16px; padding: 24px; border: 1px solid rgba(6,36,59,0.10); }
.contact-info-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--dark-navy); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.contact-info-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gray); margin-bottom: 12px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.contact-info-item i { color: var(--yellow); width: 16px; }
.form-card { background: white; border-radius: 20px; padding: 36px; box-shadow: 0 8px 40px rgba(6,36,59,0.10); border: 1px solid rgba(6,36,59,0.08); }
.form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 28px; color: var(--blue); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; }
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--dark-navy); margin-bottom: 8px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
label span { color: #EF4444; }
input, select, textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid rgba(6,36,59,0.15); border-radius: 10px;
  font-size: 14px; color: var(--dark); font-family: 'NotoSerifBalinese', 'Inter', sans-serif;
  background: var(--beige); transition: border-color .2s, box-shadow .2s; outline: none;
}
input::placeholder, textarea::placeholder { color: #AAAAAA; }
input:focus, select:focus, textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(227,156,0,0.15); background: white; }
textarea { resize: vertical; min-height: 110px; }
.form-disclaimer { font-size: 12px; color: var(--gray); text-align: center; margin-top: 12px; line-height: 1.5; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer { background: var(--blue); color: white; padding: 72px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.5fr; gap: 48px; max-width: 1200px; margin: 0 auto 56px; align-items: start; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.7; margin: 16px 0 24px; max-width: 280px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 15px; transition: all .2s; }
.footer-social a:hover { background: var(--yellow); color: var(--blue); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; color: var(--yellow); font-family: 'TheYoungestSerifDisplay', 'Sora', sans-serif; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color .2s; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.footer-col ul a:hover { color: white; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 12px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.footer-contact-item i { color: var(--yellow); margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 12px; font-family: 'NotoSerifBalinese', 'Inter', sans-serif; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.80); }
.footer-links { display: flex; gap: 24px; }

/* ─────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────── */
#btt {
  position: fixed; 
  bottom: 24px; 
  left: 24px; 
  z-index: 999;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(6,36,59,0.40);
  opacity: 0; transform: translateY(10px); transition: all .3s;
}
#btt.show { opacity: 1; transform: translateY(0); }
#btt:hover { background: var(--yellow); color: var(--blue); transform: translateY(-3px); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content, .para-quien-grid, .contacto-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .etapas-grid, .marcas-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-float { position: static; margin-top: 24px; }
}
@media (max-width: 560px) {
  .cards-grid, .etapas-grid, .marcas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── FIX NAVBAR MÓVIL ── */
@media (max-width: 900px) {
  nav { padding: 0 4%; height: 76px; }
  .nav-logo img { height: 62px !important; max-height: 62px !important; }
  .mobile-menu { top: 76px; }
}

@media (max-width: 560px) {
  #btt { left: 16px; bottom: 20px; }
}

/* ─────────────────────────────────────────
   BOTÓN WHATSAPP
───────────────────────────────────────── */
#wa-btn {
  position: fixed; 
  bottom: 24px; 
  right: 24px;
  z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform .25s, box-shadow .25s, background .2s;
}
#wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

/* ─────────────────────────────────────────
   CHATBOT FLOTANTE
───────────────────────────────────────── */
#chat-btn {
  position: fixed; bottom: 88px; right: 24px; z-index: 9998;
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; overflow: hidden;
  box-shadow: 0 4px 20px rgba(6,36,59,0.40);
  transition: transform .25s, box-shadow .25s, border-color .2s;
}
#chat-btn img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%;
}
#chat-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 32px rgba(6,36,59,0.50);
  border-color: var(--yellow);
}
#chat-btn.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(227,156,0,0.30);
}

/* Burbuja de texto */
.chat-bubble {
  position: fixed; bottom: 100px; right: 84px; z-index: 9997;
  background: white; color: var(--blue);
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  padding: 8px 14px; border-radius: 20px 20px 4px 20px;
  box-shadow: 0 4px 20px rgba(6,36,59,0.18);
  white-space: nowrap;
  opacity: 0; transform: translateX(8px) scale(0.95);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.chat-bubble::after {
  content: '';
  position: absolute; right: -8px; bottom: 12px;
  border: 5px solid transparent;
  border-left-color: white;
}
.chat-bubble.visible { opacity: 1; transform: translateX(0) scale(1); }

/* Panel de chat */
#chat-panel {
  position: fixed; bottom: 152px; right: 24px; z-index: 9997;
  width: 320px;
  background: white; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(6,36,59,0.20);
  overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.chat-panel-header {
  background: var(--blue); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2px solid var(--yellow); flex-shrink: 0;
}
.chat-agent-info { flex: 1; display: flex; flex-direction: column; }
.chat-agent-name { color: white; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; line-height: 1.2; }
.chat-agent-role { color: rgba(255,255,255,0.65); font-size: 11px; font-family: 'DM Sans', sans-serif; }
.chat-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #25D366; box-shadow: 0 0 0 2px rgba(37,211,102,0.3); flex-shrink: 0;
}
#chat-close {
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  color: white; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: background .2s; flex-shrink: 0;
}
#chat-close:hover { background: rgba(255,255,255,0.30); }

.chat-panel-body { padding: 16px; background: #f8f9fb; min-height: 120px; }
.chat-msg.incoming {
  background: white; border-radius: 12px 12px 12px 4px;
  padding: 10px 14px; max-width: 85%;
  box-shadow: 0 2px 8px rgba(6,36,59,0.08);
}
.chat-msg.incoming p { font-size: 14px; color: var(--blue); font-family: 'DM Sans', sans-serif; line-height: 1.5; }
.chat-time { display: block; font-size: 11px; color: #aaa; margin-top: 4px; }

.chat-panel-footer {
  padding: 12px 16px; border-top: 1px solid #eee;
  display: flex; gap: 8px; align-items: center; background: white;
}
.chat-panel-footer input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 20px;
  padding: 8px 14px; font-size: 13px; font-family: 'DM Sans', sans-serif;
  outline: none; background: #f8f9fb; color: #999; cursor: not-allowed;
}
.chat-panel-footer button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: not-allowed; opacity: 0.5;
}

@media (max-width: 560px) {
  #chat-btn   { right: 16px; bottom: 80px; }
  .chat-bubble { right: 76px; bottom: 92px; }
  #chat-panel { right: 12px; bottom: 144px; width: calc(100vw - 24px); }
}

/* ── FLIP CARDS (duplicado consolidado) ── */
.problem-card {
  perspective: 1000px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
  min-height: 260px;
}
.problem-card::before { display: none; }

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.problem-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* ─────────────────────────────────────────
   SECCIÓN: 4 PILARES DE ORQUESTACIÓN
───────────────────────────────────────── */
#orquestacion {
  background: var(--blue);
  padding: 96px 5%;
  position: relative;
  overflow: hidden;
}
#orquestacion::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,243,238,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.orquestacion-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}
.orquestacion-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
  font-family: var(--font-editorial);
}
.orquestacion-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: var(--beige);
  font-family: 'Sora', sans-serif;
  margin-bottom: 16px; line-height: 1.1;
}
.orquestacion-header p {
  font-size: 16px; color: rgba(244,243,238,0.55);
  font-family: 'DM Sans', sans-serif;
  max-width: 520px; margin: 0 auto; line-height: 1.65;
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}
.pilar-card {
  background: rgba(244,243,238,0.04);
  border: 1px solid rgba(244,243,238,0.07);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.pilar-card:hover { background: rgba(244,243,238,0.08); }
.pilar-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.pilar-card:hover::after { transform: scaleX(1); }
.pilar-num {
  display: block;
  font-size: 72px; font-weight: 800;
  color: rgba(227,156,0,0.10);
  font-family: 'Sora', sans-serif;
  line-height: 1; margin-bottom: 20px;
  letter-spacing: -2px;
}
.pilar-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(227,156,0,0.35);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow); font-size: 18px;
  margin-bottom: 20px;
  background: rgba(227,156,0,0.06);
}
.pilar-card h3 {
  font-size: 17px; font-weight: 700;
  color: var(--beige); font-family: 'Sora', sans-serif;
  margin-bottom: 12px; line-height: 1.25;
}
.pilar-card p {
  font-size: 14px; color: rgba(244,243,238,0.58);
  font-family: 'DM Sans', sans-serif; line-height: 1.7;
}
@media (max-width: 900px) {
  .pilares-grid { grid-template-columns: 1fr 1fr; }
  #orquestacion { padding: 72px 5%; }
}
@media (max-width: 560px) {
  .pilares-grid { grid-template-columns: 1fr; }
  .pilar-card { padding: 32px 24px; }
  .orquestacion-header { margin-bottom: 40px; }
}

/* ─────────────────────────────────────────
   SECCIÓN: GARANTÍA DE EJECUCIÓN
───────────────────────────────────────── */
#garantia {
  background: white;
  padding: 96px 5% 0;
}
.garantia-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.garantia-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  font-family: var(--font-editorial);
  padding: 5px 16px;
  border: 1px solid rgba(227,156,0,0.35);
  border-radius: 20px;
}
.garantia-header h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800; color: var(--blue);
  font-family: 'Sora', sans-serif;
  margin-bottom: 20px; line-height: 1.1;
}
.garantia-header p {
  font-size: 17px; color: var(--gray);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
}
.garantia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #e4e2da;
  margin: 0 -5%;
}
.garantia-card {
  background: white;
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.garantia-card:hover {
  border-left-color: var(--yellow);
  background: #fdfcf7;
}
.garantia-num {
  position: absolute; top: 24px; right: 32px;
  font-size: 96px; font-weight: 800;
  color: rgba(6,36,59,0.04);
  font-family: 'Sora', sans-serif;
  line-height: 1; letter-spacing: -4px;
  pointer-events: none; user-select: none;
}
.garantia-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(227,156,0,0.07);
  border: 1px solid rgba(227,156,0,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow); font-size: 20px;
  margin-bottom: 24px;
}
.garantia-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--blue); font-family: 'Sora', sans-serif;
  margin-bottom: 16px; line-height: 1.3;
  max-width: 340px;
}
.garantia-card p {
  font-size: 15px; color: #5a5a5a;
  font-family: 'Inter', sans-serif;
  line-height: 1.75; margin-bottom: 10px;
}
.garantia-card p:last-child { margin-bottom: 0; }

/* Cierre */
.garantia-cierre {
  background: var(--blue);
  margin: 0 -6%;
  padding: 88px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.garantia-cierre::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,243,238,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.garantia-cierre h2 {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800; color: var(--beige);
  font-family: 'Sora', sans-serif;
  margin-bottom: 40px; line-height: 1.1;
  position: relative;
}
.btn-garantia {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--blue);
  font-size: 15px; font-weight: 700;
  font-family: 'Sora', sans-serif;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  transition: transform .25s, box-shadow .25s, background .2s;
  box-shadow: 0 4px 24px rgba(227,156,0,0.40);
}
.btn-garantia:hover {
  background: #f0a800;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(227,156,0,0.55);
}

@media (max-width: 900px) {
  .garantia-grid { grid-template-columns: 1fr; }
  .garantia-card { padding: 40px 36px; }
  #garantia { padding: 72px 5% 0; }
}
@media (max-width: 560px) {
  .garantia-card { padding: 36px 24px; }
  .garantia-header { margin-bottom: 48px; }
  .garantia-cierre { padding: 64px 5%; }
}
