/*
Theme Name: FUNDECOM Premium V5
Theme URI: https://fundecom.org/
Author: Donesitios
Description: Tema institucional premium para FUNDECOM, diseñado con narrativa editorial, fotografía humana, 3D suave, transparencia y accesibilidad.
Version: 5.5.0
Text Domain: fundecom-premium
*/

:root {
  --green-950: #0c2815;
  --green-900: #123b20;
  --green-800: #1a4a29;
  --green-700: #225130;
  --green-600: #2d6540;
  --orange: #E66113;
  --orange-2: #ff7a21;
  --cream: #F8F3E8;
  --cream-2: #EFE7D7;
  --ink: #132118;
  --body: #425047;
  --line: #D9E3DA;
  --line-light: rgba(34, 81, 48, 0.08);
  --white: #fff;
  
  --shadow-3d: 0 26px 54px -12px rgba(18, 59, 32, 0.18), 0 12px 24px -8px rgba(18, 59, 32, 0.08), 0 0 0 1px rgba(34, 81, 48, 0.06);
  --shadow-card: 0 14px 34px -8px rgba(18, 59, 32, 0.08), 0 4px 12px -2px rgba(18, 59, 32, 0.04);
  --shadow-card-hover: 0 30px 60px -14px rgba(18, 59, 32, 0.2), 0 8px 22px -4px rgba(18, 59, 32, 0.08);
  --shadow-glass: 0 20px 40px -10px rgba(18, 59, 32, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 2px 4px rgba(0, 0, 0, 0.04);
  
  --radius: 26px;
  --radius-lg: 38px;
  --radius-sm: 16px;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --display: "Arial Black", "Arial Narrow", Impact, Arial, sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; transition: color 0.25s ease, transform 0.25s ease; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--orange); color: #fff; }

/* Tipografía estricta anti-rotura y contención de cajas */
h1, h2, h3, h4, .hero-title, .section-title, .story-panel h3, .human-band h2, .cta-card h3, .page-title, .bento-card h3, .program-copy h3, .proof-card h3, .contact-panel h3, .story-photo-caption b, .hero-seal b {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-wrap: balance;
}

.hero-lead, .section-intro, p, .story-panel p, .bento-card p, .program-copy p, .prose p, .cta-card p {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-wrap: pretty;
}

.container { width: min(1200px, calc(100% - 40px)); margin: auto; }
.container-wide { width: min(1380px, calc(100% - 32px)); margin: auto; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-card); }

/* Topline Institucional */
.topline {
  background: var(--green-950);
  color: #dce8df;
  font-size: .8rem;
  position: relative;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topline-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 38px; }
