/* =========================================================
   BASE.CSS
   CORPORACIÓN APOLO
   CONFIGURACIÓN GENERAL + PALETA
========================================================= */


/* =========================================================
   VARIABLES PRINCIPALES
========================================================= */

:root {

    /* -----------------------------------------------------
       IDENTIDAD CORPORACIÓN APOLO
    ----------------------------------------------------- */

    --morado: #7209B7;
    --morado-hover: #5F0798;
    --morado-suave: #F1DFFF;

    --amarillo: #FFB703;
    --amarillo-hover: #E6A400;


    /* -----------------------------------------------------
       FONDOS
    ----------------------------------------------------- */

    --fondo: #FFFFFF;
    --fondo-secundario: #F5F5F5;
    --superficie: #FFFFFF;


    /* -----------------------------------------------------
       TEXTOS
    ----------------------------------------------------- */

    --texto: #283545;
    --texto-secundario: #697586;


    /* -----------------------------------------------------
       OSCUROS
    ----------------------------------------------------- */

    --negro: #111111;


    /* -----------------------------------------------------
       BORDES
    ----------------------------------------------------- */

    --borde: #D9DFE5;


    /* -----------------------------------------------------
       RADIOS
    ----------------------------------------------------- */

    --radio: 18px;
    --radio-grande: 24px;


    /* -----------------------------------------------------
       SOMBRAS
    ----------------------------------------------------- */

    --sombra:
        0 12px 30px rgba(0, 0, 0, 0.08);


    /* -----------------------------------------------------
       TRANSICIONES
    ----------------------------------------------------- */

    --transicion: 0.25s ease;


    /* -----------------------------------------------------
       TIPOGRAFÍA
    ----------------------------------------------------- */

    --fuente-principal: 'Nunito', sans-serif;
}


/* =========================================================
   MODO OSCURO
========================================================= */

body.modo-oscuro {

    --fondo: #111111;
    --fondo-secundario: #181818;
    --superficie: #1D1D1D;

    --texto: #FFFFFF;
    --texto-secundario: #A9A9A9;

    --borde: #333333;

    --morado-suave: rgba(114, 9, 183, 0.22);

    --negro: #111111;
}


/* =========================================================
   RESET GENERAL
========================================================= */

*,
*::before,
*::after {

    box-sizing: border-box;

    margin: 0;

    padding: 0;
}


/* =========================================================
   HTML
========================================================= */

html {

    width: 100%;

    min-height: 100%;

    overflow-x: hidden;

    scroll-behavior: smooth;
}


/* =========================================================
   BODY
========================================================= */

