/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       TOKENS
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
    --cream: #F4F3ED;
    --cream-border: rgba(20, 45, 110, .16);
    --navy: #142d6e;
    --navy-mid: #1B3A8A;
    --navy-glow: #2A4B8F;
    --teal: #0DA8A8;
    --teal-dark: #0A6E6E;
    --yellow: #FFD700;
    --gold: #FBB03B;
    --error: #c0392b;
    --success-bg: rgba(13, 168, 168, .1);
    --success-fg: #0A6E6E;
    --pill: 100px;
    --ease: cubic-bezier(.22, .68, 0, 1.2);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--cream);
    color: var(--navy);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
    opacity: .55;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       NAV
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(244, 243, 237, .92);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--cream-border);
    padding: .9rem 0;
}

.nav-inner {
    width: min(1160px, 92vw);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.logo-mark {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.logo-text strong {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--navy-mid);
    line-height: 1.1;
}

.logo-text small,
.logo-text span {
    font-size: .7rem;
    color: rgba(20, 45, 110, .5);
    letter-spacing: .02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: .88rem;
    font-weight: 500;
    color: rgba(20, 45, 110, .5);
    text-decoration: none;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a.active {
    background: var(--navy);
    color: var(--cream);
    padding: .3rem .85rem;
    border-radius: var(--pill);
}

.nav-cta a {
    display: inline-block;
    padding: .55rem 1.25rem;
    background: var(--navy);
    color: var(--cream);
    border-radius: var(--pill);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.nav-cta a:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 2px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

@media(max-width:860px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

@media(max-width: 860px) {
    .nav-hamburger span {
        transition: transform .25s, opacity .2s;
    }

    nav.mobile-open .nav-inner {
        flex-wrap: wrap;
    }

    nav.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 10;
        gap: 0;
        padding: .5rem 0 .25rem;
        border-top: 1px solid var(--cream-border);
        animation: navSlideDown .25s ease;
    }

    nav.mobile-open .nav-links li a {
        display: block;
        padding: .7rem 0;
        border-bottom: 1px solid var(--cream-border);
        font-size: .95rem;
    }

    nav.mobile-open .nav-cta {
        display: flex;
        width: 100%;
        order: 11;
        padding: .75rem 0 .5rem;
    }

    nav.mobile-open .nav-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    nav.mobile-open .nav-hamburger span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    nav.mobile-open .nav-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       PAGE
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: 5.5rem 0 7rem;
}

/* Mobile-first: 1 col → 2 col on desktop */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media(min-width:860px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
        min-height: 580px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       LEFT — title + form
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-left {
    animation: fadeUp .55s var(--ease) both;
}

.contact-title {
    font-family: "Fraunces", serif;
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 1.02;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}

.contact-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--navy);
    line-height: 1.65;
    max-width: 400px;
    margin-bottom: 3rem;
    opacity: .8;
}

form {
    animation: fadeUp .55s .1s var(--ease) both;
}

.fields-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 2.4rem;
    margin-bottom: 2.6rem;
}

@media(max-width:480px) {
    .fields-2col {
        grid-template-columns: 1fr;
    }
}

/* Line field */
.field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: .42;
    margin-bottom: .55rem;
    transition: opacity .2s;
}

.field:focus-within label {
    opacity: 1;
}

.field input {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--cream-border);
    outline: none;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    color: var(--navy);
    padding: .35rem 0 .65rem;
    width: 100%;
    transition: border-color .25s;
}

.field input:focus {
    border-bottom-color: var(--navy);
}

.field input.err {
    border-bottom-color: var(--error) !important;
}

.field::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
    pointer-events: none;
}

.field:focus-within::after {
    transform: scaleX(1);
}

/* Textarea */
.field-textarea {
    margin-bottom: 1.8rem;
}

.field-textarea::after {
    display: none;
}

.field textarea {
    background: transparent;
    border: 1.5px solid var(--cream-border);
    border-radius: 5px;
    outline: none;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    color: var(--navy);
    padding: .75rem .9rem;
    width: 100%;
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
    transition: border-color .25s;
}

.field textarea:focus {
    border-color: var(--navy);
}

::placeholder {
    color: rgba(20, 45, 110, .2);
}

/* Checkbox */
.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    cursor: pointer;
    margin-bottom: 2.4rem;
}

.privacy-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 3px;
    border: 1.5px solid var(--cream-border);
    border-radius: 3px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}

.privacy-row input[type="checkbox"]:checked {
    background: var(--navy);
    border-color: var(--navy);
}