.topline strong { color: #fff; font-weight: 700; }

/* Site Header Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px -8px rgba(13, 40, 21, 0.09);
  border-color: rgba(34, 81, 48, 0.12);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; background: transparent !important; }
.brand img { width: 148px; height: auto; background: transparent !important; transition: transform 0.3s var(--ease-out-expo); }
.brand:hover img { transform: scale(1.02); }

.nav { display: flex; align-items: center; gap: clamp(10px, 1.3vw, 18px); }
.nav a {
  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
  font-weight: 700;
  color: var(--green-900);
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}
.nav a:not(.nav-cta):not(.nav-raffle)::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--orange);
  left: 0;
  right: 100%;
  bottom: 0;
  border-radius: 99px;
  transition: right 0.28s var(--ease-out-expo);
}
.nav a:not(.nav-cta):not(.nav-raffle):hover { color: var(--orange); }
.nav a:not(.nav-cta):not(.nav-raffle):hover::after { right: 0; }

/* Botón Rifa Hyundai i10 Prominente en el Menú */
.nav-raffle {
  background: linear-gradient(135deg, var(--orange), #ff7a21) !important;
  color: #ffffff !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: .84rem !important;
  box-shadow: 0 6px 18px -3px rgba(230, 97, 19, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  animation: raffleGlow 3.5s ease-in-out infinite !important;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease !important;
}
.nav-raffle:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 10px 26px -4px rgba(230, 97, 19, 0.65) !important;
}
@keyframes raffleGlow {
  0%, 100% { box-shadow: 0 6px 18px -3px rgba(230, 97, 19, 0.45); }
  50% { box-shadow: 0 8px 24px 2px rgba(230, 97, 19, 0.7); }
}

.nav-cta {
  background: var(--green-900);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 18px -4px rgba(18, 59, 32, 0.25);
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s ease, box-shadow 0.25s ease !important;
}
.nav-cta:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(18, 59, 32, 0.35);
}
.nav-toggle {
  display: none;
  border: 0;
  background: var(--green-900);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Hero Section */
.hero-premium {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 15%, rgba(230, 97, 19, 0.16), transparent 36%),
    radial-gradient(circle at 8% 75%, rgba(34, 81, 48, 0.12), transparent 38%),
    var(--cream);
  padding: clamp(60px, 7vw, 98px) 0;
}
.hero-premium::before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 97, 19, 0.12), transparent 70%);
  top: 8%;
  right: 6%;
  filter: blur(50px);
  pointer-events: none;
}
.hero-premium::after {
  content: "";
  position: absolute;
  right: -240px;
  top: -240px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  border: 1px solid rgba(34, 81, 48, 0.1);
  box-shadow: 0 0 0 60px rgba(34, 81, 48, 0.02), 0 0 0 120px rgba(230, 97, 19, 0.025);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 800;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.3vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--green-900);
  margin: 18px 0 22px;
  max-width: 740px;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
  display: inline;
}
.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  color: var(--body);
  max-width: 680px;
  margin: 0;
  line-height: 1.65;
}

/* Botones 3D táctiles */
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  border: 1px solid transparent;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), background-color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out-expo);
  pointer-events: none;
}
.btn:hover::after { left: 140%; }
.btn-primary {
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 14px 28px -6px rgba(18, 59, 32, 0.28);
}
.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 38px -8px rgba(18, 59, 32, 0.36);
}
.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 28px -6px rgba(230, 97, 19, 0.3);
}
.btn-orange:hover {
  background: var(--orange-2);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 38px -8px rgba(230, 97, 19, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-color: var(--line);
  color: var(--green-900);
  box-shadow: 0 8px 20px -4px rgba(18, 59, 32, 0.06);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--green-900);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 28px -6px rgba(18, 59, 32, 0.12);
}

/* Escenario 3D Hero Photo Stage */
.hero-photo-stage {
  position: relative;
  min-height: 540px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.hero-main-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 82%;
  height: 480px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3d);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateZ(10px);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}
.hero-main-photo:hover {
  transform: translateZ(20px) scale(1.01);
  box-shadow: 0 32px 65px -15px rgba(18, 59, 32, 0.24);
}
.hero-main-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-expo); }
.hero-main-photo:hover img { transform: scale(1.03); }

.hero-small-photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 250px;
  border: 8px solid var(--cream);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px -10px rgba(18, 59, 32, 0.22);
  transform: translateZ(35px);
  transition: transform 0.6s var(--ease-out-expo);
}
.hero-small-photo:hover { transform: translateZ(45px) scale(1.02); }
.hero-small-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 3D Floating Glass Badges con auto-contención de texto */
.hero-badge {
  position: absolute;
  left: 10px;
  top: 25px;
  width: auto;
  min-width: 150px;
  max-width: 220px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 232, 0.90));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-glass);
  z-index: 5;
  transform: translateZ(55px);
  animation: floatY 6s ease-in-out infinite;
}
.hero-badge strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--green-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-badge span { font-size: .75rem; color: var(--body); font-weight: 600; display: block; margin-top: 4px; line-height: 1.3; }

