/* fundacionhogaresdebelen.org — estilos propios: azul ultramar, amarillo y verde */

:root {
  --navy: #10164a;
  --navy-2: #1a2370;
  --ultra: #2432e0;
  --ultra-2: #4a3ff0;
  --violet: #6a3df0;
  --sun: #ffd23f;
  --sun-2: #ffe56f;
  --go: #19c77a;
  --go-2: #6beaa9;
  --page: #eef1fb;
  --card: #ffffff;
  --ink: #1c2452;
  --soft: #596290;
  --edge: #d4daf4;
  --tint: #f3f5ff;
  --max: 1200px;
  --font: "Mulish", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 17px/1.72 var(--font); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
.fh-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.fh-skip { position: absolute; left: 14px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--sun); color: #2a2000; font-weight: 800; }
.fh-skip:focus { top: 12px; }

/* ---------- cabecera ---------- */
.fh-head { position: sticky; top: 0; z-index: 60; background: var(--navy); box-shadow: 0 8px 26px rgba(10,14,60,.35); }
.fh-head__in { position: relative; z-index: 62; max-width: var(--max); margin: 0 auto; padding: 0 20px; min-height: 72px; display: flex; align-items: center; gap: 22px; }
.fh-brand { color: #fff; font-size: 2rem; font-weight: 800; font-style: italic; letter-spacing: -.05em; line-height: 1; }
.fh-menu { flex: 1; }
.fh-menu ul { display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.fh-menu a { position: relative; display: block; padding: 10px 14px; color: #e3e7ff; font-size: .96rem; font-weight: 700; transition: color .15s; }
.fh-menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transition: transform .18s; }
.fh-menu a:hover { color: #fff; }
.fh-menu a[aria-current="true"] { color: #fff; }
.fh-menu a[aria-current="true"]::after, .fh-menu a:hover::after { transform: scaleX(1); }
.fh-head__cta { margin-left: auto; }
.fh-burger { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.fh-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.fh-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fh-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.fh-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.fh-drawer { display: none; position: fixed; inset: 0; z-index: 61; padding: 100px 20px 40px; overflow-y: auto; background: var(--navy); }
.fh-drawer.is-open { display: block; }
.fh-drawer ul { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.fh-drawer ul a { display: block; padding: 16px 18px; border-radius: 14px; background: var(--navy-2); color: #fff; font-size: 1.08rem; font-weight: 700; }
.fh-drawer ul a[aria-current="true"] { background: var(--sun); color: #2a2000; }

/* ---------- botones ---------- */
.fh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border: 0; border-radius: 14px; font: 800 1rem/1.2 var(--font); text-align: center; cursor: pointer; transition: transform .15s, filter .15s; }
.fh-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.fh-btn:focus-visible, a:focus-visible, summary:focus-visible, .fh-burger:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.fh-btn--sun { background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #2a2000; box-shadow: 0 8px 22px rgba(255,210,63,.4); }
.fh-btn--go { background: linear-gradient(135deg, var(--go), var(--go-2)); color: #04281a; box-shadow: 0 8px 22px rgba(25,199,122,.34); }
.fh-btn--blue { background: linear-gradient(135deg, var(--ultra), var(--ultra-2)); color: #fff; box-shadow: 0 8px 22px rgba(36,50,224,.34); }
.fh-btn--line { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.fh-btn--line:hover { background: rgba(255,255,255,.12); }
.fh-btn--sm { padding: 10px 22px; font-size: .94rem; border-radius: 999px; }
.fh-btn--xl { padding: 16px 34px; font-size: 1.05rem; }
.fh-btn--block { display: flex; width: 100%; }

/* ---------- portada ---------- */
.fh-hero { position: relative; isolation: isolate; padding: 54px 0 0; scroll-margin-top: 80px; }
.fh-hero::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: 58px; background: radial-gradient(520px 360px at 88% 8%, rgba(255,255,255,.14), transparent 70%), linear-gradient(135deg, #1b27d6 0%, #3a2fe4 55%, #6a3df0 100%); }
.fh-hero__in { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; }
.fh-hero h1 { margin: 0 0 20px; color: #fff; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.fh-hero__copy p { color: #e3e7ff; font-size: 1.12rem; }
.fh-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fh-shot { position: relative; margin: 0 16px 16px 0; border-radius: 24px; overflow: hidden; background: #31498e; box-shadow: 16px 16px 0 var(--sun), 0 30px 60px rgba(8,10,70,.5); }
.fh-shot img { width: 100%; height: auto; aspect-ratio: 1380 / 752; }
.fh-facts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--max); margin: 46px auto 0; padding: 0 20px; list-style: none; }
.fh-facts li { padding: 20px 24px; border-radius: 20px; background: var(--card); box-shadow: 0 18px 40px rgba(24,30,120,.18); border-bottom: 5px solid var(--sun); }
.fh-facts li:nth-child(2) { border-bottom-color: var(--go); }
.fh-facts li:nth-child(3) { border-bottom-color: var(--ultra); }
.fh-facts strong { display: block; color: var(--ultra); font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.fh-facts span { display: block; margin-top: 4px; color: var(--soft); font-size: .96rem; }

/* ---------- contenido ---------- */
.fh-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 56px; }
.fh-stack > * { min-width: 0; }
.fh-intro { padding: 30px 36px 32px; border-radius: 24px; background: var(--card); box-shadow: 0 16px 40px rgba(24,30,120,.1); }
.fh-intro p { font-size: 1.1rem; line-height: 1.78; }
.fh-intro > :last-child { margin-bottom: 0; }

.fh-card { position: relative; padding: 46px 40px 34px; border-radius: 24px; background: var(--card); box-shadow: 0 16px 40px rgba(24,30,120,.1); scroll-margin-top: 92px; }
.fh-card__tab { position: absolute; left: 36px; top: -18px; }
.fh-card__no { display: inline-block; padding: 7px 18px; border-radius: 12px; background: var(--ultra); color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: .1em; box-shadow: 0 8px 18px rgba(36,50,224,.3); }
.fh-card--1 .fh-card__no { background: var(--sun); color: #2a2000; box-shadow: 0 8px 18px rgba(255,210,63,.45); }
.fh-card--2 .fh-card__no { background: var(--go); color: #04281a; box-shadow: 0 8px 18px rgba(25,199,122,.4); }
.fh-card h2 { margin: 0 0 18px; color: var(--navy); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; }
.fh-card h3 { margin: 30px 0 12px; color: var(--ultra); font-size: 1.22rem; line-height: 1.3; font-weight: 800; }
.fh-card p { line-height: 1.78; }
.fh-card strong { color: var(--navy); }
.fh-card__body > :last-child { margin-bottom: 0; }

.fh-bul { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; }
.fh-bul li { position: relative; padding: 13px 16px 13px 46px; border-radius: 14px; background: var(--tint); border: 1px solid var(--edge); line-height: 1.6; }
.fh-bul li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 12px; height: 12px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px rgba(25,199,122,.2); }
.fh-bul--tiles { grid-template-columns: 1fr 1fr; }
.fh-num { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; counter-reset: k; }
.fh-num li { position: relative; counter-increment: k; min-height: 56px; padding: 14px 16px 14px 64px; border-radius: 14px; background: var(--tint); border: 1px solid var(--edge); line-height: 1.6; }
.fh-num li::before { content: counter(k); position: absolute; left: 14px; top: 11px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--ultra), var(--ultra-2)); color: #fff; font-weight: 800; }

.fh-tbl { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--edge); }
.fh-tbl table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.fh-tbl--wide table { min-width: 540px; }
.fh-tbl th { padding: 14px 18px; text-align: left; background: var(--ultra); color: #fff; font-size: .83rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fh-tbl td { padding: 12px 18px; border-top: 1px solid var(--edge); vertical-align: top; }
.fh-tbl tbody tr:first-child td { border-top: 0; }
.fh-tbl tbody tr:nth-child(even) td { background: var(--tint); }
.fh-tbl td:first-child { color: var(--navy); font-weight: 700; }

.fh-call { display: flex; justify-content: center; margin: 28px 0 6px; padding: 26px 20px; border-radius: 20px; border: 1px solid #cfd8ff; background: linear-gradient(120deg, #e8edff, #fff4cc); }

.fh-qa { display: grid; gap: 10px; margin: 6px 0 12px; }
.fh-ask { border-radius: 16px; border: 1px solid var(--edge); background: var(--tint); overflow: hidden; }
.fh-ask[open] { border-color: var(--ultra); background: #fff; }
.fh-ask summary { position: relative; padding: 18px 64px 18px 22px; color: var(--navy); font-size: 1.04rem; font-weight: 800; line-height: 1.4; list-style: none; cursor: pointer; }
.fh-ask summary::-webkit-details-marker { display: none; }
.fh-ask summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; background: var(--ultra); color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.fh-ask[open] summary::after { content: "−"; background: var(--sun); color: #2a2000; }
.fh-ask__body { padding: 0 22px 20px; }
.fh-ask__body p { margin: 0; }

/* ---------- pie ---------- */
.fh-foot { margin-top: 64px; padding: 46px 0 26px; background: var(--navy); color: #b9c1ee; border-top: 5px solid var(--sun); }
.fh-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 26px; }
.fh-foot__grid p { margin: 14px 0 0; font-size: .96rem; max-width: 340px; }
.fh-foot__h { margin: 0 0 12px !important; color: var(--sun-2); font-size: .78rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fh-foot ul { margin: 0; padding: 0; list-style: none; }
.fh-foot li a { display: inline-block; padding: 5px 0; color: #e6e9ff; font-size: .97rem; }
.fh-foot li a:hover { color: #fff; text-decoration: underline; }
.fh-foot__c { margin: 0 !important; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: .88rem !important; max-width: none !important; }

/* ---------- 404 ---------- */
.fh-gone { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #1b27d6, #6a3df0); }
.fh-gone__card { width: 100%; max-width: 520px; padding: 44px 32px; text-align: center; border-radius: 26px; background: #fff; box-shadow: 0 30px 70px rgba(8,10,70,.5); }
.fh-gone__n { margin: 0 0 6px; color: var(--ultra); font-size: 4rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.fh-gone h1 { margin: 0 0 12px; color: var(--navy); font-size: 1.7rem; line-height: 1.2; }

/* ---------- adaptación ---------- */
@media (max-width: 1000px) {
  .fh-menu, .fh-head__cta { display: none; }
  .fh-burger { display: flex; }
  .fh-hero__in { grid-template-columns: 1fr; gap: 34px; }
  .fh-facts { grid-template-columns: 1fr; }
  .fh-foot__grid { grid-template-columns: 1fr 1fr; }
  .fh-foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .fh-hero { padding-top: 32px; }
  .fh-hero::before { bottom: 0; }
  .fh-facts { margin-top: 34px; gap: 12px; }
  .fh-hero__btns .fh-btn { width: 100%; }
  .fh-shot { margin: 0 10px 10px 0; border-radius: 18px; box-shadow: 10px 10px 0 var(--sun), 0 24px 50px rgba(8,10,70,.5); }
  .fh-stack { gap: 34px; margin-top: 40px; }
  .fh-intro { padding: 22px 20px 24px; }
  .fh-card { padding: 40px 18px 26px; border-radius: 20px; }
  .fh-card__tab { left: 22px; }
  .fh-bul--tiles { grid-template-columns: 1fr; }
  .fh-card h3 { font-size: 1.1rem; }
  .fh-btn { white-space: normal; }
  .fh-call .fh-btn { width: 100%; }
  .fh-foot__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
