/* =========================================================
   VINICIO JARQUÍN
   Sistema general de diseño - Duelo
   TEMA NEGRO · COLORES VIBRANTES
   /duelo/assets/css/duelo.css
========================================================= */

:root {
    --bg: #070709;
    --bg-soft: #0c0c10;
    --surface: #111116;
    --surface-2: #17171d;
    --surface-3: #1d1d25;

    --text: #f6f6f8;
    --text-soft: #b8b8c2;
    --text-dim: #7f7f8c;

    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.18);

    --accent: #ff4f91;
    --accent-2: #2fe4c2;
    --accent-3: #ffd166;

    --focus: rgba(47,228,194,.22);
    --shadow: 0 18px 55px rgba(0,0,0,.42);
}


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,79,145,.08), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(47,228,194,.06), transparent 24%),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
    font-family: Arial, Helvetica, sans-serif;
}

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

a {
    color: inherit;
}

::selection {
    background: rgba(255,79,145,.34);
    color: #fff;
}

.pagina {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   ENCABEZADO Y LOGO
========================================================= */

.encabezado-principal {
    width: 100%;
    text-align: center;
    padding: 24px 20px 8px;
}

.logo-enlace {
    display: inline-block;
    text-decoration: none;
}

.logo-principal {
    display: block;
    width: 300px;
    max-width: 82vw;
    height: auto;
    margin: 0 auto;
}


/* =========================================================
   MENÚ PRINCIPAL
========================================================= */

.menu-principal {
    width: 100%;
    padding: 8px 20px 18px;
}

.menu-interior {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

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

    gap: 8px;
}

.menu-principal a,
.menu-principal button {
    width: auto;
    min-height: auto;

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

    margin: 0;
    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 999px;

    background: transparent;
    color: var(--text-soft);

    text-decoration: none;
    text-transform: uppercase;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .55px;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.menu-principal a:hover,
.menu-principal button:hover {
    background: rgba(255,255,255,.055);
    border-color: var(--line);
    color: var(--accent-2);
    transform: translateY(-1px);
}


/* =========================================================
   LÍNEA DEBAJO DEL MENÚ
========================================================= */

.linea-menu {
    width: calc(100% - 60px);
    max-width: 1180px;
    height: 1px;
    margin: 0 auto;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,79,145,.42),
            rgba(47,228,194,.38),
            transparent
        );
}


/* =========================================================
   CONTENIDO GENERAL
========================================================= */

main {
    flex: 1;

    width: calc(100% - 60px);
    max-width: 1180px;

    margin: 0 auto;

    padding: 42px 0 72px;

    text-align: center;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    color: var(--text);
}

h1 {
    margin: 0 0 25px;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -.02em;
}

h2 {
    margin: 0 0 16px;
    font-size: 29px;
    line-height: 1.2;
}

h3 {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.25;
}

p {
    line-height: 1.7;
}

.introduccion {
    width: 100%;
    max-width: 900px;

    margin: 0 auto 42px;

    font-size: 18px;
    line-height: 1.8;

    color: var(--text-soft);
}

.introduccion strong {
    color: var(--text);
}

.pregunta {
    margin-bottom: 22px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}


/* =========================================================
   BOTONES
========================================================= */

