/* =========================================================
   KinderHouse · Sitio institucional
   Paleta inspirada en la identidad pública de la marca.
   ========================================================= */

:root {
    --brand: #12b8a6;
    --brand-dark: #087f77;
    --brand-deep: #075f5a;
    --brand-soft: #dff7f2;

    --cream: #fffaf3;
    --warm-white: #fffdf9;
    --peach: #f9d7c5;
    --peach-soft: #fff0e7;
    --sun: #f5dd83;
    --sun-soft: #fff7cf;
    --sky: #cfeaec;
    --lilac: #ddd6f6;

    --ink: #26343a;
    --muted: #637177;
    --line: #e6ecea;
    --white: #ffffff;

    --shadow-sm: 0 12px 34px rgba(37, 73, 70, 0.08);
    --shadow-md: 0 22px 70px rgba(37, 73, 70, 0.13);

    --radius-sm: 16px;
    --radius-md: 26px;
    --radius-lg: 38px;
    --container: 1180px;

    --font-display: "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--warm-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 18px;
    color: var(--white);
    background: var(--brand-deep);
    border-radius: 12px;
}

.skip-link:focus {
    top: 20px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.92);
    border-bottom: 1px solid rgba(230, 236, 234, 0.7);
    backdrop-filter: blur(16px);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 34px rgba(28, 62, 59, .08);
    background: rgba(255, 255, 255, .96);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(61, 71, 68, .08);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .02em;
}

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

.main-nav a {
    position: relative;
    color: #3a494e;
    font-size: 14px;
    font-weight: 750;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 999px;
    transition: width .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 0;
    background: var(--brand-soft);
    border-radius: 14px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--brand-deep);
    border-radius: 99px;
    transition: transform .2s ease, opacity .2s ease;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 78px;
    background:
        radial-gradient(circle at 11% 10%, rgba(249, 215, 197, .52), transparent 29%),
        radial-gradient(circle at 92% 18%, rgba(207, 234, 236, .72), transparent 31%),
        linear-gradient(180deg, var(--cream) 0%, #ffffff 100%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    align-items: center;
    gap: 72px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 18px;
    padding: 8px 12px;
    background: rgba(223, 247, 242, .88);
    border-radius: 999px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(18, 184, 166, .11);
}

.hero h1,
.section h2 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.hero h1 {
    max-width: 740px;
    font-size: clamp(45px, 6.2vw, 76px);
    font-weight: 900;
}

.hero h1 span {
    color: var(--brand);
}

.hero-text {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--brand);
    box-shadow: 0 12px 26px rgba(18, 184, 166, .24);
}

.btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 16px 32px rgba(18, 184, 166, .28);
}

.btn-secondary {
    color: var(--brand-deep);
    background: var(--white);
    border-color: #d8e5e1;
}

.btn-secondary:hover {
    box-shadow: var(--shadow-sm);
}

.btn-small {
    min-height: 44px;
    padding: 9px 18px;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 42px;
}

.hero-facts article {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(221, 232, 228, .9);
    border-radius: 18px;
}

.fact-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
}

.hero-facts strong,
.hero-facts small {
    display: block;
}

.hero-facts strong {
    font-size: 13px;
    line-height: 1.25;
}

.hero-facts small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
}

.hero-visual {
    position: relative;
    min-height: 570px;
    display: grid;
    place-items: center;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-md);
}

.photo-main {
    width: min(100%, 505px);
    border-radius: 48% 48% 34% 34% / 36% 36% 28% 28%;
    transform: rotate(1.5deg);
}

.photo-main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.floating-note {
    position: absolute;
    left: -8px;
    bottom: 58px;
    max-width: 245px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(226, 235, 232, .95);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transform: rotate(-2deg);
}

.floating-note span {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #d97972;
    background: var(--peach-soft);
    border-radius: 50%;
    font-size: 20px;
}

.floating-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.floating-note strong {
    color: var(--ink);
    font-size: 13px;
}