body {

    width: 100%;

    min-height: 100vh;

    margin: 0;

    padding: 0;

    overflow-x: hidden;

    background-color: var(--fondo);

    color: var(--texto);

    font-family: var(--fuente-principal);

    font-size: 16px;

    line-height: 1.5;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* =========================================================
   IMÁGENES
========================================================= */

img {

    display: block;

    max-width: 100%;

    height: auto;
}


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

button,
input,
textarea,
select {

    font-family: inherit;
}


button {

    cursor: pointer;
}


/* =========================================================
   ENLACES
========================================================= */

a {

    color: inherit;
}


/* =========================================================
   SELECCIÓN DE TEXTO
========================================================= */

::selection {

    background-color: var(--morado);

    color: #FFFFFF;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {

    width: 10px;
}


::-webkit-scrollbar-track {

    background-color: var(--fondo-secundario);
}


::-webkit-scrollbar-thumb {

    background-color: var(--morado);

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {

    background-color: var(--morado-hover);
}


/* =========================================================
   SCROLLBAR — MODO OSCURO
========================================================= */

body.modo-oscuro::-webkit-scrollbar-track {

    background-color: #181818;
}


body.modo-oscuro::-webkit-scrollbar-thumb {

    background-color: var(--morado);
}


body.modo-oscuro::-webkit-scrollbar-thumb:hover {

    background-color: var(--morado-hover);
}


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

:focus-visible {

    outline: 3px solid var(--amarillo);

    outline-offset: 3px;
}


/* =========================================================
   UTILIDADES
========================================================= */

.oculto {

    display: none !important;
}


.texto-centrado {

    text-align: center;
}


/* =========================================================
   TRANSICIONES DEL TEMA
========================================================= */

body,
.header,
.slider-relevantes,
.slide-relevante,
.slide-contenido,
.seccion-relevantes,
.seccion-emprendimiento,
.seccion-contacto,
.emprendimiento-contenedor,
.emprendimiento-opcion,
.cuadro-contacto,
.cuadro-redes,
.red-social {

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================================
   CONTROLES DE ACCESIBILIDAD
   DISEÑO UNIFICADO PARA CLIENTE / VENDEDOR / ADMIN
========================================================= */

.controles {

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 8px !important;

    width: max-content !important;

    min-height: 56px !important;

    padding: 7px 10px !important;

    border: 1px solid rgba(114, 9, 183, 0.16) !important;

    border-radius: 999px !important;

    background: #F5F5F5 !important;

    box-shadow:
        0 8px 24px rgba(114, 9, 183, 0.14) !important;

    flex-shrink: 0 !important;
}


.controles button {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 42px !important;

    height: 42px !important;

    min-width: 42px !important;

    min-height: 42px !important;

    padding: 0 !important;

    margin: 0 !important;

    border: 3px solid #C9A84E !important;

    border-radius: 50% !important;

    background: #FFFFFF !important;

    color: #5A078F !important;

    font-family: var(--fuente-principal) !important;

    font-size: 20px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    box-shadow: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease !important;
}


.controles button:hover {

    background: #FFF8DF !important;

    border-color: #B89235 !important;

    color: #5A078F !important;

    transform: translateY(-1px) !important;
}


.controles button:active {

    transform: scale(0.95) !important;
}


.controles button:focus-visible {

    outline: 3px solid #7209B7 !important;

    outline-offset: 2px !important;
}


.controles .letra-indicador {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 18px !important;

    height: 42px !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #5A078F !important;

    font-size: 17px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    background: transparent !important;

    border: 0 !important;
}


/* Modo oscuro */

body.modo-oscuro .controles {

    background: #242124 !important;

    border-color: rgba(255, 183, 3, 0.28) !important;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35) !important;
}


body.modo-oscuro .controles button {

    background: #2D292E !important;

    border-color: #C9A84E !important;

    color: #F1DFFF !important;
}


body.modo-oscuro .controles button:hover {

    background: #3A333D !important;

    border-color: #FFB703 !important;
}


body.modo-oscuro .controles .letra-indicador {

    color: #D9B8EA !important;
}


/* =========================================================
   RESPONSIVE — CONTROLES
========================================================= */

@media (max-width: 700px) {

    .controles {

        gap: 5px !important;

        min-height: 50px !important;

        padding: 5px 7px !important;
    }


    .controles button {

        width: 36px !important;

        height: 36px !important;

        min-width: 36px !important;

        min-height: 36px !important;

        border-width: 2px !important;

        font-size: 17px !important;
    }


    .controles .letra-indicador {

        width: 14px !important;

        height: 36px !important;

        font-size: 15px !important;
    }
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
========================================================= */

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

    html {

        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   CONTROLES DE ACCESIBILIDAD — DISEÑO UNIFICADO
========================================================= */

.controles {

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 6px !important;

    flex-shrink: 0 !important;

    padding: 7px 9px !important;

    border: 2px solid rgba(114, 9, 183, 0.18) !important;

    border-radius: 999px !important;

    background: rgba(255, 255, 255, 0.98) !important;

    box-shadow:
        0 8px 24px rgba(53, 49, 58, 0.22) !important;

    backdrop-filter: blur(6px);
}


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

.controles button {

    width: 42px !important;

    height: 42px !important;

    min-width: 42px !important;

    min-height: 42px !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    margin: 0 !important;

    border: 3px solid #FFB703 !important;

    border-radius: 50% !important;

    background: #FFFFFF !important;

    color: #7209B7 !important;

    font-family: var(--fuente-principal) !important;

    font-size: 20px !important;

    font-weight: 800 !important;

    line-height: 1 !important;

    box-shadow:
        0 3px 9px rgba(0, 0, 0, 0.12) !important;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease !important;
}


/* =========================================================
   HOVER
========================================================= */

.controles button:hover {

    background: #7209B7 !important;

    border-color: #7209B7 !important;

    color: #FFFFFF !important;

    transform: translateY(-2px) scale(1.04) !important;

    box-shadow:
        0 6px 14px rgba(91, 42, 120, 0.28) !important;
}


/* =========================================================
   PRESIÓN
========================================================= */

.controles button:active {

    transform: scale(0.96) !important;
}


/* =========================================================
   FOCO
========================================================= */

.controles button:focus-visible {

    outline: 3px solid #FFB703 !important;

    outline-offset: 2px !important;
}


/* =========================================================
   LETRA A
========================================================= */

.controles .letra-indicador {

    min-width: 20px !important;

    color: #7209B7 !important;

    font-size: 15px !important;

    font-weight: 800 !important;

    line-height: 1 !important;

    text-align: center !important;
}


/* =========================================================
   MODO OSCURO
========================================================= */

body.modo-oscuro .controles {

    background: rgba(29, 29, 29, 0.98) !important;

    border-color: rgba(255, 183, 3, 0.35) !important;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.4) !important;
}


body.modo-oscuro .controles button {

    background: #1D1D1D !important;

    border-color: #FFB703 !important;

    color: #FFFFFF !important;
}


body.modo-oscuro .controles button:hover {

    background: #7209B7 !important;

    border-color: #7209B7 !important;

    color: #FFFFFF !important;
}


body.modo-oscuro .controles .letra-indicador {

    color: #F5D875 !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .controles {

        gap: 5px !important;

        padding: 6px 7px !important;
    }


    .controles button {

        width: 39px !important;

        height: 39px !important;

        min-width: 39px !important;

        min-height: 39px !important;

        font-size: 18px !important;
    }


    .controles .letra-indicador {

        min-width: 18px !important;

        font-size: 14px !important;
    }
}

/* =========================================================
   CONTROLES DE ACCESIBILIDAD — ESTILO UNIFICADO
   CORPORACIÓN APOLO
========================================================= */

.controles {

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 7px !important;

    padding: 7px 9px !important;

    background: rgba(255, 255, 255, 0.98) !important;

    border: 2px solid rgba(114, 9, 183, 0.18) !important;

    border-radius: 999px !important;

    box-shadow:
        0 8px 24px rgba(53, 49, 58, 0.22) !important;

    backdrop-filter: blur(6px);

    flex-shrink: 0 !important;
}


/* ---------------------------------------------------------
   BOTONES
--------------------------------------------------------- */

.controles button {

    width: 42px !important;

    height: 42px !important;

    min-width: 42px !important;

    min-height: 42px !important;

    padding: 0 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    border: 3px solid #FFB703 !important;

    border-radius: 50% !important;

    background: #FFFFFF !important;

    color: #7209B7 !important;

    font-family: var(--fuente-principal) !important;

    font-size: 20px !important;

    font-weight: 800 !important;

    line-height: 1 !important;

    box-shadow:
        0 3px 9px rgba(0, 0, 0, 0.12) !important;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease !important;
}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.controles button:hover {

    background: #7209B7 !important;

    border-color: #7209B7 !important;

    color: #FFFFFF !important;

    transform: translateY(-2px) scale(1.04) !important;

    box-shadow:
        0 6px 14px rgba(91, 42, 120, 0.28) !important;
}


/* ---------------------------------------------------------
   FOCUS
--------------------------------------------------------- */

.controles button:focus-visible {

    outline: 3px solid #FFB703 !important;

    outline-offset: 2px !important;
}


/* ---------------------------------------------------------
   LETRA A
--------------------------------------------------------- */

.controles .letra-indicador {

    min-width: 20px !important;

    color: #7209B7 !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    text-align: center !important;
}


/* =========================================================
   MODO OSCURO
========================================================= */

body.modo-oscuro .controles {

    background: rgba(29, 29, 29, 0.98) !important;

    border-color: rgba(255, 183, 3, 0.35) !important;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4) !important;
}


body.modo-oscuro .controles button {

    background: #1D1D1D !important;

    border-color: #FFB703 !important;

    color: #FFFFFF !important;
}


body.modo-oscuro .controles button:hover {

    background: #7209B7 !important;

    border-color: #7209B7 !important;

    color: #FFFFFF !important;
}


body.modo-oscuro .controles .letra-indicador {

    color: #FFB703 !important;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 850px) {

    .controles {

        gap: 5px !important;

        padding: 6px !important;
    }


    .controles button {

        width: 39px !important;

        height: 39px !important;

        min-width: 39px !important;

        min-height: 39px !important;

        font-size: 17px !important;
    }
}


@media (max-width: 520px) {

    .controles {

        gap: 4px !important;

        padding: 5px !important;
    }


    .controles button {

        width: 36px !important;

        height: 36px !important;

        min-width: 36px !important;

        min-height: 36px !important;

        font-size: 15px !important;
    }


    .controles .letra-indicador {

        min-width: 17px !important;

        font-size: 13px !important;
    }
}
/* =========================================================
   MOVIL FINAL - CONTROLES DE ACCESIBILIDAD SOBRE EL BODY
   No reserva espacio ni modifica el ancho del contenido.
========================================================= */
@media (max-width: 700px) {
    .controles,
    .controles-flotantes {
        position: fixed !important;
        top: 50% !important;
        right: 10px !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: 99999 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 7px !important;

        box-sizing: border-box !important;
        border-radius: 999px !important;
        overflow: visible !important;
    }

    .controles button,
    .controles-flotantes button,
    .controles .letra-indicador,
    .controles-flotantes .letra-indicador {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.modo-oscuro .controles,
    body.modo-oscuro .controles-flotantes {
        background: #1d1d1d !important;
        border-color: #ffb703 !important;
    }

    body.modo-oscuro .controles button,
    body.modo-oscuro .controles-flotantes button,
    body.modo-oscuro .controles .letra-indicador,
    body.modo-oscuro .controles-flotantes .letra-indicador {
        background: #1d1d1d !important;
        color: #ffffff !important;
        border-color: #ffb703 !important;
    }
}



/* APOLO FIX V4: fondo general y encabezados de contenido público */
body.modo-oscuro { background:#202020 !important; color:#f2f0f3 !important; }
body.modo-oscuro main { background:#202020 !important; }
body.modo-oscuro main .seccion-encabezado,
body.modo-oscuro main .seccion-titulo,
body.modo-oscuro main .pagina-titulo { background:#292929 !important; background-image:none !important; color:#f2f0f3 !important; }
body.modo-oscuro .header,
body.modo-oscuro .header .header-contenedor { background:#171717 !important; }