.hero-seal {
  position: absolute;
  right: -5px;
  bottom: 40px;
  width: auto;
  min-width: 170px;
  max-width: 230px;
  background: var(--green-900);
  color: #fff;
  padding: 18px 20px;
  border-radius: 24px;
  border-top: 3px solid var(--orange);
  box-shadow: 0 24px 45px -10px rgba(18, 59, 32, 0.35), 0 0 25px -5px rgba(230, 97, 19, 0.3);
  z-index: 6;
  transform: translateZ(65px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  animation: floatYReverse 7s ease-in-out infinite;
}
.hero-seal b {
  font-family: var(--display);
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.hero-seal small { color: #d9e9dd; display: block; margin-top: 5px; font-size: .78rem; line-height: 1.35; }

@keyframes floatY {
  0%, 100% { transform: translateZ(55px) translateY(0); }
  50% { transform: translateZ(55px) translateY(-8px); }
}
@keyframes floatYReverse {
  0%, 100% { transform: translateZ(65px) translateY(0); }
  50% { transform: translateZ(65px) translateY(7px); }
}

/* Trust Rail */
.trust-rail { position: relative; z-index: 5; margin-top: -28px; }
.trust-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.trust-cell {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  transition: background 0.3s ease;
}
.trust-cell:hover { background: #fafdfa; }
.trust-cell:last-child { border-right: 0; }
.trust-cell small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 800; }
.trust-cell strong { display: block; color: var(--green-900); margin-top: 5px; font-size: clamp(0.9rem, 1.1vw, 1.02rem); line-height: 1.35; }

/* Sections */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section-cream { background: var(--cream); }
.section-soft { background: #F2F6F2; }
.section-dark {
  background: var(--green-950);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 81, 48, 0.4), transparent 70%);
  top: -200px;
  left: -200px;
  pointer-events: none;
}
.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--green-900);
  margin: 0;
}
.section-dark .section-title { color: #fff; }
.section-intro {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--body);
  margin: 0;
  max-width: 660px;
  line-height: 1.68;
}
.section-dark .section-intro { color: #dbe6de; }

/* Story Split Section */
.story-split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 28px; align-items: stretch; }
.story-photo {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-expo); }
.story-photo:hover img { transform: scale(1.03); }
.story-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12, 40, 21, 0.75)); }
.story-photo-caption { position: absolute; left: 24px; right: 24px; bottom: 24px; color: #fff; z-index: 2; }
.story-photo-caption b { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.85rem); text-transform: uppercase; line-height: 1.1; }

.story-panel {
  background: var(--green-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3d);
}
.story-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 48px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  right: -100px;
  top: -70px;
  pointer-events: none;
}
.story-panel h3 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.6vw, 2.6rem);
  line-height: 1.12;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.story-panel h3 span { color: #ffb177; }
.story-panel p { color: #e4eee6; max-width: 620px; font-size: 1.02rem; line-height: 1.68; margin: 0 0 16px; }
.story-quote {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 18px 18px 0;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.6;
}

/* Credit Journey 4 Steps con 3D Lift y auto-expansión */
.credit-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.credit-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.3s ease;
}
.credit-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(230, 97, 19, 0.35);
}
.credit-step::before {
  content: attr(data-step);
  position: absolute;
  right: 18px;
  top: 12px;
  font-family: var(--display);
  font-size: 3rem;
  color: rgba(34, 81, 48, 0.07);
  line-height: 1;
  pointer-events: none;
}
.credit-step .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--orange);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(230, 97, 19, 0.12);
  flex-shrink: 0;
}
.credit-step h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green-900);
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 18px 0 10px;
}
.credit-step p { margin: 0; color: var(--body); font-size: .92rem; line-height: 1.55; }

/* Bento Grid */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.35s ease;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(34, 81, 48, 0.2);
}
.bento-card .meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 800; }
.bento-card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green-900);
  line-height: 1.15;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  margin: 16px 0 12px;
}
.bento-card p { color: var(--body); margin: 0; font-size: .94rem; line-height: 1.6; }
.bento-card.dark {
  background: var(--green-900);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}
.bento-card.dark h3 { color: #fff; }
.bento-card.dark p { color: #e0ebe3; }

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }

.bento-visual {
  padding: 0;
  min-height: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-expo); }
