:root {
    --blue: #0f7ca6;
    --sky: #80d0f0;
    --gold: #e0a000;
    --magenta: #e00080;
    --violet: #8000a0;
    --red: #e00000;
    --pink-pastel: #f0b0f0;
    --lavender-pastel: #e0d0f0;
    --sky-pastel: #c0e0f0;
    --chrome-sky: #e0f3fc;
    --nav-blue: #075576;
    --ink: #173746;
    --muted: #345463;
    --paper: #fbfdff;
    --line: #cbdfe8;
    --display: Fraunces, Georgia, serif;
    --body: Inter, Arial, sans-serif;
    --spring: cubic-bezier(.2,.75,.25,1.12);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
h1, h2, h3 { color: var(--blue); font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 8vw, 5.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.95rem, 5vw, 3.35rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.02em; }
p { max-width: 65ch; margin: .8rem 0 0; }
figure { margin: 0; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.skip { position: absolute; inset: .5rem auto auto .5rem; z-index: 9; padding: .55rem 1rem; background: white; translate: 0 -200%; }
.skip:focus { translate: 0 0; }

.site-header, .site-footer { background: var(--chrome-sky); color: var(--nav-blue); }
.site-footer { background: linear-gradient(var(--paper), var(--chrome-sky) 2.25rem); }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 1.5rem; padding-block: .55rem; }
.brand { display: block; border-radius: .45rem; width: clamp(6.15rem, 10vw, 7.4rem); flex-shrink: 0; background: radial-gradient(ellipse at 50% 48%, #fff 12%, #fff9 44%, transparent 74%); }
.brand img { width: 100%; }
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .15rem .85rem; }
.header-inner nav a, .footer-inner nav a { display: inline-flex; align-items: center; min-height: 2.5rem; font-weight: 650; font-size: .87rem; text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a[aria-current], .footer-inner nav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.footer-inner { padding-block: 1.35rem; }
.creator-credit { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; color: var(--nav-blue); font-size: .78rem; text-decoration: none; }
.creator-credit:is(:hover, :focus-visible) strong { text-decoration: underline; }
.creator-mark { position: relative; display: block; flex: 0 0 1.9rem; }
.creator-mark img { width: 1.9rem; }
.creator-mark::after { content: ''; position: absolute; inset: -35%; background: radial-gradient(ellipse, #2bbcff75, transparent 62%); opacity: 0; pointer-events: none; }
.creator-mark::before { content: ''; position: absolute; z-index: 1; inset: -15%; background: linear-gradient(150deg, #09bfff, #f1fdff 48%, #1985ea); clip-path: polygon(83% 0, 32% 53%, 56% 52%, 17% 100%, 72% 46%, 47% 46%); opacity: 0; pointer-events: none; }
.creator-credit:is(:hover, :focus-visible) .creator-mark::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .creator-credit:is(:hover, :focus-visible) .creator-mark::before { animation: creator-bolt 270ms ease-out; }
}
@keyframes creator-bolt {
    0% { opacity: .95; transform: scale(.82); }
    100% { opacity: 0; transform: scale(1.12); }
}
@media (max-width: 33.99rem) {
    .header-inner nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; column-gap: .5rem; }
}

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky-pastel); }
.hero-light { position: absolute; z-index: -1; inset: -1.4rem; background: center / cover no-repeat url('/assets/fondo-vertical.png'); }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: clamp(3rem, 8vw, 6rem); background: linear-gradient(var(--chrome-sky), transparent); pointer-events: none; }
.hero-inner { display: grid; align-items: center; gap: 1.4rem; padding-top: clamp(2.8rem, 6vw, 5rem); }
.hero-copy { padding-bottom: .7rem; }
.hero-domain { position: relative; isolation: isolate; width: min(100%, 25rem); margin-top: .9rem; }
.hero-domain span { position: relative; display: block; overflow: hidden; aspect-ratio: 1246 / 212; }
/* Frame the original lettering and leave room for the leaves above it. */
.hero-domain img { position: absolute; width: 120.39%; max-width: none; left: -10.27%; top: -361.32%; clip-path: polygon(0 74%, 48% 74%, 48% 73%, 56% 73%, 56% 74%, 100% 74%, 100% 100%, 0 100%); }
.hero-domain::before { content: ''; position: absolute; z-index: -1; inset: -.8rem -1.25rem; background: radial-gradient(ellipse, #fff 8%, #fff8 44%, transparent 73%); opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
    .hero-domain::before { animation: domain-halo 1250ms ease-out; }
    .hero-domain span { animation: domain-reveal 820ms cubic-bezier(.25,.75,.3,1) 140ms both; }
}
@keyframes domain-halo {
    0% { opacity: .15; transform: scale(.9); }
    50% { opacity: .95; transform: scale(1.06); }
    100% { opacity: .45; transform: scale(1); }
}
@keyframes domain-reveal {
    from { clip-path: inset(-.2em 100% -.2em -.2em); filter: blur(3px); }
    to { clip-path: inset(-.2em); filter: blur(0); }
}
.hero h1 { font-size: clamp(3.8rem, 11vw, 6rem); line-height: .96; }
.hero-copy p { max-width: 35ch; margin-top: 1.15rem; font-size: clamp(1rem, 2.3vw, 1.22rem); font-weight: 550; }
.hero-portrait { position: relative; max-width: 33rem; justify-self: center; align-self: end; }
.hero-portrait img { width: 100%; aspect-ratio: 1308 / 1203; }
.hero-portrait figcaption { position: absolute; bottom: 1rem; right: .35rem; background: #fff; padding: .65rem 1rem; border-radius: .75rem; font-weight: 700; line-height: 1.4; }
.hero-portrait figcaption span, .byline span { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; border: 0; min-height: 3rem; padding: .65rem 1.15rem; border-radius: .7rem; font-weight: 700; text-decoration: none; transition: transform 220ms var(--spring), background-color 180ms ease-out; }
.button-gold { margin-top: 1.35rem; background: var(--gold); color: #271d08; }
.button-gold:hover { background: #edb424; }
.button-blue { background: #096689; color: #fff; }
.button-blue:hover { background: #075575; }
.button:active:not(:disabled) { transform: scale(.96); transition-duration: 90ms; }
.button:disabled { background: #e5eef2; color: var(--muted); }
.text-link { display: inline-flex; align-items: baseline; gap: .4rem; color: #096689; font-weight: 700; }
.text-link:hover { text-decoration-thickness: 2px; }

.featured, .about { display: grid; align-items: center; gap: clamp(1.35rem, 5vw, 4rem); }
.featured .text-link { margin-top: .9rem; }
.video-preview, .player { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 1rem; }
.video-preview { display: grid; place-content: center; justify-items: center; text-align: center; gap: .85rem; padding: 1rem; background: radial-gradient(ellipse at 60% 10%, #306a85, #153b52 72%); color: #fff; font-weight: 650; text-decoration: none; }
.video-preview:hover { text-decoration: underline; }
.youtube-logo { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; }
.youtube-social { gap: .35rem; }
.youtube-social .youtube-logo { width: 1.5rem; height: 1.5rem; }
.video-preview .youtube-logo { width: 4.25rem; height: 4.25rem; transition: transform 240ms var(--spring); }
.video-preview:hover .youtube-logo { transform: scale(1.08); }
.video-grid { display: grid; gap: 2rem; }
.video-grid article { min-width: 0; }
.video-grid h2 { margin-bottom: .8rem; font-size: 1.65rem; }
.video-grid .lead-video { grid-column: 1 / -1; }

.pillars { background: #edf7fc; }
.pillar-grid { display: grid; gap: .9rem; margin-top: 1.6rem; }
.pillar { display: flex; flex-direction: column; align-items: flex-start; padding: 1.35rem; border-radius: .9rem; border: 1px solid var(--line); background: white; }
.pillar h2, .pillar h3 { color: #096689; font-size: 1.56rem; }
.pillar p, .availability { color: var(--muted); }
.product-card .product-pillar { font-size: .88rem; font-weight: 650; }
.product-card > p:last-of-type { margin-bottom: 1.25rem; }
.product-card .button { margin-top: auto; }
.resource-card > img { width: 2.75rem; height: 2.75rem; object-fit: contain; margin-bottom: 1rem; }
.resource-card > p { margin-bottom: 1.25rem; }
.resource-card .button { margin-top: auto; }
.header-inner nav a { white-space: nowrap; }
.product-gallery { width: 100%; margin-bottom: 1rem; }
.product-gallery-photos { display: grid; place-items: center; height: clamp(11rem, 26vw, 17rem); padding: .65rem; border-radius: .65rem; background: #f1f8fc; }
.product-gallery-photos img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-gallery-controls { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-top: .3rem; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.product-gallery [hidden] { display: none; }
.product-gallery-controls button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--nav-blue); cursor: pointer; font-size: 1.65rem; line-height: 1; }
.product-gallery-controls button:hover { background: #edf7fc; }
.pillar-links { display: flex; gap: 1.2rem; margin-top: auto; padding-top: .8rem; }
.pillar button { margin-top: 1rem; }
.pillar small { margin-top: .4rem; }
.resource { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; margin-block: clamp(2.6rem, 6vw, 5rem) 0; border-radius: 1rem; padding: clamp(1.4rem, 4vw, 3.2rem); background: linear-gradient(#fff8, #fff8), center / cover url('/assets/fondo-guia.png') var(--lavender-pastel); }
.resource .tag { margin: 0 0 .5rem; font-size: .83rem; font-weight: 700; }
.resource h2 { max-width: 24ch; color: #096689; }
.resource .availability { font-size: .9rem; font-weight: 650; }
#contenido > .resource:last-child { margin-bottom: 3rem; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .7rem 2rem; }
.empty { padding-block: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.editorial-list article { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.editorial-list { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.6rem 2rem; }
.filters a { background: #e8f4f9; padding: .4rem .85rem; border-radius: .6rem; font-size: .86rem; font-weight: 650; text-decoration: none; }
.filters a[aria-current], .filters a:hover { background: #096689; color: white; }
.byline { display: flex; align-items: center; gap: .85rem; margin-block: 1.7rem; }
.byline img { width: 3.75rem; border-radius: 50%; }
.byline p { margin: 0; font-weight: 700; }
.story { max-width: 49rem; }
.dek { color: var(--muted); font-size: 1.2rem; }
.contact { display: grid; align-items: start; gap: clamp(1.5rem, 5vw, 4rem); }
.contact > div { min-width: 0; }
.contact .text-link { display: inline; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: .55rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .95rem; background: white; }
.contact-form > label { font-weight: 700; }
.contact-form input:not([type="hidden"], [type="checkbox"]), .contact-form textarea { width: 100%; padding: .65rem .8rem; margin-bottom: .45rem; border: 1px solid #759eaf; border-radius: .5rem; background: var(--paper); color: var(--ink); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #a5263d; }
.contact-form .contact-consent { display: flex; align-items: baseline; gap: .55rem; font-size: .88rem; font-weight: 500; }
.contact-consent input { flex: none; accent-color: var(--nav-blue); }
.contact-hint, .contact-error, .contact-notice { margin: 0; font-size: .88rem; }
.contact-hint { color: var(--muted); }
.contact-error { color: #a5263d; }
.contact-notice { background: #e8f5fa; color: var(--nav-blue); border-radius: .5rem; padding: .6rem .8rem; }
.contact-form .button { justify-self: start; margin-top: .5rem; }

@media (min-width: 34rem) {
    .pillar-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 49rem) {
    .contact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .wrap { width: min(100% - 5rem, 72rem); }
    .header-inner, .footer-inner { flex-wrap: nowrap; }
    .header-inner nav, .footer-inner nav { gap: clamp(.6rem, 2vw, 1.75rem); }
    .hero-light { background-image: url('/assets/fondo-apaisado.png'); }
    .hero-inner, .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hero-inner { padding-top: clamp(2rem, 4vw, 3.75rem); }
    .hero-copy { padding-bottom: 2rem; }
    .featured { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
@media (min-width: 64rem) {
    .pillars .pillar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .button:active:not(:disabled), .video-preview:hover .youtube-logo { transform: none; }
}
