/* ═══════════════════════════════════════════════════════
   SubvencionCombles.com — Enhanced Stylesheet
   Modern, animated, professional — ES/FR
   ═══════════════════════════════════════════════════════ */

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

:root {
  --green: #2ecc71;
  --green-dark: #27ae60;
  --green-light: #d5f5e3;
  --green-grad: linear-gradient(135deg, #2ecc71, #27ae60);
  --blue: #3498db;
  --blue-dark: #2980b9;
  --orange: #f39c12;
  --violet: #9b59b6;
  --rose: #e91e63;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --dark3: #0f3460;
  --text: #333;
  --text2: #555;
  --text3: #888;
  --bg: #ffffff;
  --bg2: #f8faf9;
  --bg3: #f0f4f2;
  --bg-warm: #fefcf3;
  --bg-cool: #f0f7f4;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --transition: .25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,.4); }
  50%      { box-shadow: 0 0 0 12px rgba(46,204,113,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  transition: width .4s, height .4s, top .4s, left .4s;
}
.btn:hover::after {
  width: 300px; height: 300px;
  top: -100px; left: -100px;
}

.btn-primary { background: var(--green-grad); color: #fff; border-color: transparent; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(46,204,113,.35); color: #fff; }

.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: #fff; transform: translateY(-3px); }

.btn-white { background: #fff; color: var(--dark); border-color: transparent; }
.btn-white:hover { background: #f8f8f8; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.15); color: var(--dark); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-header { padding: 10px 22px; font-size: 14px; }
.btn-pulse { animation: pulse 2s infinite; }

/* ── Header ─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: all var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.08);
  background: rgba(255,255,255,.97);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--dark);
  font-weight: 500;
}
.logo strong { font-weight: 800; color: var(--green-dark); }
.logo:hover { color: var(--dark); }

.header-right { display: flex; align-items: center; gap: 16px; }

.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--green-dark); background: var(--green-light); }
.nav-link.active { color: var(--green-dark); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--green);
  border-radius: 3px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.lang-switch a {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  transition: all var(--transition);
}
.lang-switch a.active {
  background: var(--green-dark);
  color: #fff;
}
.lang-switch a:hover:not(.active) { color: var(--green-dark); }
.lang-switch-mobile { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,204,113,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(52,152,219,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(46,204,113,.1);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: fadeInUp .6s ease;
}

.hero h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 20px;
  animation: fadeInUp .6s ease .1s both;
}
.highlight { color: var(--green); }

.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
  animation: fadeInUp .6s ease .2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  animation: fadeInUp .6s ease .3s both;
}

.hero-trust {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,.06);
  animation: fadeInUp .6s ease .4s both;
}
.trust-item strong {
  display: block;
  font-size: 28px;
  color: var(--dark);
  font-weight: 800;
}
.trust-item span { font-size: 14px; color: var(--text3); }

.hero-visual {
  animation: fadeInRight .8s ease .2s both;
}
.hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}
.hero-img-card {
  position: relative;
}
.hero-float-badge {
  position: absolute;
  bottom: -16px; left: -16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}
.hero-float-badge .badge-icon {
  width: 44px; height: 44px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.hero-float-badge strong { font-size: 18px; color: var(--dark); }
.hero-float-badge span { font-size: 13px; color: var(--text3); display: block; }

.hero-float-badge-2 {
  position: absolute;
  top: 20px; right: -20px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out 1s infinite;
}
.hero-float-badge-2 .badge-icon {
  width: 40px; height: 40px;
  background: #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ── Page Hero (sub-pages) ──────────────────────────── */
.page-hero {
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero.with-bg {
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero.with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.85) 0%, rgba(15,52,96,.75) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { font-size: 18px; opacity: .85; max-width: 600px; margin: 0 auto; }
.page-hero.text-center { text-align: center; }

.page-hero-plain {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  text-align: center;
}
.page-hero-plain h1 { font-size: 42px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.page-hero-plain p { font-size: 18px; color: var(--text2); max-width: 600px; margin: 0 auto; }

/* ── Sections ───────────────────────────────────────── */
.section { padding: 80px 0; }
.section-lg { padding: 100px 0; }

.bg-light { background: var(--bg2); }
.bg-warm  { background: var(--bg-warm); }
.bg-cool  { background: var(--bg-cool); }

.bg-gradient-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.bg-gradient-soft {
  background: linear-gradient(180deg, #fff 0%, var(--bg2) 50%, #fff 100%);
}

/* Pattern overlay */
.bg-pattern {
  position: relative;
}
.bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.section-header p { font-size: 17px; color: var(--text2); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.section-header .section-line {
  display: block;
  width: 50px; height: 4px;
  background: var(--green-grad);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ── Cards Grid ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(0,0,0,.04);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--green-grad);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }

.card-compact { padding: 28px; text-align: center; }

.card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  font-size: 26px;
  margin-bottom: 18px;
}
.card-icon-wrap.green  { background: var(--green-light); }
.card-icon-wrap.blue   { background: #dbeafe; }
.card-icon-wrap.orange { background: #fef3c7; }
.card-icon-wrap.violet { background: #ede9fe; }

.card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.card p  { color: var(--text2); font-size: 15px; line-height: 1.7; }

.card-list { list-style: none; margin-top: 16px; }
.card-list li { padding: 6px 0; font-size: 14px; color: var(--text2); }

/* ── Photo Card ──────────────────────────────────────── */
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: all .35s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.photo-card-img-wrap { overflow: hidden; }
.photo-card-img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-card:hover .photo-card-img { transform: scale(1.05); }
.photo-card-body { padding: 28px; }
.photo-card-body h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.photo-card-body p { font-size: 15px; color: var(--text2); line-height: 1.7; }

/* ── Steps ──────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; justify-items: center; }
.step {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}
.step::after {
  content: '';
  position: absolute;
  top: 36px; right: -12px;
  width: 24px; height: 2px;
  background: var(--border);
}
.step:last-child::after { display: none; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: var(--green-grad);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(46,204,113,.25);
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--text2); }

/* ── CTA Section ────────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  border-radius: 24px;
  padding: 72px 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,204,113,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-box h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-box p  { font-size: 17px; opacity: .8; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* CTA with photo background */
.cta-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-photo-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(15,52,96,.82) 100%);
  z-index: 1;
}
.cta-photo-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 60px 40px;
}
.cta-photo-content h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.cta-photo-content p  { font-size: 17px; opacity: .85; margin-bottom: 36px; max-width: 520px; margin: 0 auto 36px; }

/* ── Testimonials ───────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: all .3s;
}
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.stars { color: #f1c40f; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
}
.testimonial-author strong { display: block; color: var(--dark); font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--text3); }

/* ── Services Page ──────────────────────────────────── */
.services-grid { display: flex; flex-direction: column; gap: 80px; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-img {
  border-radius: 20px;
  width: 100%;
  height: 340px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: transform .4s ease;
}
.service-img:hover { transform: scale(1.02); }

.service-content h2 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.service-content > p { font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 20px; }

.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li {
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: var(--text);
  position: relative;
}
.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 8px;
  color: var(--green);
  font-weight: 800;
  font-size: 16px;
}

/* Why Us section */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.04);
  transition: all .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.why-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ── Eligibility Page ───────────────────────────────── */
.elig-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; }
.elig-main h2 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.elig-main > p { color: var(--text2); margin-bottom: 24px; line-height: 1.7; }

.table-responsive { overflow-x: auto; margin-bottom: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.elig-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.elig-table th {
  background: linear-gradient(135deg, var(--dark), var(--dark3));
  color: #fff;
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.elig-table th:first-child { border-radius: 12px 0 0 0; }
.elig-table th:last-child  { border-radius: 0 12px 0 0; }
.elig-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.row-blue td   { background: #f0f9ff; }
.row-yellow td { background: #fefce8; }
.row-violet td { background: #faf5ff; }
.row-rose td   { background: #fff1f2; }

.profile-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.profile-badge.blue   { background: #dbeafe; color: #1e40af; }
.profile-badge.yellow { background: #fef3c7; color: #92400e; }
.profile-badge.violet { background: #ede9fe; color: #6d28d9; }
.profile-badge.rose   { background: #fce7f3; color: #be185d; }

.info-box {
  background: linear-gradient(120deg, var(--green-light), #d5f0ff);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px;
  margin-bottom: 40px;
}
.info-box h3 { font-size: 17px; color: var(--green-dark); margin-bottom: 14px; }
.info-box ul { list-style: none; }
.info-box li { padding: 5px 0; font-size: 14px; color: var(--text); }
.info-box li::before { content: '\2713 '; color: var(--green); font-weight: 700; }

.cumul-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.cumul-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: all .3s;
}
.cumul-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cumul-card h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.cumul-amount { font-size: 24px; font-weight: 800; color: var(--green-dark); margin-bottom: 4px; }
.cumul-card p:last-child { font-size: 13px; color: var(--text3); }

.elig-sidebar { }
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.sidebar-card.sticky { position: sticky; top: 96px; }
.sidebar-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.sidebar-card > p { font-size: 14px; color: var(--text2); margin-bottom: 22px; }

.sidebar-form { display: flex; flex-direction: column; gap: 12px; }
.sidebar-form input, .sidebar-form select {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  transition: all var(--transition);
  background: var(--bg2);
}
.sidebar-form input:focus, .sidebar-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,204,113,.1);
  background: #fff;
}
.sidebar-note { font-size: 12px; color: var(--text3); margin-top: 14px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: box-shadow .3s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item summary {
  padding: 20px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}
.faq-item summary:hover { color: var(--green-dark); }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--green);
  font-weight: 700;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 28px 20px; font-size: 15px; color: var(--text2); line-height: 1.7; }

/* ── Contact Page ───────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; }
.contact-form-wrap h2 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--text2); margin-bottom: 28px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--dark); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  transition: all var(--transition);
  background: var(--bg2);
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,204,113,.1);
  background: #fff;
}

.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input[type="checkbox"] { margin-top: 5px; accent-color: var(--green); width: 18px; height: 18px; }
.form-check label { font-size: 13px; color: var(--text2); line-height: 1.5; }
.form-check a { color: var(--green-dark); text-decoration: underline; }

.form-note { font-size: 13px; color: var(--text3); text-align: center; }

.form-success { text-align: center; padding: 60px 20px; display: none; }
.success-icon { font-size: 56px; margin-bottom: 16px; }
.form-success h3 { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.form-success p { color: var(--text2); font-size: 16px; }

.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-card.highlight-card {
  background: linear-gradient(135deg, var(--green-light), #d5f0ff);
  border-color: var(--green);
}
.contact-card-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.contact-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.contact-card p  { font-size: 14px; color: var(--text2); line-height: 1.6; }
.contact-card a  { display: block; font-size: 14px; margin-bottom: 4px; }
.contact-phone {
  font-size: 15px !important;
  font-weight: 700;
  color: var(--green-dark) !important;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ── Stats Band ──────────────────────────────────────── */
.stats-band {
  padding: 40px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  color: #fff;
}
.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-band-item strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-band-item span { font-size: 14px; opacity: .7; }

/* ── Partners / Trust logos ──────────────────────────── */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.trust-logo {
  width: 100px; height: 50px;
  background: var(--bg3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text3);
  transition: all .3s;
}
.trust-logo:hover { background: var(--green-light); color: var(--green-dark); }

/* ── Image Divider ───────────────────────────────────── */
.img-divider {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,.55); font-size: 14px; padding: 5px 0; transition: color var(--transition), transform var(--transition); }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 14px; }
.footer-hours { font-size: 13px; margin-top: 8px; }
.logo-footer span { color: rgba(255,255,255,.9); font-size: 18px; }
.logo-footer strong { color: var(--green); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.4); }
.footer-links a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-img { height: 300px; }
  .hero-float-badge-2 { display: none; }
  .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse { direction: ltr; }
  .service-img { height: 260px; }
  .elig-layout { grid-template-columns: 1fr; }
  .elig-sidebar { order: -1; }
  .sidebar-card.sticky { position: static; }
  .cumul-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header .container { height: 64px; }
  .nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    animation: slideDown .3s ease;
  }
  .nav.open { display: flex; }
  .btn-header { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 0 50px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-trust { flex-wrap: wrap; gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-float-badge { bottom: -12px; left: 8px; padding: 12px 14px; }
  .hero-float-badge .badge-icon { width: 36px; height: 36px; font-size: 18px; }

  .page-hero h1, .page-hero-plain h1 { font-size: 28px; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 28px; }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid.cols-4 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .step::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .service-block { gap: 24px; }
  .service-img { height: 200px; }
  .service-content h2 { font-size: 22px; }

  .cumul-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .cta-box { padding: 48px 24px; border-radius: 16px; }
  .cta-box h2 { font-size: 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .stats-band-grid { grid-template-columns: 1fr 1fr; }

  .img-divider { height: 180px; }
  .logo span { font-size: 14px; }
  .lang-switch { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-img { height: 220px; }
  .cumul-grid { grid-template-columns: 1fr; }
  .stat-band-item strong { font-size: 28px; }
}

/* ── Scroll to Top ──────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--green-grad);
  color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(46,204,113,.35);
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s, transform .3s, background .2s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.scroll-top:hover {
  box-shadow: 0 6px 24px rgba(46,204,113,.5);
  transform: translateY(-3px);
}
.scroll-top svg { width: 22px; height: 22px; }

/* ── Mobile: Cards content spacing ──────────────────── */
@media (max-width: 768px) {
  .cards-grid[style*="repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  .cards-grid[style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  .card {
    padding: 24px 20px;
  }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14px; line-height: 1.6; }
  .card-list li { font-size: 13px; padding: 5px 0; }
}

/* ── 7. Center steps-grid with 3 items ─────────────── */
.steps-grid {
  justify-items: center;
}
@media (min-width: 769px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 4. Mobile: lang-switch inside nav ─────────────── */
@media (max-width: 768px) {
  .header .lang-switch {
    display: none;
  }
  .nav.open .lang-switch-mobile {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 8px;
    width: fit-content;
  }
  .nav .lang-switch-mobile a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text3);
    transition: all var(--transition);
  }
  .nav .lang-switch-mobile a.active {
    background: var(--green-dark);
    color: #fff;
  }
  .nav.open .lang-switch-mobile { display: flex !important; }
  .logo img { width: 26px !important; height: 26px !important; }
  .logo span { font-size: 13px !important; max-width: 130px; }
}

/* ── 8. Responsive: Contact page ───────────────────── */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .contact-form-wrap h2 { font-size: 22px; }
  .contact-sidebar {
    order: 1;
  }
  .contact-card { padding: 20px; }
  .contact-phone { font-size: 18px !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
}

/* ── 9. Responsive: Elegibilidad page ──────────────── */
@media (max-width: 768px) {
  .elig-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .elig-sidebar { order: -1; }
  .sidebar-card { padding: 24px; }
  .sidebar-card.sticky { position: static; }
  .sidebar-form input,
  .sidebar-form select {
    font-size: 16px;
    padding: 14px 16px;
  }
  .elig-main h2 { font-size: 22px; }
  .table-responsive {
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
  }
  .elig-table { min-width: 0; width: 100%; }
  .elig-table thead { display: none; }
  .elig-table,
  .elig-table tbody,
  .elig-table tr,
  .elig-table td { display: block; width: 100%; }
  .elig-table tr {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    border: 1px solid var(--border);
  }
  .elig-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .elig-table td:first-child {
    border-bottom: 2px solid var(--green);
    font-weight: 600;
    font-size: 15px;
  }
  .elig-table td:last-child { border-bottom: none; }
  .elig-table th, .elig-table td { white-space: normal; }
  .info-box { padding: 20px; }
  .info-box h3 { font-size: 15px; }
  .info-box li { font-size: 13px; }
  .profile-badge { font-size: 11px; padding: 3px 10px; white-space: nowrap; }
  .cumul-grid { grid-template-columns: 1fr 1fr !important; }
  .cumul-card { padding: 16px; }
  .cumul-amount { font-size: 20px; }
  .faq-item summary { font-size: 15px; padding: 16px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
  .contact-card-icon { width: 40px; height: 40px; font-size: 18px; }
  .cumul-grid { grid-template-columns: 1fr !important; }
  .elig-table { min-width: 0; font-size: 13px; }
}

/* ── Page hero responsive ──────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 24px; line-height: 1.3; }
  .page-hero p { font-size: 15px; }
}