.opciones {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.boton,
.boton-principal,
.boton-secundario {
    width: 100%;
    min-height: 56px;

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

    padding: 16px 22px;

    border-radius: 14px;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.boton-principal {
    border: 1px solid rgba(255,79,145,.72);
    background:
        linear-gradient(
            135deg,
            #ff4f91,
            #ff6f61
        );
    color: #fff;
    box-shadow: 0 12px 34px rgba(255,79,145,.16);
}

.boton-principal:hover {
    background:
        linear-gradient(
            135deg,
            #ff6aa2,
            #ff806f
        );
    border-color: rgba(255,255,255,.28);

    transform: translateY(-2px);

    box-shadow: 0 16px 38px rgba(255,79,145,.24);
}

.boton-secundario {
    border: 1px solid rgba(47,228,194,.48);
    background: rgba(47,228,194,.055);
    color: var(--accent-2);
}

.boton-secundario:hover {
    background: rgba(47,228,194,.11);
    border-color: var(--accent-2);
    color: #fff;
    transform: translateY(-1px);
}

.boton-pequeno {
    width: auto;
    min-height: auto;

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

    padding: 9px 15px;

    font-size: 13px;
}


/* =========================================================
   CAJAS
========================================================= */

.caja {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;

    padding: 30px 28px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        ),
        var(--surface);

    border: 1px solid var(--line);
    border-radius: 18px;

    box-shadow: var(--shadow);
}

.caja:hover {
    border-color: rgba(255,79,145,.22);
}

.caja h2 {
    margin-top: 0;
}

.caja p {
    color: var(--text-soft);
}


/* =========================================================
   FORMULARIOS
========================================================= */

.formulario {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;
}

.campo-grupo {
    margin-bottom: 18px;
    text-align: left;
}

.campo-grupo label {
    display: block;
    margin-bottom: 7px;

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

    color: var(--text-soft);
}

.campo {
    width: 100%;
    min-height: 56px;

    margin-bottom: 13px;
    padding: 15px;

    border: 1px solid var(--line-strong);
    border-radius: 11px;

    background: var(--surface);
    color: var(--text);

    font-size: 18px;

    outline: none;
}

.campo::placeholder {
    color: var(--text-dim);
}

.campo:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px var(--focus);
}