.bento-visual:hover img { transform: scale(1.03); }
.bento-visual .overlay-copy {
  position: relative;
  z-index: 2;
  margin: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

/* Programs Grid */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.program-media { aspect-ratio: 16/10; overflow: hidden; flex-shrink: 0; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); }
.program-card:hover .program-media img { transform: scale(1.04); }
.program-copy { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.program-copy h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green-900);
  font-size: 1.2rem;
  line-height: 1.18;
  margin: 0 0 10px;
}
.program-copy p { color: var(--body); margin: 0; font-size: .93rem; line-height: 1.6; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.link-arrow:hover { transform: translateX(4px); }

/* Proof Grid (Transparencia) */
.proof-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
.proof-card {
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 36px);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.proof-card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green-900);
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 18px;
}
.facts { display: grid; gap: 0; }
.fact {
  display: grid;
  grid-template-columns: minmax(130px, 160px) 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
}
.fact:last-child { border-bottom: 0; }
.fact strong { color: var(--green-900); }

.doc-list { display: grid; gap: 12px; }
.doc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: 16px;
  background: #f1f5f1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s ease, border-color 0.25s ease;
}
.doc:hover {
  background: #e6ede6;
  border-color: rgba(34, 81, 48, 0.15);
  transform: translateX(4px);
}
.doc b { color: var(--green-900); font-size: .94rem; }
.doc span { font-size: .75rem; color: var(--orange); font-weight: 900; letter-spacing: .05em; flex-shrink: 0; }

