/* ============================================================
   CREFAYL — Rediseño 02
   Paleta conservada del sitio original (crefayl.com/style.css)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Public+Sans:wght@400;500;600&display=swap');

:root{
  --blue: #0b3a67;
  --blue-deep: #0a2f54;
  --blue-ink: #071f38;
  --gold: #f1c40f;
  --gold-deep: #d9ad0b;
  --ink: #0f172a;
  --muted: #47536b;
  --line: #e4e7ee;
  --paper: #fbfbf9;
  --surface: #f4f5f8;
  --shadow-sm: 0 6px 18px rgba(8, 30, 58, 0.08);
  --shadow-md: 0 18px 40px rgba(8, 30, 58, 0.14);
  --radius-card: 20px;
  --radius-img: 16px;
  --radius-pill: 999px;
  --container: min(1180px, 92%);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Public Sans', Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: 'Manrope', 'Inter', sans-serif;
  margin: 0;
  color: var(--blue);
  letter-spacing: -0.01em;
}

p{ margin: 0; }

a{ color: inherit; }

img{ max-width: 100%; display: block; }

.container{
  width: var(--container);
  margin: 0 auto;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: rgba(11,58,103,0.08);
  border: 1px solid rgba(11,58,103,0.16);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}
.btn:active{ transform: translateY(1px) scale(0.98); }

.btn-primary{
  background: var(--gold);
  color: var(--blue-ink);
  box-shadow: 0 8px 20px rgba(8, 30, 58, 0.22);
}
.btn-primary:hover{ background: #ffd633; transform: translateY(-2px); }

.btn-ghost{
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.btn-outline{
  background: transparent;
  color: var(--blue);
  border-color: rgba(11,58,103,0.35);
}
.btn-outline:hover{ background: rgba(11,58,103,0.06); transform: translateY(-2px); }

/* ============ HEADER ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,58,103,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(3, 14, 27, 0.18);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  min-height: 72px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(8, 30, 58, 0.25);
}

.brand-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-name{ font-family: 'Manrope', sans-serif; font-weight: 800; color: #fff; font-size: 18px; letter-spacing: 0.01em; }
.brand-sub{ font-size: 11.5px; color: rgba(255,255,255,0.85); font-weight: 500; }

.main-nav{
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a{
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 9px 4px;
  margin: 0 10px;
}

.main-nav a::after{
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}

.main-nav a:hover{ color: var(--gold); }
.main-nav a:hover::after{ transform: scaleX(1); }

.nav-cta{ margin-left: 18px; }
.nav-cta::after{ content: none; }
.main-nav .nav-cta,
.main-nav .nav-cta:hover{ color: var(--blue-ink); }

.hamburger{
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color .18s ease, border-color .18s ease;
}

.hamburger:hover{ background: rgba(255,255,255,0.08); }

.hamburger span{
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .2s ease, top .28s cubic-bezier(.16,1,.3,1);
}

.hamburger span:nth-child(1){ top: 15px; }
.hamburger span:nth-child(2){ top: 21px; }
.hamburger span:nth-child(3){ top: 27px; }

.hamburger.is-open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero{
  display: grid;
  grid-template-columns: minmax(340px, 40%) 1fr;
  min-height: 86dvh;
  background: var(--blue-ink);
}

.hero-panel{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 56px clamp(24px, 4.5vw, 64px);
}

.hero-panel .eyebrow{
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  align-self: flex-start;
}

.hero-heading-row{
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-logo{
  width: 125px;
  height: 125px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(3, 14, 27, 0.35);
  flex-shrink: 0;
}

.hero-panel h1{
  color: #fff;
  font-size: clamp(1.9rem, 2.7vw + 1rem, 2.6rem);
  line-height: 1.16;
  font-weight: 800;
}

.hero-panel > p{
  color: rgba(255,255,255,0.82);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 42ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline--dark{
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline--dark:hover{ background: rgba(255,255,255,0.08); }

.hero-visual{
  position: relative;
  overflow: hidden;
  background: var(--blue-ink);
}

.hero-social{
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.social-circle{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(3, 14, 27, 0.4);
  transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s ease;
}

.social-circle:hover{ background: var(--gold); transform: translateY(-2px) scale(1.06); }
.social-circle:active{ transform: translateY(0) scale(0.96); }

.hero-visual::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,31,56,0.65) 0%, rgba(7,31,56,0) 14%);
}

.hero-media{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 38%;
  display: block;
}

/* ============ STATS STRIP ============ */
.stats{
  background: var(--blue-deep);
  padding: 40px 0;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-num{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label{
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 30ch;
}

/* ============ SECTION HEADS ============ */
.section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.section-surface{ background: var(--surface); }

.section-head{
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2{
  font-size: clamp(2rem, 1.2rem + 2.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-head p{
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.section-head p + p{ margin-top: 16px; }

/* ============ PROGRAMS BENTO ============ */
.programs-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.program-card{
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}

.program-card--feature{
  grid-row: 1 / span 2;
  min-height: 620px;
}

.program-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.program-card:hover img{ transform: scale(1.05); }

.program-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,31,56,0) 35%, rgba(7,31,56,0.88) 100%);
}

.program-card--wide{
  margin-top: 18px;
  width: 100%;
  min-height: 380px;
}

.program-card--wide img{ object-position: 58% 78%; }

.program-card--wide::after{
  background:
    linear-gradient(180deg, rgba(3,14,27,0.1) 0%, rgba(3,14,27,0.94) 100%),
    linear-gradient(90deg, rgba(3,14,27,0.6) 0%, rgba(3,14,27,0.05) 55%);
}

.program-body{
  position: relative;
  z-index: 2;
  padding: 26px;
  color: #fff;
}

.program-card--wide .program-body{ padding: 36px; max-width: 640px; }

.program-tag{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.program-tag--icon{
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.program-body h3{
  color: #fff;
  font-size: 21px;
  margin-bottom: 8px;
}

.program-card--feature h3{ font-size: 27px; }

.program-body p{
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.program-link{
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.program-link:hover{ color: var(--gold); }

/* ============ HISTORIA SPLIT ============ */
.historia-split{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.historia-figure{
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.historia-figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.historia-copy .eyebrow{ margin-bottom: 18px; }

.historia-copy h2{
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.22;
  margin-bottom: 18px;
}

.historia-copy p{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.historia-copy .btn{ margin-top: 8px; }

/* ============ COORDINADORES ============ */
.coord-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.coord-card{
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.coord-photo{
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.coord-photo img{ width: 100%; height: 100%; object-fit: cover; }

.coord-info{ padding: 14px; }

.coord-name{ font-size: 14px; font-weight: 800; color: var(--blue-ink); margin-bottom: 4px; }
.coord-role{ font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.coord-card--pending{
  border-style: dashed;
  border-color: rgba(11,58,103,0.3);
  box-shadow: none;
  opacity: 0.8;
}

.coord-card--pending .coord-photo{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2f8, var(--surface));
}

.coord-card--pending .coord-photo span{
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: rgba(11,58,103,0.55);
  text-align: center;
  padding: 0 12px;
}

/* ============ COMUNICADO ============ */
.notice{
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.notice-badge{
  display: inline-block;
  background: rgba(241,196,15,0.18);
  color: #8a6d00;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.notice h3{
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 18px;
  line-height: 1.3;
}

.notice p{
  color: var(--ink);
  line-height: 1.75;
  font-size: 15.5px;
  max-width: 74ch;
}

.notice-sign{
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.notice-sign strong{ color: var(--blue); }

/* ============ TESTIMONIOS ============ */
.quotes-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.quote-block::before{
  content: "\201C";
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 4px;
}

.quote-block p{
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}

.quote-cite{
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ============ CTA UNETE ============ */
.cta-band{
  background: linear-gradient(155deg, var(--blue), var(--blue-ink));
  color: #fff;
  border-radius: 28px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.cta-band::before{
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.cta-head{
  max-width: 620px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta-head h2{ color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-head p{ color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.6; }

.cta-ways{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}

.cta-way{ border-top: 1px solid rgba(255,255,255,0.18); padding-top: 18px; }
.cta-way h4{ color: var(--gold); font-size: 16px; margin-bottom: 8px; }
.cta-way p{ color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.55; }

.cta-actions{ display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============ FOOTER ============ */
.site-footer{
  background: var(--blue-ink);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
  margin-top: 96px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .brand-name{ font-size: 20px; }
.footer-tagline{
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 34ch;
}

.footer-title{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-links{ display: grid; gap: 10px; }
.footer-links a{ color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover{ color: var(--gold); }

.footer-contact p{ font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.footer-contact span{ color: rgba(255,255,255,0.7); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.footer-bottom a{ color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover{ color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px){
  .hero{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; height: 42vh; min-height: 280px; }
  .hero-social{ right: 14px; bottom: 14px; gap: 10px; }
  .social-circle{ width: 38px; height: 38px; }
  .social-circle svg{ width: 17px; height: 17px; }
  .hero-visual::before{ background: linear-gradient(0deg, rgba(7,31,56,0.75) 0%, rgba(7,31,56,0) 30%); }
  .hero-panel{ padding: 40px clamp(20px, 5vw, 48px) 44px; }
  .programs-grid{ grid-template-columns: 1fr 1fr; }
  .program-card--feature{ grid-column: 1 / span 2; grid-row: auto; min-height: 380px; }
  .coord-grid{ grid-template-columns: repeat(3, 1fr); }
  .historia-split{ grid-template-columns: 1fr; }
  .historia-figure{ max-width: 380px; margin: 0 auto; }
  .quotes-grid{ grid-template-columns: 1fr; gap: 32px; }
  .cta-ways{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px){
  .header-inner{ position: relative; }

  .main-nav{
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--blue-ink);
    padding: 14px clamp(20px, 5vw, 48px) 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 34px rgba(3, 14, 27, 0.4);
  }

  .main-nav.is-open{ display: flex; }

  .main-nav a{
    margin: 0;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav a::after{ content: none; }

  .nav-cta{
    margin: 12px 0 0;
    justify-content: center;
    border-bottom: none !important;
  }

  .hamburger{ display: block; }

  .stats-grid{ grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .cta-band{ padding: 36px 24px; }
  .program-card--wide{ min-height: 320px; }
  .program-card--wide .program-body{ padding: 26px; }
}

@media (max-width: 560px){
  .hero-heading-row{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-logo{ width: 60px; height: 60px; border-radius: 14px; }
}

@media (max-width: 640px){
  .section{ padding: 56px 0; }
  .programs-grid{ grid-template-columns: 1fr; }
  .program-card--feature{ grid-column: auto; }
  .coord-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom{ flex-direction: column; text-align: center; }
  .notice{ padding: 26px; }
}

/* ============ PAGE HERO (subpáginas) ============ */
.page-hero{
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--blue-ink);
  overflow: hidden;
}

.page-hero img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--historia img{ object-position: 50% 15%; }
.page-hero--despensas img{ object-position: 50% 85%; }

.page-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,31,56,0.6) 0%, rgba(7,31,56,0.95) 100%);
}

.page-hero-inner{
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 56px 0;
}

.breadcrumb{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 18px;
}

.breadcrumb a{ color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover{ color: #fff; }
.breadcrumb span{ color: var(--gold); }

.page-hero h1{
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 14px;
}

.page-hero p{
  color: rgba(255,255,255,0.85);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 58ch;
}

/* ============ SPLIT BLOCK (reutiliza el sistema historia-split) ============ */
.historia-split--reverse{ grid-template-columns: 1.15fr 0.85fr; }
.historia-split--reverse .historia-figure{ order: 2; }

/* ============ PASOS / CÓMO FUNCIONA ============ */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-num{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #8a6d00;
  background: rgba(241,196,15,0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3{ font-size: 17px; margin-bottom: 8px; }
.step-card p{ color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ============ GALERÍA ============ */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-sm);
}

/* ============ MARCO LEGAL (artículos) ============ */
.article-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.article-media{
  border-radius: var(--radius-img);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.article-media img{
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.article-card--media:hover .article-media img{ transform: scale(1.06); }

.article-num{
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(11,58,103,0.08);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.article-card h3{ font-size: 17px; margin-bottom: 14px; }
.article-card p{ color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.article-card p + p{ margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.article-card p em{
  display: block;
  color: var(--blue);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ============ CITA ÚNICA CENTRADA ============ */
.quote-single{
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}
.quote-single .quote-block{ text-align: center; }
.quote-block--lg p{ font-size: 22px; line-height: 1.5; }

.feature-list + .gallery-grid{ margin-top: 32px; }
.feature-list + .notice{ margin-top: 32px; }

/* ============ INFO CARDS (formas de ayudar / contacto) ============ */
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}

.icon-badge{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(11,58,103,0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.info-card h3{ font-size: 18px; margin-bottom: 10px; }
.info-card p{ color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.info-card p + p{ margin-top: 6px; }

.note-muted{
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ============ FORMULARIO DE CONTACTO ADAPTABLE (unete.html) ============ */
.contact-form{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: grid;
  gap: 24px;
}

.profile-switch{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-option{ position: relative; cursor: pointer; }

.profile-option input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.profile-option span{
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.profile-option input:checked + span{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.profile-option input:focus-visible + span{
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.form-grid[hidden]{ display: none; }

.field{ display: grid; gap: 8px; }

.field label{
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea{
  font-family: 'Public Sans', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea{ resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,58,103,0.12);
  background: #fff;
}

.field-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.form-feedback{
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.form-feedback--success{ color: #1a7f4b; }
.form-feedback--error{ color: #c0392b; }

/* ============ TARJETAS EN 2 COLUMNAS ============ */
.cards-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============ LISTA DE BENEFICIOS ============ */
.feature-list{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature-list li{
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.feature-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(241,196,15,0.18);
  box-shadow: inset 0 0 0 1px rgba(217,173,11,0.4);
}

.feature-list li::after{
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-45deg);
}

.feature-list--dark li{ color: rgba(255,255,255,0.82); }
.feature-list--narrow{ max-width: 640px; }

/* ============ RESPONSIVE — subpáginas ============ */
@media (max-width: 1024px){
  .historia-split--reverse .historia-figure{ order: 0; }
  .steps-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .article-grid{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }
  .cards-2{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .page-hero{ min-height: 50vh; }
  .page-hero-inner{ padding: 40px 0; }
  .steps-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .contact-form{ padding: 22px; }
  .form-grid{ grid-template-columns: 1fr; }
}