.codigo-campo {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

textarea.campo {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   AUDIO
========================================================= */

audio {
    width: 100%;
    color-scheme: dark;
    accent-color: var(--accent);
    filter: saturate(1.08);
}

audio::-webkit-media-controls-panel {
    background: #19191f;
}


/* =========================================================
   ELEMENTOS AUXILIARES
========================================================= */

.oculto {
    display: none !important;
}

.visible {
    display: block;
    animation: aparecer .25s ease;
}

@keyframes aparecer {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

}

.texto-suave {
    color: var(--text-dim);
}

.texto-pequeno {
    font-size: 13px;
}

.enlace-regresar {
    display: inline-block;
    margin-top: 28px;

    color: var(--accent-2);
    text-decoration: none;

    font-size: 14px;
}

.enlace-regresar:hover {
    color: #fff;
    text-decoration: underline;
}


/* =========================================================
   PORTADA DE DUELO
========================================================= */

.lista-experiencias {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 18px;
}

.tarjeta-experiencia {
    display: block;

    width: 100%;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(255,79,145,.055),
            rgba(47,228,194,.025)
        ),
        var(--surface);

    border: 1px solid var(--line);
    border-radius: 18px;

    text-align: left;
    text-decoration: none;

    box-shadow: var(--shadow);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.tarjeta-experiencia:hover {
    transform: translateY(-3px);
    border-color: rgba(47,228,194,.42);
    background:
        linear-gradient(
            135deg,
            rgba(255,79,145,.08),
            rgba(47,228,194,.05)
        ),
        var(--surface-2);
    box-shadow: 0 20px 48px rgba(0,0,0,.46);
}

.tarjeta-experiencia h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.tarjeta-experiencia p {
    margin: 0;

    color: var(--text-soft);

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


/* =========================================================
   SUBMENÚ DEL PROGRAMA
   También neutraliza fondos blancos en estilos inline antiguos
========================================================= */

nav a[href*="/duelo/mascotas/"] {
    border-color: var(--line-strong) !important;
    background: var(--surface) !important;
    color: var(--text-soft) !important;
}

nav a[href*="/duelo/mascotas/"]:hover {
    border-color: var(--accent-2) !important;
    background: rgba(47,228,194,.08) !important;
    color: var(--accent-2) !important;
}


/* =========================================================
   EJERCICIOS ANTIGUOS
   Sobrescribe cajas blancas inline/clases de las páginas existentes
========================================================= */

.emocion-opcion label,
.necesidad-opcion label,
.zona-opcion label,
.resultado-emociones,
.resultado-necesidades,
.resultado-zonas {
    background: var(--surface) !important;
    border-color: var(--line-strong) !important;
    color: var(--text) !important;
}

.emocion-opcion input:checked + label,
.necesidad-opcion input:checked + label,
.zona-opcion input:checked + label {
    background: rgba(255,79,145,.13) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.resultado-lista {
    color: var(--accent-2);
}



/* =========================================================
   SUBMENÚ DEL PROGRAMA
========================================================= */

.submenu-programa {
    width: 100%;
    padding: 4px 20px 0;
}

.submenu-programa-interior {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;

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

    gap: 8px;
}

.submenu-programa a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 190px;
    min-height: 42px;
    padding: 9px 14px;
    text-align: center;

    border: 1px solid var(--line-strong);
    border-radius: 999px;

    background: var(--surface);
    color: var(--text-soft);

    text-decoration: none;

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

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.submenu-programa a:hover {
    background: rgba(47,228,194,.08);
    border-color: var(--accent-2);
    color: var(--accent-2);
    transform: translateY(-1px);
}

@media (max-width: 650px) {

    .submenu-programa {
        padding-left: 12px;
        padding-right: 12px;
    }

    .submenu-programa a {
        width: min(190px, 100%);
        min-height: 40px;
        padding: 8px 11px;
        font-size: 11px;
    }

}


/* =========================================================
   FOOTER
========================================================= */

.footer-principal {
    width: 100%;
    padding: 0 30px 30px;
    color: var(--text-dim);
}


/* =========================================================
   AVISO DE RESPONSABILIDAD
========================================================= */

.footer-aviso {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;

    text-align: center;
}

.footer-linea {
    width: min(620px, calc(100% - 36px)) !important;
    max-width: 620px !important;
    height: 1px;
    margin-left: auto !important;
    margin-right: auto !important;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,79,145,.32),
            rgba(47,228,194,.28),
            transparent
        );
}

.footer-aviso p {
    max-width: 1000px;

    margin: 18px auto;
    padding: 0 15px;

    color: var(--text-dim);

    font-size: 12px;
    line-height: 1.65;

    text-align: center;
}


/* =========================================================
   DATOS DEL FOOTER
========================================================= */

.footer-interior {
    width: 100%;
    max-width: 1180px;

    margin: 22px auto 0;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
}

.footer-izquierda {
    text-align: left;

    font-size: 12px;
    line-height: 1.7;
}

.footer-izquierda .nombre {
    color: var(--text-soft);
    font-weight: 700;
}

.footer-derecha {
    text-align: right;

    font-size: 12px;
    line-height: 1.7;
}

.footer-whatsapp {
    display: block;

    color: var(--accent-2);

    text-decoration: none;
}

.footer-whatsapp:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-pais {
    margin-top: 2px;
}

.footer-admin {
    display: inline-block;

    margin-top: 8px;
    padding: 5px 10px;

    border: 1px solid var(--line-strong);
    border-radius: 999px;

    background: var(--surface);
    color: var(--text-dim);

    text-decoration: none;

    font-size: 11px;
}

.footer-admin:hover {
    background: rgba(255,79,145,.10);
    border-color: var(--accent);
    color: var(--accent);
}


/* =========================================================
   CONTADOR FUTURO
========================================================= */

.contador-visitas {
    margin-top: 4px;

    color: var(--text-dim);

    font-size: 9px;
    line-height: 1;

    opacity: .65;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .linea-menu {
        width: calc(100% - 40px);
    }

    main {
        width: calc(100% - 40px);
    }

    .introduccion {
        max-width: 720px;
    }

    .lista-experiencias {
        max-width: 720px;
    }

    .footer-principal {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =========================================================
   TELÉFONOS
========================================================= */

@media (max-width: 650px) {

    .encabezado-principal {
        padding-top: 20px;
    }

    .logo-principal {
        width: 235px;
        max-width: 80vw;
    }

    .menu-principal {
        padding-left: 10px;
        padding-right: 10px;
    }

    .menu-interior {
        gap: 3px;
    }

    .menu-principal a,
    .menu-principal button {
        padding: 7px 8px;
        font-size: 10px;
    }

    .linea-menu {
        width: calc(100% - 36px);
    }

    main {
        width: 100%;
        padding: 30px 18px 50px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

    .introduccion {
        margin-bottom: 34px;

        font-size: 17px;
        line-height: 1.7;
    }

    .pregunta {
        font-size: 19px;
    }

    .caja {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .boton,
    .boton-principal,
    .boton-secundario {
        font-size: 16px;
    }

    .campo {
        font-size: 17px;
    }

    .footer-principal {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-aviso p {
        padding: 0;
        font-size: 11px;
    }

    .footer-interior {
        align-items: flex-start;
        gap: 20px;
    }

}


/* =========================================================
   TELÉFONOS MUY PEQUEÑOS
========================================================= */

@media (max-width: 430px) {

    .logo-principal {
        width: 220px;
    }

    .menu-interior {
        max-width: 340px;
    }

    .footer-interior {
        gap: 15px;
    }

    .footer-izquierda,
    .footer-derecha {
        font-size: 11px;
    }

}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}


/* =========================================================
   LIBRO · KIKA
========================================================= */

.libro-kika {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 54px;
    align-items: start;

    text-align: left;
}

.libro-kika-portada {
    position: sticky;
    top: 24px;
}

.libro-kika-portada img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 20px;
    border: 1px solid var(--line-strong);

    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.libro-kika-contenido {
    width: 100%;
}

.libro-kika-etiqueta {
    margin: 0 0 12px;

    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.libro-kika-contenido h1 {
    margin-bottom: 28px;
    text-align: left;
}

.libro-kika-contenido h2 {
    margin-top: 38px;
    margin-bottom: 18px;
    text-align: left;
}

.libro-kika-contenido p,
.libro-kika-contenido li {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.82;
}

.libro-kika-contenido p {
    margin: 0 0 24px;
}

.libro-kika-contenido strong {
    color: var(--text);
}

.libro-kika-contenido ul {
    margin: 0 0 30px;
    padding-left: 22px;
}

.libro-kika-contenido li {
    margin-bottom: 13px;
}

.libro-kika-cierre {
    margin-top: 34px !important;
    padding: 22px 24px;

    border: 1px solid var(--line-strong);
    border-radius: 16px;

    background: var(--surface);
}

@media (max-width: 820px) {

    .libro-kika {
        grid-template-columns: 1fr;
        gap: 34px;
        max-width: 680px;
    }

    .libro-kika-portada {
        position: static;
        width: min(360px, 100%);
        margin: 0 auto;
    }

    .libro-kika-contenido h1,
    .libro-kika-contenido h2 {
        text-align: center;
    }

    .libro-kika-etiqueta {
        text-align: center;
    }

}

@media (max-width: 520px) {

    .libro-kika-contenido p,
    .libro-kika-contenido li {
        font-size: 16px;
        line-height: 1.72;
    }

}


/* =========================================================
   CORRECCIÓN DEFINITIVA · LÍNEAS DEL FOOTER
========================================================= */

.footer-principal {
    border: 0 !important;
}

.footer-principal hr,
.footer-principal .footer-linea {
    display: none !important;
}

.footer-aviso {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 1px 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.footer-aviso::before,
.footer-aviso::after {
    content: "";
    display: block;
    width: min(620px, calc(100% - 36px));
    height: 1px;
    margin-left: auto;
    margin-right: auto;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,79,145,.32),
            rgba(47,228,194,.28),
            transparent
        );
}

.footer-aviso::before {
    margin-bottom: 18px;
}

.footer-aviso::after {
    margin-top: 18px;
}

.footer-aviso p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