/* Human Band */
.human-band {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--green-950);
}
.human-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.human-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 40, 21, 0.96) 0%, rgba(12, 40, 21, 0.75) 48%, rgba(12, 40, 21, 0.25) 100%);
}
.human-band .container { position: relative; z-index: 2; padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
.human-band-copy { max-width: 720px; color: #fff; }
.human-band h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.human-band p { font-size: 1.1rem; color: #e1ebe3; line-height: 1.68; margin: 0; }

/* CTA Cards con contención total */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card {
  border-radius: 30px;
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.cta-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.cta-card.green { background: var(--green-900); color: #fff; }
.cta-card.cream { background: var(--cream); border: 1px solid var(--line-light); }
.cta-card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  line-height: 1.12;
  margin: 0 0 16px;
}
.cta-card.green h3 { color: #fff; }
.cta-card.cream h3 { color: var(--green-900); }
.cta-card p { max-width: 520px; font-size: 1rem; line-height: 1.65; margin: 0 0 24px; }

/* Contact Section */
.contact-shell { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; }
.contact-panel {
  border: 1px solid var(--line-light);
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 34px);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.contact-panel h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green-900);
  font-size: 1.4rem;
  margin-top: 0;
}
.contact-list { display: grid; gap: 12px; }
.contact-list a { text-decoration: none; color: var(--green-900); font-weight: 700; font-size: 1.02rem; }
.contact-list a:hover { color: var(--orange); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 800; color: var(--green-900); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #ccd7ce;
  background: #fff;
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  font-size: .95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 97, 19, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; }
.flash { padding: 14px 18px; border-radius: 14px; background: #edf8ef; color: var(--green-900); margin-bottom: 18px; font-weight: 600; }
.flash.error { background: #fff0ea; color: #8b321b; }

/* Page Hero */
.page-hero { padding: clamp(54px, 6vw, 76px) 0 48px; background: var(--cream); border-bottom: 1px solid var(--line-light); }
.page-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.06;
  text-transform: uppercase;
  color: var(--green-900);
  letter-spacing: -0.03em;
  margin: 15px 0 0;
}
.content { padding: clamp(48px, 6vw, 68px) 0 clamp(64px, 8vw, 96px); }
.prose { max-width: 900px; font-size: 1.02rem; line-height: 1.72; }
.prose h2, .prose h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--green-900);
  line-height: 1.15;
}
.prose h2 { font-size: 1.8rem; margin-top: 40px; margin-bottom: 16px; }
.prose h3 { font-size: 1.3rem; margin-top: 28px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 22px; margin: 16px 0; }
.prose li { margin-bottom: 8px; }
.notice {
  border-left: 4px solid var(--orange);
  background: #fff7f0;
  padding: 18px 22px;
  border-radius: 0 16px 16px 0;
  margin: 26px 0;
}

/* Site Footer */
.site-footer {
  background: var(--ink);
  color: #d7e2da;
  padding: 64px 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 81, 48, 0.25), transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-link, .footer-logo-wrap {
  display: inline-block;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 20px;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-expo);
}
.footer-logo-link:hover, .footer-logo-wrap:hover {
  transform: scale(1.03);
}
.footer-logo {
  width: 154px;
  height: auto;
  filter: none !important;
  background: transparent !important;
  display: block;
}

.footer-brand-col p { font-size: .93rem; line-height: 1.65; color: #c4d4c8; max-width: 320px; }

.site-footer h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links li a {
  color: #d7e2da;
  text-decoration: none;
  font-size: .92rem;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
.footer-links li a:hover { color: var(--orange-2); transform: translateX(3px); }

.footer-contact-info { display: grid; gap: 10px; font-size: .92rem; color: #d7e2da; margin: 0; }
.footer-email { color: var(--orange) !important; font-weight: 700; text-decoration: none; }
.footer-email:hover { color: var(--orange-2) !important; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: .82rem;
  color: #aab7ad;
  position: relative;
  z-index: 2;
}
.footer-bottom a { color: #d7e2da; text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* Botón Flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-expo);
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
}
.whatsapp-tooltip {
  background: rgba(18, 59, 32, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  pointer-events: none;
  animation: waTooltipIn 0.8s var(--ease-out-expo);
}
.whatsapp-icon-btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.whatsapp-icon-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: waPulse 2.5s infinite;
  z-index: -1;
}
.wa-svg {
  width: 30px;
  height: 30px;
}
@keyframes waPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}
@keyframes waTooltipIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Animaciones Reveal de Entrada Staggered */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
  .credit-journey .reveal:nth-child(1) { transition-delay: 0.05s; }
  .credit-journey .reveal:nth-child(2) { transition-delay: 0.12s; }
  .credit-journey .reveal:nth-child(3) { transition-delay: 0.19s; }
  .credit-journey .reveal:nth-child(4) { transition-delay: 0.26s; }
}

/* Breakpoints Responsive Suaves y Anti-Desborde */
@media (max-width: 1160px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo-stage { min-height: 480px; max-width: 650px; margin: auto; }
  .credit-journey { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .span-7, .span-5, .span-4, .span-8 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    gap: 14px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 860px) {
  .section-head, .story-split, .proof-grid, .contact-shell, .cta-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .span-7, .span-5, .span-4, .span-8 { grid-column: auto; }
  .trust-card { grid-template-columns: 1fr 1fr; }
  .trust-cell:nth-child(2) { border-right: 0; }
  .trust-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .story-photo { min-height: 400px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1200px); }
  .topline-inner { justify-content: center; }
  .topline-hide { display: none; }
  .brand img { width: 130px; }
  
  .hero-premium { padding: 48px 0 64px; }
  .hero-title { font-size: clamp(2rem, 8.5vw, 2.75rem); line-height: 1.08; }
  .hero-photo-stage { min-height: 420px; }
  .hero-main-photo { width: 90%; height: 350px; }
  .hero-small-photo { width: 56%; height: 190px; border-width: 6px; }
  .hero-badge { left: 0; top: 10px; padding: 12px 14px; }
  .hero-seal { right: 0; bottom: 10px; padding: 14px 16px; }
  
  .trust-card, .credit-journey, .programs-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .trust-cell:last-child { border-bottom: 0 !important; }
  
  .human-band::after { background: rgba(12, 40, 21, 0.88); }
  
  .whatsapp-float { bottom: 20px; right: 20px; }
  .whatsapp-tooltip { display: none; }
  .whatsapp-icon-btn { width: 52px; height: 52px; }
  .wa-svg { width: 26px; height: 26px; }
}