.mini-shape {
    position: absolute;
    border-radius: 50%;
}

.mini-shape-one {
    top: 35px;
    right: 12px;
    width: 78px;
    height: 78px;
    background: var(--sun);
    opacity: .82;
}

.mini-shape-two {
    right: 20px;
    bottom: 55px;
    width: 48px;
    height: 48px;
    background: var(--lilac);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(.5px);
    opacity: .6;
}

.hero-blob-one {
    width: 220px;
    height: 220px;
    left: -105px;
    bottom: -90px;
    background: var(--peach);
}

.hero-blob-two {
    width: 170px;
    height: 170px;
    right: -70px;
    top: 35%;
    background: var(--brand-soft);
}

/* TRUST */

.trust-strip {
    padding: 18px 0;
    color: #536165;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.trust-grid span {
    margin-right: 6px;
    color: var(--brand);
}

/* GENERIC SECTIONS */

.section {
    padding: 108px 0;
}

.section-kicker {
    margin-bottom: 14px;
}

.section h2 {
    font-size: clamp(36px, 4.8vw, 59px);
    font-weight: 900;
}

.split-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 80px;
    align-items: start;
}

.lead-copy {
    max-width: 620px;
    padding-top: 28px;
}

.lead-copy p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 17px;
}

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

.value-card {
    position: relative;
    overflow: hidden;
    min-height: 285px;
    padding: 32px;
    border-radius: var(--radius-md);
}

.value-mint {
    background: var(--brand-soft);
}

.value-peach {
    background: var(--peach-soft);
}

.value-sun {
    background: var(--sun-soft);
}

.value-number {
    position: absolute;
    top: 26px;
    right: 28px;
    color: rgba(38, 52, 58, .22);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.value-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin-bottom: 38px;
    color: var(--ink);
    background: rgba(255,255,255,.58);
    border-radius: 18px;
    font-size: 27px;
}

.value-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 27px;
}

.value-card p {
    margin: 0;
    color: #58676b;
    font-size: 15px;
}

/* PROPOSAL */

.proposal-section {
    background: #f4fbf9;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 52px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading p {
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 17px;
}

.proposal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.proposal-grid article {
    min-height: 235px;
    padding: 28px;
    background: var(--white);
    border: 1px solid #e4efec;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(45, 84, 80, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.proposal-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.proposal-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 32px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 17px;
    font-size: 25px;
}

.proposal-grid article:nth-child(2) .proposal-icon {
    color: #a8665a;
    background: var(--peach-soft);
}

.proposal-grid article:nth-child(3) .proposal-icon {
    color: #917c2d;
    background: var(--sun-soft);
}

.proposal-grid article:nth-child(4) .proposal-icon {
    color: #6f68a6;
    background: #efebff;
}

.proposal-grid h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 22px;
}

.proposal-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* AGES */

.ages-section {
    background: var(--warm-white);
}

.ages-wrap {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 82px;
    align-items: center;
}

.ages-copy p {
    max-width: 510px;
    margin: 23px 0 25px;
    color: var(--muted);
    font-size: 17px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-dark);
    font-weight: 850;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

.age-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.age-card {
    min-height: 155px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 27px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 8px 22px rgba(49, 79, 76, .04);
}

.age-card > span {
    width: 43px;
    min-width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 14px;
    font-size: 11px;
    font-weight: 900;
}

.age-card:nth-child(2) > span {
    color: #a8665a;
    background: var(--peach-soft);
}

.age-card:nth-child(3) > span {
    color: #917c2d;
    background: var(--sun-soft);
}

.age-card:nth-child(4) > span {
    color: #6f68a6;
    background: #efebff;
}

.age-card strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 20px;
}

.age-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* GALLERY */

.gallery-section {
    background: #fff;
}

.gallery-heading {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: repeat(2, 250px);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    margin: 0;
    background: #edf5f2;
    border-radius: 26px;
}

.gallery-large {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
}

.gallery-note {
    margin: 18px 0 0;
    color: #889396;
    font-size: 12px;
    text-align: right;
}

