:root {
    font-family: Inter, system-ui, sans-serif;
    color: #182033;
    background: #f4f6fa;
}

* {
    box-sizing: border-box;
}

/* Respeta siempre los elementos ocultos */

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: #f4f6fa;
}

button,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
p {
    margin: 0;
}

/* CABECERA */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 62px;
    padding: 0 24px;

    background: #ffffff;
    border-bottom: 1px solid #e3e7ef;
}

.site-header strong {
    font-size: 17px;
    font-weight: 700;
}

.site-header p {
    margin-top: 2px;
    color: #687086;
    font-size: 14px;
    line-height: 1.2;
}

/* BOTONES GENERALES */

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 0 18px;

    border: none;
    border-radius: 11px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.primary-button {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}

.primary-button:hover {
    background: #1d4ed8;
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.secondary-button {
    color: #24304a;
    background: #edf1f7;
}

.secondary-button:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* BOTÓN DETENER: INDICADOR DE GRABACIÓN */

#stopButton {
    color: #ffffff;
    background: #dc2626;

    box-shadow:
        0 6px 16px rgba(220, 38, 38, 0.28),
        0 0 0 0 rgba(220, 38, 38, 0.4);

    animation: recordingPulse 1.5s infinite;
}

#stopButton:hover {
    background: #b91c1c;

    box-shadow:
        0 8px 20px rgba(220, 38, 38, 0.34),
        0 0 0 6px rgba(220, 38, 38, 0.1);

    transform: translateY(-1px);
}

#stopButton:disabled {
    cursor: wait;
    opacity: 0.7;
    animation: none;
}

@keyframes recordingPulse {
    0% {
        box-shadow:
            0 6px 16px rgba(220, 38, 38, 0.28),
            0 0 0 0 rgba(220, 38, 38, 0.38);
    }

    70% {
        box-shadow:
            0 6px 16px rgba(220, 38, 38, 0.28),
            0 0 0 8px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow:
            0 6px 16px rgba(220, 38, 38, 0.28),
            0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* BOTÓN DESCARGAR */

#downloadButton {
    padding: 0 20px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #16a34a,
        #15803d
    );

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;

    box-shadow:
        0 6px 16px rgba(22, 163, 74, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#downloadButton:hover {
    background: linear-gradient(
        135deg,
        #15803d,
        #166534
    );

    box-shadow:
        0 8px 20px rgba(22, 163, 74, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    transform: translateY(-1px);
}

#downloadButton:active {
    transform: translateY(0);

    box-shadow:
        0 3px 10px rgba(22, 163, 74, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* =========================================================
   LANDING PAGE — SHORT STUDIO iaMODE
   Estilos aislados para no afectar el estudio
========================================================= */

.landing-page {
    min-height: 100vh;
    color: #172033;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(37, 99, 235, 0.09),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 18%,
            rgba(14, 165, 233, 0.08),
            transparent 28%
        ),
        #f8fafc;
}

.landing-page a {
    color: inherit;
}

/* CABECERA DE LA LANDING */

.landing-header {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 76px;
    padding: 14px 28px;

    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);

    backdrop-filter: blur(14px);
}

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

    text-decoration: none;
}

.landing-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #2563eb,
        #0ea5e9
    );

    border-radius: 13px;

    font-size: 20px;
    font-weight: 800;

    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.landing-brand-text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.landing-brand-text small {
    margin-top: 4px;

    color: #64748b;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* HERO */

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    align-items: center;
    gap: 64px;

    width: min(1180px, calc(100% - 40px));
    min-height: auto;
    margin: 0 auto;
    padding: 20px 0;
}

.landing-hero-content {
    max-width: 650px;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 8px 14px;

    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.landing-hero h1 {
    max-width: 620px;

    color: #0f172a;

    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.landing-description {
    max-width: 620px;
    margin-top:18px;

    color: #475569;

    font-size: 20px;
    line-height: 1.65;
}

.landing-secondary-text {
    max-width: 600px;
    margin-top: 14px;

    color: #64748b;

    font-size: 16px;
    line-height: 1.6;
}

.google-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-width: 280px;
    min-height: 58px;
    margin-top: 22px;
    padding: 0 24px;

    color: #172033;
    background: #ffffff;

    border: 1px solid #dbe2ea;
    border-radius: 15px;

    font-size: 16px;
    font-weight: 750;
    text-decoration: none;

    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.google-login-button:hover {
    border-color: #93c5fd;

    box-shadow:
        0 18px 38px rgba(37, 99, 235, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transform: translateY(-2px);
}

.google-login-button:active {
    transform: translateY(0);
}

.google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
}

.landing-login-note {
    margin-top: 10px;

    color: #94a3b8;

    font-size: 13px;
}

/* REPRESENTACIÓN VISUAL DEL ESTUDIO */

.landing-visual {
    position: relative;
}

.landing-visual::before {
    content: "";

    position: absolute;
    inset: 10% -8% -8% 12%;

    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.22),
        rgba(14, 165, 233, 0.08)
    );

    border-radius: 40px;
    filter: blur(30px);
}

.landing-visual-window {
    position: relative;

    overflow: hidden;

    padding: 14px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 24px;

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.16),
        0 10px 25px rgba(37, 99, 235, 0.08);
}

.landing-window-header {
    display: flex;
    gap: 7px;

    padding: 4px 4px 14px;
}

.landing-window-header span {
    width: 10px;
    height: 10px;

    background: #cbd5e1;
    border-radius: 50%;
}

