/* Importar fuente Inter si no carga por CDN */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/*
=============================================================
====================== COLORES Y TEMAS ======================
=============================================================
*/
:root {
    /* === TEMA POR DEFECTO: NOCHE (CYBERPUNK NEÓN: MORADO ELÉCTRICO, AZUL ELÉCTRICO & TURQUESA) === */
    /* MORADOS ELÉCTRICOS (Identidad de marca en modo noche) */
    --c-purple-400: 192 132 252; /* #c084fc */
    --c-purple-500: 147 51 234;  /* #9333ea (Principal) */
    --c-purple-600: 126 34 206;  /* #7e22ce */
    --c-purple-800: 88 28 135;   /* #581c87 */
    --c-purple-900: 59 7 95;     /* #3b075f */

    /* ACENTO AZUL ELÉCTRICO (Sustituye al cian original, eliminando tonos rojos) */
    --c-cyan-400: 56 189 248;    /* #38bdf8 (Azul eléctrico claro) */
    --c-cyan-500: 14 165 233;    /* #0ea5e9 (Azul eléctrico principal) */

    /* ACENTO TURQUESA VIBRANTE (Sustituye al menta original) */
    --c-yellow-400: 45 212 191;  /* #2dd4bf (Turquesa claro hover) */
    --c-yellow-500: 20 184 166;  /* #14b8a6 (Turquesa principal) */
    --c-yellow-600: 13 148 136;  /* #0d9488 */
    --c-yellow-800: 17 94 89;    /* #115e59 */
    --c-yellow-900: 19 78 74;    /* #134e4a */

    /* FONDOS OSCUROS PREMIUM (TONOS MORADOS PROFUNDOS) */
    --c-gray-400: 243 244 246;   /* #f3f4f6 (Gris claro para textos) */
    --c-gray-500: 167 139 250;   /* #a78bfa (Gris morado para subtítulos) */
    --c-gray-800: 30 20 64;      /* #1e1440 */
    --c-gray-900: 22 14 46;      /* #160e2e (Fondo principal secundario) */
    --c-gray-950: 14 9 32;       /* #0e0920 (Tarjetas oscuras) */
    --c-gray-980: 10 6 24;       /* #0a0618 (Fondo vanta oscuro) */

    /* === TEMA ALTERNATIVO: DÍA (ATARDECER CÁLIDO Y TEKA: MORADO REAL, NARANJA ATARDECER & DEEP TEAL) === */
    body.theme-blue {
        /* MORADOS REALES (Identidad de marca adaptada para contraste en día) */
        --c-purple-400: 196 181 253; /* #c4b5fd */
        --c-purple-500: 109 40 217;  /* #6d28d9 (Morado real principal) */
        --c-purple-600: 91 33 182;   /* #5b21b6 */
        --c-purple-800: 76 29 149;   /* #4c1d95 */
        --c-purple-900: 46 16 102;   /* #2e1066 */

        /* ACENTO DORADO CÁLIDO/ÁMBAR (Sustituye al cian, libre de rojo) */
        --c-cyan-400: 250 204 21;    /* #facc15 (Dorado brillante) */
        --c-cyan-500: 234 179 8;     /* #eab308 (Ámbar principal) */

        /* ACENTO DEEP TEAL (Sustituye al rosa/rojo) */
        --c-yellow-400: 45 212 191;  /* #2dd4bf (Teal claro hover) */
        --c-yellow-500: 13 148 136;  /* #0d9488 (Teal principal) */
        --c-yellow-600: 17 94 89;    /* #115e59 */
        --c-yellow-800: 19 78 74;    /* #134e4a */
        --c-yellow-900: 15 23 42;    /* #0f172a */

        /* FONDOS CLAROS LILAS (MÁXIMA ELEGANCIA Y CONTRASTE) */
        --c-gray-400: 15 23 42;      /* #0f172a (Slate oscuro para texto principal) */
        --c-gray-500: 51 65 85;      /* #334155 (Slate medio para texto secundario) */
        --c-gray-800: 224 204 250;   /* #e0ccfa */
        --c-gray-900: 237 219 253;   /* #eddbfd */
        --c-gray-950: 243 232 255;   /* #f3e8ff (Fondo tarjetas claras) */
        --c-gray-980: 250 245 255;   /* #faf5ff (Fondo vanta claro) */
    }
}

/* Transición suave de colores al cambiar de tema + Tipografia  URWGothic-Book */ 
body {
    font-family: Telespania, sans-serif;
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}

/* Asegurar que todos los elementos hereden la transición de color */
div, span, a, button, h1, h2, h3, p, i, section, header, footer {
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}

