/* EDUFISICA · portada editorial. Alcance limitado a la página principal. */
:root{--color-brand-primary:#0b2d3e;--color-brand-secondary:#087c88;--color-brand-accent:#ff6b17;--color-bg-subtle:#F4F8FA;--color-text-muted:#49616f;--color-border:#d6e3e7;--color-white:#fff;--color-shadow:rgba(11,45,62,.07)}
html{scroll-behavior:smooth}
.efh-home{margin:0;background:#fff;color:var(--color-brand-primary);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6}
.efh-home *, .efh-home *::before,.efh-home *::after{box-sizing:border-box}
.efh-home img{max-width:100%;height:auto;display:block}
.efh-home a{color:inherit}
.efh-home h1,.efh-home h2,.efh-home h3,.efh-home p{margin:0}
.efh-home h1,.efh-home h2,.efh-home h3{line-height:1.14;letter-spacing:-.025em}
.efh-home .efn-header h1,.efh-home .efn-header h2,.efh-home .efn-header h3{letter-spacing:normal}
.efh-wrap{width:min(1240px,100% - 48px);margin-inline:auto}
.efh-skip{position:fixed;z-index:200;top:8px;left:12px;padding:12px 18px;background:#fff;transform:translateY(-180%);border:2px solid var(--color-brand-primary)}
.efh-skip:focus{transform:translateY(0)}
.efh-home :is(a,button,input,summary):focus-visible{outline:3px solid #c74300;outline-offset:4px}
.efh-hero{background:var(--color-bg-subtle);border-bottom:1px solid var(--color-border);padding:64px 0 0;position:relative;overflow:hidden}
.efh-hero-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.7fr);gap:54px;align-items:center}
.efh-eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:850;color:#086673;margin-bottom:18px!important}
.efh-hero h1{font-size:clamp(36px,4.8vw,65px);max-width:790px;font-weight:850}
.efh-hero h1 span{color:#087c88}
.efh-lead{font-size:18px;line-height:1.7;color:var(--color-text-muted);max-width:670px;margin:22px 0 25px!important}
.efh-search{display:flex;align-items:stretch;padding:6px;background:#fff;border:1px solid #b7cfd6;border-radius:12px;box-shadow:0 6px 22px var(--color-shadow);max-width:710px;min-width:0;gap:6px}
.efh-search-field{position:relative;flex:1;min-width:0}
.efh-search-field svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:22px;height:22px;color:#49616f;pointer-events:none}
.efh-search input{width:100%;min-width:0;min-height:52px;border:0;background:transparent;color:var(--color-brand-primary);font:inherit;padding:12px 13px 12px 50px;border-radius:7px}
.efh-search input::placeholder{color:#5b717b;opacity:1}
.efh-search button,.efh-button{background:var(--color-brand-accent);color:#082333;border:0;border-radius:7px;padding:13px 24px;font:inherit;font-weight:800;min-height:48px;text-decoration:none;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:12px}
.efh-search button:hover,.efh-button:hover{background:#ff7d31;transform:translateY(-2px);box-shadow:0 5px 12px #0b2d3e18}
.efh-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:12px}
.efh-chip-label{font-weight:700;color:#49616f;margin-right:2px}
.efh-chips a{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid #c5dade;border-radius:999px;text-decoration:none;background:#fff;font-weight:650;transition:background .2s,border-color .2s}
.efh-chips a:hover{background:#e2f1f3;border-color:#087c88}
.efh-start{position:relative;padding:28px 26px;border:1px solid #b8d5db;background:linear-gradient(155deg,#fff,#e8f3f5);border-radius:18px;box-shadow:0 10px 30px rgba(11,45,62,.06)}
.efh-start::before{content:"";display:block;width:34px;height:4px;background:var(--color-brand-accent);margin-bottom:22px;border-radius:2px}
.efh-start h2{font-size:23px;margin-bottom:20px}
.efh-start a{display:grid;grid-template-columns:36px 1fr;gap:12px;padding:15px 0;text-decoration:none;border-top:1px solid #cbdfe3}
.efh-start a>span:first-child{width:32px;height:32px;background:#0b2d3e;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800}
.efh-start a strong{display:block;font-size:14px;line-height:1.45}
.efh-start a small{display:block;color:#49616f;font-size:12px;line-height:1.5;margin-top:4px}
.efh-start a:hover strong{color:#087c88;text-decoration:underline;text-underline-offset:4px}
.efh-stats{display:grid;grid-template-columns:1fr 1fr 1.1fr 1.1fr;gap:24px;border-top:1px solid #cfdee4;margin-top:44px;padding:24px 0}
.efh-stats div{padding-left:20px;border-left:2px solid #bcd8df}
.efh-stats strong{font-size:24px;font-weight:800;display:block;line-height:1.25}
.efh-stats span{display:block;font-size:12px;color:#49616f;margin-top:4px}
.efh-areas{padding:62px 0 68px}
.efh-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.efh-section-heading h2{font-size:clamp(27px,3.2vw,38px)}
.efh-section-heading p{color:#49616f;font-size:15px;margin-top:11px;max-width:650px}
.efh-section-heading>a{white-space:nowrap;font-size:13px;font-weight:750;color:#076a77;text-underline-offset:5px;min-height:44px;display:flex;align-items:center}
.efh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.efh-card{position:relative;min-width:0;border:1px solid #d6e3e7;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 4px 20px -2px rgba(11,45,62,.06);display:flex;flex-direction:column;transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s,border-color .25s}
.efh-card:hover{transform:translateY(-5px);box-shadow:0 13px 27px rgba(11,45,62,.12);border-color:#6baeb8}
.efh-card-cover{position:relative;aspect-ratio:16/9;overflow:hidden;background:#0b2d3e}
.efh-card-cover>a{height:100%;display:block}
.efh-card-cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s cubic-bezier(.16,1,.3,1)}
.efh-card:hover .efh-card-cover img{transform:scale(1.025)}
.efh-badge{position:absolute;top:15px;left:16px;z-index:1;border:1px solid #a3d4db;border-radius:999px;padding:5px 10px;background:#e0f4f5;color:#0b2d3e;font-size:11px;line-height:1.3;font-weight:800;max-width:calc(100% - 32px)}
.efh-card-copy{padding:23px 24px 22px;display:flex;flex-direction:column;flex:1;gap:13px}
.efh-card h3{font-size:22px;line-height:1.23}
.efh-card h3 a{text-decoration:none}
.efh-card h3 a:hover{color:#086c79;text-decoration:underline;text-underline-offset:5px}
.efh-card-copy p{font-size:14px;line-height:1.7;color:#49616f}
.efh-card-label{font-size:10px!important;letter-spacing:.13em;text-transform:uppercase;font-weight:850;color:#08717e!important}
.efh-card-action{display:inline-flex;align-items:center;align-self:flex-start;gap:10px;min-height:44px;margin-top:auto;font-size:13px;font-weight:800;color:#076a77!important;text-decoration:none}
.efh-arrow{display:inline-block;transition:transform .2s}
.efh-card-action:hover .efh-arrow,.efh-button:hover .efh-arrow{transform:translateX(4px)}
.efh-card-action:hover{text-decoration:underline;text-underline-offset:5px}
.efh-card-featured{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.2fr;background:#f3f7fa}
.efh-card-featured .efh-card-cover{aspect-ratio:auto;min-height:305px}
.efh-card-featured .efh-card-copy{padding:34px 40px;gap:15px;justify-content:center}
.efh-card-featured h3{font-size:clamp(26px,3vw,36px);max-width:580px}
.efh-card-featured .efh-card-copy p{font-size:15px;max-width:590px}
.efh-card-featured .efh-card-action{margin-top:0}
.efh-anchor{display:block;position:relative;top:-100px;visibility:hidden}
.efh-resources{background:#f3f7fa;border-top:1px solid #e0e9ed;padding:48px 0}
.efh-resource-banner{background:var(--color-brand-primary);color:#fff;border-radius:17px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:38px;padding:36px 40px;position:relative;overflow:hidden}
.efh-resource-banner::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--color-brand-accent)}
.efh-resource-banner h2{font-size:27px;line-height:1.25;max-width:750px}
.efh-resource-banner p{color:#d4e6ec;max-width:760px;margin-top:12px;font-size:14px;line-height:1.7}
.efh-resource-banner .efh-button{font-size:13px;text-align:center;max-width:260px}
.efh-footer{background:#082536;color:#fff;padding:48px 0 0}
.efh-footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:32px;padding-bottom:36px}
.efh-footer .efh-footer-brand{display:flex;align-items:center;gap:12px;font-weight:850;font-size:22px;letter-spacing:.015em;text-decoration:none;line-height:1.3}
.efh-footer-brand img{width:44px;height:44px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}
.efh-footer p{font-size:13px;line-height:1.8;color:#cadce4;margin-top:16px;max-width:275px}
.efh-footer h2{font-size:13px;font-weight:800;letter-spacing:0;line-height:1.5;margin:4px 0 15px}
.efh-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.efh-footer nav a{font-size:12px;line-height:1.55;min-height:36px;padding:8px 0;color:#d5e5eb;text-decoration:none}
.efh-footer nav a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
.efh-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #274452;padding:18px 0;color:#bbd2dc;font-size:11px}
.efh-footer-bottom p{margin:0;max-width:none;font-size:11px}
.efh-footer-bottom button{font:inherit;border:1px solid #627e8c;background:transparent;border-radius:6px;color:#fff;padding:10px 14px;min-height:44px;cursor:pointer}
.efh-home [hidden]{display:none!important}
/* Dos columnas en tabletas; el área destacada conserva su jerarquía. */
@media(max-width:1000px){.efh-hero-grid{grid-template-columns:1fr;gap:30px}.efh-start{display:none}.efh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.efh-hero{padding-top:45px}.efh-card-featured .efh-card-copy{padding:28px}.efh-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 40px}.efh-resource-banner{grid-template-columns:1fr;gap:24px}}
/* Una columna y controles táctiles legibles en teléfonos. */
@media(max-width:600px){.efh-wrap{width:calc(100% - 32px)}.efh-hero{padding-top:32px}.efh-eyebrow{font-size:10px;letter-spacing:.11em;max-width:300px;line-height:1.7}.efh-hero h1{font-size:37px}.efh-lead{font-size:16px;line-height:1.7;margin-top:18px!important}.efh-search{border-radius:10px}.efh-search input{font-size:14px;padding-left:39px;min-height:48px}.efh-search-field svg{left:10px;width:19px}.efh-search button{padding:10px 14px;font-size:13px;min-height:48px}.efh-chips{gap:7px;font-size:11px}.efh-chips a{min-height:40px}.efh-chip-label{width:100%;margin-bottom:1px}.efh-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;margin-top:29px;padding:23px 0}.efh-stats div{padding-left:12px}.efh-stats strong{font-size:21px}.efh-stats span{font-size:11px}.efh-areas{padding:35px 0 42px}.efh-section-heading{display:block;margin-bottom:23px}.efh-section-heading h2{font-size:29px}.efh-section-heading p{font-size:14px}.efh-section-heading>a{font-size:12px;margin-top:7px}.efh-grid{grid-template-columns:1fr;gap:20px}.efh-card-featured{display:flex}.efh-card-featured .efh-card-cover{aspect-ratio:16/9;min-height:0}.efh-card-featured .efh-card-copy{padding:24px}.efh-card h3,.efh-card-featured h3{font-size:24px}.efh-card-copy{padding:22px}.efh-card-featured .efh-card-copy p{font-size:14px}.efh-resource-banner{padding:28px 25px;border-radius:13px}.efh-resource-banner h2{font-size:23px}.efh-resource-banner .efh-button{max-width:none;justify-self:stretch}.efh-resources{padding:30px 0}.efh-footer{padding-top:34px}.efh-footer-grid{grid-template-columns:1fr;gap:28px}.efh-footer p{max-width:350px}.efh-footer nav a{min-height:44px;font-size:13px}.efh-footer h2{font-size:14px;margin-bottom:9px}.efh-footer-bottom{display:block;padding:18px 0 24px}.efh-footer-bottom button{margin-top:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.efh-home *, .efh-home *::before,.efh-home *::after{transition:none!important}.efh-card:hover,.efh-search button:hover,.efh-button:hover,.efh-card:hover .efh-card-cover img,.efh-card-action:hover .efh-arrow{transform:none}}
@media print{.efh-home .efn-header,.efh-search,.efh-chips,.efh-resource-banner{display:none}.efh-grid{display:block}.efh-card{break-inside:avoid;box-shadow:none;margin:15px 0}.efh-footer{background:#fff;color:#0b2d3e}.efh-footer a,.efh-footer p{color:#0b2d3e!important}}

/* Contraste tipográfico y portadas documentales. */
.efh-home .efh-hero h1,.efh-home .efh-section-heading h2,.efh-home .efh-start h2,.efh-home .efh-resource-banner h2{font-family:var(--font-editorial);font-weight:600;letter-spacing:-.025em}
.efh-home .efh-hero h1{font-size:clamp(42px,5vw,70px);line-height:1.05}
.efh-home .efh-section-heading h2{font-size:clamp(32px,3vw,43px)}
.efh-cover-credit{position:absolute;bottom:10px;right:10px;max-width:calc(100% - 20px);z-index:2;font-size:11px;color:#fff;line-height:1.5}
.efh-cover-credit>summary{cursor:pointer;background:rgba(11,45,62,.88);border-radius:6px;padding:6px 10px;min-height:30px}
.efh-cover-credit[open]{width:min(450px,calc(100% - 20px));background:#fff;border:1px solid #d6e3e7;border-radius:8px;color:#0b2d3e;box-shadow:0 8px 20px rgba(11,45,62,.15)}
.efh-cover-credit[open]>summary{background:#edf5f5;color:#0b2d3e}.efh-credit-copy{max-height:220px;overflow:auto;padding:12px;font:12px/1.55 var(--font-technical)}
.efh-credit-copy p{margin:8px 0!important}.efh-credit-copy a{color:#086b79;text-decoration:underline}.efh-card-cover{background:#F4F8FA}
.efh-card-cover img{object-fit:cover;aspect-ratio:16/9}.efh-diagram-cover img{object-fit:contain;background:#F4F8FA}
.efh-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px -4px rgba(11,45,62,.08)}
@media(max-width:600px){.efh-home .efh-hero h1{font-size:42px}.efh-home .efh-section-heading h2{font-size:33px}}
@media(prefers-reduced-motion:reduce){.efh-card:hover{transform:none}}
