/* ==========================================================================
   VIP Impacto Visual — Studio Magenta (global)
   ========================================================================== */

:root {
    --color-bg: #ebe6ea;
    --color-surface: #f7f4f6;
    --color-ink: #1a1a1a;
    --color-muted: #555055;
    --color-line: #d9d2d6;
    --color-magenta: #ed008c;
    --color-magenta-dark: #c40074;
    --color-ink-inverse: #ffffff;
    --color-dark: #141414;
    --color-wa: #2db742;
    --font-display: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --header-height: 76px;
    --container: min(1140px, calc(100% - 2.5rem));
    --radius: 4px;
    --transition: 0.28s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-bg);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-ink);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-magenta);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-ink);
    margin: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-magenta);
    color: var(--color-ink-inverse);
    padding: 0.75rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.9rem 1.75rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
    background: var(--color-magenta);
    color: var(--color-ink-inverse);
}

.btn-primary:hover {
    background: var(--color-magenta-dark);
    color: var(--color-ink-inverse);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-ink-inverse);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
    background: var(--color-ink-inverse);
    color: var(--color-ink);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-magenta);
    margin: 0 0 0.75rem;
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    margin: 0 0 1rem;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 36rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Header — negro (contraste con logo)
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--color-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
    background: #0a0a0a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.header-inner {
    position: relative;
    width: var(--container);
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.site-logo img {
    width: min(142px, 36vw);
    height: auto;
}

.nav-desktop ul {
    display: flex;
    justify-content: center;
    gap: 0.15rem;
}

.nav-desktop a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition);
}

.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 1.5px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
    color: #fff;
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-social {
    display: flex;
    gap: 0.35rem;
}

.header-social a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: color var(--transition), background var(--transition);
}

.header-social a:hover {
    color: var(--color-magenta);
    background: #fff;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-magenta);
    background: var(--color-magenta);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.header-cta span {
    transition: transform var(--transition);
}

.header-cta:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-magenta);
    transform: translateY(-1px);
}

.header-cta:hover span {
    transform: translateX(2px);
}

.header-cta.mobile {
    display: inline-flex;
    margin: 0 0 1.75rem;
    width: fit-content;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 19, 20, 0.5);
    z-index: 1100;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: var(--color-dark);
    z-index: 1200;
    padding: 5rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.is-open {
    transform: translateX(0);
}

.nav-mobile ul:not(.header-social) {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.nav-mobile a {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.7rem 0;
}

.nav-mobile a.is-active,
.nav-mobile a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-social.mobile a {
    color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   Footer — negro (contraste con logo)
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--color-dark);
    color: #fff;
    padding: 2rem 0 1.35rem;
    border-top: 0;
}

.footer-inner {
    width: var(--container);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr auto;
    gap: 1.5rem 2rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-brand img {
    width: 128px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

.footer-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal {
    margin: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   WhatsApp widget + modal
   -------------------------------------------------------------------------- */

.wa-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1300;
}

.wa-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    cursor: pointer;
    padding: 0.85rem 1.25rem 0.85rem 1.05rem;
    border-radius: 999px;
    background: var(--color-magenta);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(237, 0, 140, 0.38);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-toggle i {
    font-size: 1.25rem;
    line-height: 1;
}

.wa-toggle:hover {
    background: var(--color-magenta-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(237, 0, 140, 0.45);
}

.wa-toggle:active {
    transform: translateY(0);
}

.wa-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.wa-modal[hidden] {
    display: none;
}

.wa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 8, 28, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wa-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(237, 0, 140, 0.14), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(237, 0, 140, 0.08), transparent 40%),
        var(--color-surface);
    border-radius: 24px;
    border: 1px solid rgba(237, 0, 140, 0.18);
    box-shadow:
        0 28px 60px rgba(80, 0, 45, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    padding: 0;
    animation: waModalIn 0.28s ease;
}

@keyframes waModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wa-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.25s ease, color 0.25s ease;
}

.wa-modal-close:hover {
    background: #fff;
    color: var(--color-magenta);
}

.wa-modal-head {
    margin: 0;
    padding: 1.25rem 1.4rem 1rem;
    padding-right: 3rem;
    background: linear-gradient(135deg, #ed008c 0%, #c40074 55%, #9b005c 100%);
    color: #fff;
    border-radius: 24px 24px 0 0;
}

.wa-modal-badge {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.wa-modal-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.wa-modal-title {
    margin: 0 0 0.3rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.6rem);
    font-weight: 700;
    color: #fff;
}

.wa-modal-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.45;
}

.wa-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.1rem 1.4rem 1.25rem;
}

.wa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.wa-modal-form .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wa-modal-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-ink);
}

.wa-modal-form input,
.wa-modal-form textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid rgba(237, 0, 140, 0.14);
    border-radius: 10px;
    color: var(--color-ink);
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.wa-modal-form input:focus,
.wa-modal-form textarea:focus {
    border-color: var(--color-magenta);
    box-shadow: 0 0 0 3px rgba(237, 0, 140, 0.14);
}

.wa-modal-form textarea {
    min-height: 72px;
    max-height: 72px;
    resize: none;
}

.wa-modal-form .form-hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.wa-modal-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-magenta);
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(237, 0, 140, 0.28);
    transition: background 0.25s ease, transform 0.25s ease;
}

.wa-modal-submit:hover {
    background: var(--color-magenta-dark);
    color: #fff;
    transform: translateY(-1px);
}

body.wa-modal-open {
    overflow: hidden;
}

@media (max-width: 568px) {
    .wa-form-row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .nav-desktop,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .site-footer {
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        justify-items: center;
        text-align: center;
    }

    .footer-brand-block {
        align-items: center;
        width: 100%;
    }

    .footer-brand {
        display: flex;
        justify-content: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-links {
        align-items: center;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-copy,
    .footer-legal {
        width: 100%;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 568px) {
    :root {
        --header-height: 68px;
    }

    .wa-toggle {
        padding: 0.8rem 1.1rem;
        font-size: 0.88rem;
    }
}