.landing-window-header span:first-child {
    background: #fb7185;
}

.landing-window-header span:nth-child(2) {
    background: #fbbf24;
}

.landing-window-header span:last-child {
    background: #4ade80;
}

.landing-window-content {
    padding: 16px;

    background: #0f172a;
    border-radius: 17px;
}

.landing-video-source {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.48),
            rgba(14, 165, 233, 0.16)
        ),
        #1e293b;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
}

.landing-video-source::before,
.landing-video-source::after {
    content: "";

    position: absolute;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.landing-video-source::before {
    top: 12%;
    left: 8%;

    width: 42%;
    height: 20%;
}

.landing-video-source::after {
    right: 8%;
    bottom: 10%;

    width: 34%;
    height: 16%;
}

.landing-camera-frame {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 29%;
    height: 78%;

    color: rgba(255, 255, 255, 0.9);

    border: 3px solid #ffffff;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.25),
        0 12px 30px rgba(15, 23, 42, 0.35);
}

.landing-recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 14px;
    padding: 10px 14px;

    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);

    border-radius: 10px;

    font-size: 13px;
    font-weight: 650;
}

.landing-recording-dot {
    width: 9px;
    height: 9px;

    background: #ef4444;
    border-radius: 50%;

    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.13);
}

/* VENTAJAS */

.landing-benefits {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0;
}

.landing-section-heading {
    max-width: 680px;
    margin: 0 auto 44px;

    text-align: center;
}

.landing-section-heading span {
    color: #2563eb;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-section-heading h2 {
    margin-top: 12px;

    color: #0f172a;

    font-size: clamp(30px, 4vw, 46px);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.landing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.landing-benefit-card {
    padding: 26px 22px;

    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.landing-benefit-card:hover {
    border-color: #bfdbfe;

    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.1);

    transform: translateY(-4px);
}

.landing-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    color: #1d4ed8;
    background: #dbeafe;

    border-radius: 12px;

    font-size: 19px;
    font-weight: 800;
}

.landing-benefit-card h3 {
    margin: 19px 0 10px;

    color: #172033;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.landing-benefit-card p {
    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}

/* CONTACTO */

.landing-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    width: min(1080px, calc(100% - 40px));
    margin: 20px auto 90px;
    padding: 42px 46px;

    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 255, 255, 0.14),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb,
            #0284c7
        );

    border-radius: 24px;

    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.23);
}

.landing-contact-content {
    max-width: 580px;
}

.landing-contact-content > span {
    color: #bfdbfe;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-contact h2 {
    margin-top: 8px;

    font-size: 34px;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.landing-contact p {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.83);

    font-size: 15px;
    line-height: 1.65;
}

.landing-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;

    min-width: 220px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 47px;
    padding: 0 20px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 750;
    text-decoration: none;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

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

.contact-button-whatsapp {
    color: #166534 !important;
    background: #dcfce7;

    box-shadow: 0 8px 18px rgba(22, 101, 52, 0.14);
}

.contact-button-whatsapp:hover {
    background: #bbf7d0;
}

.contact-button-email {
    color: #1e3a8a !important;
    background: #ffffff;

    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.contact-button-email:hover {
    background: #eff6ff;
}

/* FOOTER */

.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 86px;
    padding: 20px max(28px, calc((100% - 1180px) / 2));

    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.landing-footer p {
    color: #475569;

    font-size: 14px;
    font-weight: 700;
}

.landing-footer nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.landing-footer a {
    color: #64748b;

    font-size: 14px;
    text-decoration: none;
}

.landing-footer a:hover {
    color: #2563eb;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 48px;

        padding-top: 68px;
    }

    .landing-hero-content {
        max-width: 760px;
        margin: 0 auto;

        text-align: center;
    }

    .landing-description,
    .landing-secondary-text {
        margin-right: auto;
        margin-left: auto;
    }

    .landing-visual {
        width: min(620px, 100%);
        margin: 0 auto;
    }

    .landing-benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .landing-header {
        min-height: 68px;
    }

    .landing-brand-icon {
        width: 38px;
        height: 38px;
    }

    .landing-hero {
        width: min(100% - 28px, 1180px);
        min-height: auto;
        padding: 56px 0 68px;
    }

    .landing-hero h1 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .landing-description {
        font-size: 18px;
    }

    .google-login-button {
        width: 100%;
        min-width: 0;
    }

    .landing-benefits {
        width: min(100% - 28px, 1180px);
        padding: 68px 0;
    }

    .landing-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-contact {
        flex-direction: column;
        align-items: stretch;

        width: min(100% - 28px, 1080px);
        margin-bottom: 68px;
        padding: 34px 28px;
    }

    .landing-contact-actions {
        min-width: 0;
    }

    .landing-footer {
        flex-direction: column;
        justify-content: center;

        padding: 25px 20px;

        text-align: center;
    }
}

@media (max-width: 520px) {
    .landing-eyebrow {
        font-size: 12px;
    }

    .landing-hero h1 {
        letter-spacing: -0.045em;
    }

    .landing-visual-window {
        padding: 10px;
        border-radius: 18px;
    }

    .landing-window-content {
        padding: 11px;
    }

    .landing-benefits-grid {
        grid-template-columns: 1fr;
    }

    .landing-benefit-card {
        padding: 24px;
    }

    .landing-contact h2 {
        font-size: 29px;
    }

    .landing-footer nav {
        flex-direction: column;
        gap: 12px;
    }
}