/* Efectos de la animación de fondo */
@keyframes pulse-light {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}
.animate-pulse-light {
    animation: pulse-light 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.animation-delay-2000 {
    animation-delay: 2s;
}

/* Ajuste de selección de texto */
::selection {
    background-color: rgb(var(--c-yellow-500) / 0.85); 
    color: rgb(var(--c-purple-800));
}



/*
================================================================
=================== CORRECION DEL MENU MOVIL ===================
================================================================
*/
/* Los estilos base deben estar en el ID, no en la clase .mobile-menu-closed */
#mobile-menu {
    position: fixed;
    inset: 0; /* top:0, right:0, bottom:0, left:0 */
    z-index: 60; /* Mayor que el header (z-50) para cubrirlo */
    background-color: rgba(3, 7, 18, 0.7); /* Fondo oscuro casi opaco */
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Forzar que el menú móvil (que siempre tiene fondo oscuro) mantenga texto claro en ambos temas */
#mobile-menu a,
#mobile-menu button {
    color: rgba(255, 255, 255, 0.7) !important;
}
#mobile-menu a:hover,
#mobile-menu button:hover {
    color: rgb(var(--c-purple-400)) !important;
}

/* Clases de estado (solo controlan la posición) */
.mobile-menu-closed {
    transform: translateX(100%);
}

.mobile-menu-open {
    transform: translateX(0);
}



/*
==============================================
=========== BOTONES DE LA PAGINA =============
==============================================
*/
/* === Botón Volver Arriba === */
#back-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    background-color: rgb(var(--c-purple-500));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 9999px;
    padding: 0.75rem;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

#back-to-top-btn:hover{
    background-color: rgb(var(--c-purple-600));
    box-shadow: 0 0 15px rgb(var(--c-cyan-400) / 0.5);
    transform: scale(1.1);
    cursor: pointer;
}

#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* === Botón Cambiar Tema === */
#theme-toggle-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 2rem;
    /*azul por defecto*/
    background-color: rgb(var(--c-cyan-400)); 
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 9999px;
    padding: 0.75rem;
    z-index: 40;
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle-btn:hover { 
    background-color: rgb(var(--c-cyan-400));
    color: white; /* El texto se vuelve blanco al hacer hover */
    transform: scale(1.1);
    box-shadow: 0 0 15px rgb(var(--c-cyan-400) / 0.5);
}