/* CONTACT */

.contact-section {
    padding-top: 30px;
}

.contact-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 80px;
    padding: 68px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.10), transparent 25%),
        linear-gradient(135deg, var(--brand-dark), var(--brand-deep));
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 75px rgba(8, 95, 90, .18);
}

.contact-box::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -130px;
    bottom: -150px;
    border: 40px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.section-kicker-light {
    color: #bdf2e9;
}

.contact-copy h2 {
    max-width: 570px;
    color: var(--white);
}

.contact-copy p {
    max-width: 580px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.77);
    font-size: 17px;
}

.btn-white {
    color: var(--brand-deep);
    background: var(--white);
}

.btn-outline-white {
    color: var(--white);
    border-color: rgba(255,255,255,.45);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,.08);
}

.contact-details {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 14px;
}

.contact-details article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.contact-details article:last-child {
    border-bottom: 0;
}

.contact-details article > span {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--brand-deep);
    background: rgba(255,255,255,.92);
    border-radius: 13px;
}

.contact-details small,
.contact-details strong,
.contact-details a {
    display: block;
}

.contact-details small {
    margin-bottom: 2px;
    color: rgba(255,255,255,.64);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.contact-details strong,
.contact-details a {
    font-size: 14px;
    font-weight: 780;
}

/* FOOTER */

.site-footer {
    padding: 78px 0 28px;
    background: #f5f7f5;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr .6fr .8fr;
    gap: 70px;
}

.brand-logo-footer {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
}

.footer-brand p {
    max-width: 370px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-grid > div > strong {
    margin-bottom: 6px;
    font-size: 13px;
}

.footer-grid > div > a {
    color: var(--muted);
    font-size: 13px;
}

.footer-grid > div > a:hover {
    color: var(--brand-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 62px;
    padding-top: 22px;
    color: #899397;
    border-top: 1px solid #dfe6e3;
    font-size: 11px;
}

.footer-bottom p {
    margin: 0;
}

/* REVEAL */

.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal-ready .reveal.visible {
    opacity: 1;
    transform: none;
}

/* RESPONSIVE */

@media (max-width: 1020px) {
    .brand-copy {
        display: none;
    }

    .main-nav {
        gap: 22px;
    }

    .hero-grid,
    .split-grid,
    .ages-wrap,
    .contact-box {
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(45px, 6vw, 63px);
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 500px;
    }

    .proposal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-box {
        padding: 52px;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 76px;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        height: calc(100vh - 76px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 34px 24px;
        background: rgba(255,255,255,.98);
        transform: translateX(100%);
        transition: transform .24s ease;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        width: 100%;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--line);
    }

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

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 66px 0 55px;
    }

    .hero-grid,
    .split-grid,
    .ages-wrap,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 48px;
    }

    .hero-facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-visual {
        min-height: auto;
        padding: 12px 0 30px;
    }

    .photo-main {
        width: min(90%, 500px);
    }

    .floating-note {
        left: 2%;
        bottom: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 82px 0;
    }

    .split-grid {
        gap: 18px;
    }

    .lead-copy {
        padding-top: 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        min-height: 230px;
    }

    .age-cards {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-rows: repeat(2, 200px);
    }

    .contact-box {
        padding: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero {
        padding-top: 48px;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .floating-note {
        max-width: 220px;
        left: 0;
    }

    .mini-shape-one {
        width: 55px;
        height: 55px;
    }

    .section {
        padding: 68px 0;
    }

    .section h2 {
        font-size: 39px;
    }

    .values-grid {
        margin-top: 38px;
    }

    .proposal-grid,
    .age-cards {
        grid-template-columns: 1fr;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 310px 220px 220px;
    }

    .gallery-large {
        grid-row: auto;
    }

    .gallery-note {
        text-align: left;
    }

    .contact-section {
        padding-top: 0;
    }

    .contact-box {
        width: 100%;
        padding: 42px 24px;
        border-radius: 0;
    }

    .contact-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