.privacy-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid var(--cream);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.privacy-row input[type="checkbox"].err {
    border-color: var(--error);
}

.privacy-label {
    font-size: .83rem;
    color: var(--navy);
    opacity: .7;
    line-height: 1.5;
}

.privacy-label a {
    color: var(--navy);
    opacity: 1;
}

/* Submit */
.btn-send {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    background: var(--navy);
    color: var(--cream);
    border: none;
    border-radius: var(--pill);
    padding: .9rem 2.8rem;
    cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .25s;
}

.btn-send:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(10, 110, 110, .28);
}

.btn-send:active {
    transform: none;
}

.btn-send:disabled {
    opacity: .55;
    pointer-events: none;
}

.btn-send-text {
    font-family: "Caveat", cursive;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}

.btn-send svg {
    width: 17px;
    height: 17px;
    stroke: var(--cream);
    flex-shrink: 0;
    transition: transform .25s;
}

.btn-send:hover svg {
    transform: translate(3px, -2px);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    pointer-events: none;
    transform: scale(0);
    animation: rippleOut .55s linear forwards;
}

@keyframes rippleOut {
    to {
        transform: scale(4.5);
        opacity: 0;
    }
}

/* Success */
.form-success {
    display: none;
    margin-top: 1.5rem;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.4rem;
    border-radius: .75rem;
    background: var(--success-bg);
    color: var(--success-fg);
    font-weight: 600;
    font-size: .92rem;
    animation: fadeUp .4s var(--ease) both;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    width: 22px;
    height: 22px;
    stroke: var(--success-fg);
    flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       RIGHT — BEATING HEART PANEL
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    animation: fadeUp .6s .2s var(--ease) both;
}

@media(max-width:480px) {
    .contact-right {
        min-height: 300px;
    }
}

/* Stage that holds the image */
.heart-stage {
    position: relative;
    width: 100%;
    max-width: 100000px;
    /* Aumentado para hacer el corazón más grande */
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       THE ORIGINAL IMAGE — beating
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.heart-logo {
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply;
    /* black bg becomes transparent on cream */
    width: 150%;
    /* Aumentado al 100% del contenedor */
    height: 150%;
    /* Aumentado al 100% del contenedor */
    object-fit: contain;
    transform-origin: 50% 58%;
    animation: heartbeat 2s ease-in-out infinite;
    /* Enhance rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       KEYFRAMES
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Lub-dub double beat */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    7% {
        transform: scale(1.08);
    }

    13% {
        transform: scale(1.03);
    }

    21% {
        transform: scale(1.11);
    }

    32% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Caption script */
.heart-caption {
    position: absolute;
    bottom: -1rem;
    /* Ajustado ligeramente por el nuevo tamaño */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: "Caveat", cursive;
    font-size: 1.15rem;
    /* Un poco más grande para acompañar al corazón */
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .02em;
    opacity: .5;
    animation: capBreath 2s ease-in-out infinite;
}

@keyframes capBreath {

    0%,
    100% {
        opacity: .42;
    }

    21% {
        opacity: .78;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       INFO ROW + FOOTER
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-info-row {
    margin-top: 5.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--cream-border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2rem;
    animation: fadeUp .7s .35s var(--ease) both;
}

.info-block .info-icon {
    width: 38px;
    height: 38px;
    border-radius: .8rem;
    background: rgba(20, 45, 110, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: .7rem;
}

.info-block strong {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .38;
    margin-bottom: .3rem;
}

.info-block p,
.info-block a {
    font-size: .92rem;
    color: var(--navy);
    text-decoration: none;
    line-height: 1.5;
}

.info-block a:hover {
    text-decoration: underline;
}

/* ============================================================
       FOOTER
    ============================================================ */
/* Contenedor principal para centrar el Footer */
.container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

footer {
    background: #1A2E2E;
    color: rgba(255, 255, 255, .7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .2s;
    cursor: pointer;
}

.social-link:hover {
    background: #0D8C8C;
}

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.footer-links a {
    font-size: .9rem;
    color: rgba(255, 255, 255, .65);
    transition: color .2s;
}

.footer-links a:hover {
    color: #2ECECE;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom span {
    font-size: .82rem;
}

.made-by {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
}

.made-by strong {
    color: var(--yellow);
}

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media(max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
       SCROLL REVEAL ANIMATIONS
    ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

/* ============================================================
       SVG ILLUSTRATIONS (inline)
    ============================================================ */
/* Defined inline in HTML */

/* ============================================================
       RESPONSIVE MISC
    ============================================================ */
@media(max-width:600px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}