/* === Botón Cambiar Tipo de Letra === */
#fontFamily-toggle-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 6rem;
    /*azul por defecto*/
    background-color: rgb(var(--c-yellow-500)); 
    color: rgb(var(--c-cyan-400));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 9999px;
    padding: 0.75rem;
    z-index: 40;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fontFamily-toggle-btn:hover { 
    box-shadow: 0 0 15px rgb(var(--c-cyan-400) / 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgb(var(--c-yellow-500) / 0.5);
}



/*
=================================================================
====================== PARTES DE LA PÁGINA ======================
=================================================================
*/
/* === BODY === */
body {    
    background-color: rgb(var(--c-gray-900));
    color: rgb(var(--c-gray-400));            /* Texto gris claro por defecto */
    -webkit-font-smoothing: antialiased;      /* antialiased */
    -moz-osx-font-smoothing: grayscale;
}

body p{
    font-size: 18px;
}


/* === MAIN === */
main{
    overflow: hidden;
}

/* === CLASE LOGOTIPO === */
.logotipoRSSmall{
    font-family: Ethnocentric, sans-serif;
    color: rgb(var(--c-purple-500));
    text-shadow: 0.5px  0px 0px rgb(var(--c-cyan-400)),
                 0px  0.5px 0px rgb(var(--c-cyan-400)),
                 -0.5px  0px 0px rgb(var(--c-cyan-400)),               
                 0px -0.5px 0px rgb(var(--c-cyan-400));
    font-size: clamp(0.95rem, 5vw, 1.25rem);
    font-style: italic;
    font-weight: bolder;
    letter-spacing: clamp(0em, 1vw, 0.11em);
}

.logotipoRS, .logotipoRSBig {
    font-family: Ethnocentric, sans-serif;
    color: rgb(var(--c-purple-500));
    text-shadow: 1px 0px 0px rgb(var(--c-cyan-400)),
        0px 1px 0px rgb(var(--c-cyan-400)),
        -1px 0px 0px rgb(var(--c-cyan-400)),
        0px -1px 0px rgb(var(--c-cyan-400));
    font-size: 1.7rem;
    font-style: italic;
    font-weight: bolder;
    letter-spacing: 0.11em;
}

/* Animacion Logo Header (Giro 360) --- */
header a img {
    /* Transición suave para el giro */
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === HEADER === */
header a:hover img {
    transform: rotate(360deg);
}

/* Corrección de contraste para links del navbar en escritorio */
header nav.hidden a {
    color: rgb(var(--c-gray-400)) !important;
    transition: color 0.3s ease;
}
header nav.hidden a:hover {
    color: rgb(var(--c-purple-500)) !important;
}
body.theme-blue header nav.hidden a:hover {
    color: rgb(var(--c-purple-600)) !important;
}

/* Clases de utilidad para animaciones al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === CABECERA === */
.contCabecera{
    padding-left: 15%;
    padding-right: 15%;
    align-items: center;
    padding-bottom: 5%;
    text-align: justify;
}
.contCabecera h1{
    text-align: center;
    font-size: 3.5rem;               
    color: rgb(var(--c-purple-500));
    font-weight: bold;
}
.contCabecera h3{
    padding-top: 2%;
    color: rgb(var(--c-cyan-400));
}

.cabecera{
    padding-top: 3%;
    width: 100%;
    float: left;
    display: flex;
}
.cabecera img{
    margin-left: 7%;
    right: 0;
    float: right;
    max-width: 45em;
    height: 30em;
    border-radius: 1.5rem;
}
/*PARA MOVILES / PANTALLAS PEQUEÑAS */
@media (max-width: 1600px) {
  .cabecera {
    flex-direction: column; 
    align-items: center;
  }

  .cabecera img {
    width: 100%; 
    max-width: 600px;
    padding-top: 5%;
    padding-bottom: 10%;
    margin: 0 auto;
  }
}

/* === CUERPOS ===*/
/*SOLO TEXTO*/
.cuerpoSoloTexto{
    padding-left: 15%;
    padding-right: 15%;
    align-items: center;
    padding-bottom: 5%;
    text-align: justify;
}


/*TEXTO IZQUIERDA IMAGEN DERECHA*/
.cuerpoTiId{
    padding-left: 15%;
    padding-right: 15%;
    padding-bottom: 5%;
    text-align: justify;
    align-content: space-between;
    align-items: stretch;
    display: flex;
}
.cuerpoTiId img{
    width: 100%;       
    max-width: 35em;
    height: 25em;
    margin-left: 5%;
    padding-bottom: 25px;
    right: 0;
    border-radius: 1.5rem;
}
.cuerpoTiId p{
    width: 60%;
}
/* para moviles / pantallas pequeñas */
@media (max-width: 900px) {
  .cuerpoTiId {
    flex-direction: column; 
    align-items: center;  
  }
  .cuerpoTiId img {
    width: 100%; 
    max-width: 400px;
    padding-top: 5%;
    padding-bottom: 10%;
    justify-self: center;
    margin: 0 auto;
  }
  .cuerpoTiId p{
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
}


/*TEXTO DERECHA IMAGEN IZQUIERDA*/
.cuerpoTdIi{
    padding-left: 15%;
    padding-right: 15%;
    padding-bottom: 5%;
    padding-top: 1%;
    text-align: justify;
    align-content: space-between;
    align-items: stretch;
    display: flex;
}

.cuerpoTdIi img{
    width: 100%;       
    max-width: 35em;
    height: 25em;
    margin-right: 5%;
    left: 0;
    border-radius: 1.5rem;
}
.cuerpoTdIi p{
    width: 60%;
}
/* para moviles / pantallas pequeñas */
@media (max-width: 900px) {
  .cuerpoTdIi {
    flex-direction: column; 
    align-items: center;  
  }
  .cuerpoTdIi img {
    width: 100%; 
    max-width: 400px;
    padding-top: 5%;
    padding-bottom: 25px;
    justify-self: center;
    margin: 0 auto;
  }
  .cuerpoTdIi p{
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
}

/*IMAGEN ENTERA CON TEXTO DEBAJO*/
.cuerpoAmp{
    padding-left: 15%;
    padding-right: 15%;
    align-items: center;
    padding-bottom: 5%;
    text-align: justify;   
    position: relative;     
}
.cuerpoAmp img{
    width: 100%;
    max-width: 90em;
    height: 35em;
    padding-left: 6%;
    padding-right: 6%;
    padding-bottom: 2%;
    right: 0; left: 0; 
    margin: 0 auto; 
    border-radius: 1.5rem;
}
/* para moviles / pantallas pequeñas */
@media (max-width: 900) {
    .cuerpoAmp{    
        margin-top: 5%;
    }
    .cuerpoAmp img {
        width: 100%; 
        max-width: 600px;
        height: auto;
        padding-bottom: 25px;
    }
}



/* === VIDEO FINAL DEL BLOG ===*/
.contVideoBlog{
    padding-left: 15%;
    padding-right: 15%;
    align-items: center;
    padding-bottom: 5%;
    text-align: justify;   
    position: relative; 
}
.videillo{
    padding-top: 4%;
    padding-left: 10%;
    padding-right: 10%;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}
/* para moviles / pantallas pequeñas */
@media (max-width: 1600) {
    .videillo {
        padding: 0;
        margin-top: 25px;
        width: 100%; 
        max-width: 650px;
        justify-self: center;
        padding-bottom: 15px;
    }
}

/* === FOORTER === */
footer{
    width: 100%;
    background-color: rgba(3, 7, 18, 0.7); 
    border-bottom: 1px solid rgba(31, 41, 55, 0.7); 
    padding-top: 2rem;      
    padding-bottom: 2rem;  
    margin-top: 5%;
}



/*
=====================================================
====================== FUENTES ======================
=====================================================
*/
/* Fuente importada del Logotipo */
@font-face {
  font-family: "Ethnocentric";
  src: url("../assets/fonts/Ethnocentric-Regular.otf") format("truetype");
}

/* Fuente general para la web */
@font-face { 
  font-family: "URWGothic-Book";
  src: url("../assets/fonts/URWGothic-Book.otf") format("truetype");
}

@font-face { /*por defecto*/
  font-family: "Telespania";
  src: url("../assets/fonts/Telespania.ttf") format("truetype");
}
