/* 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: MORADO & GRIS === */
    /* MORADOS (Originales de la marca) */
    --c-purple-400: 167 139 250; /* #a78bfa */
    --c-purple-500: 139 92 246;  /* #8b5cf6 (Principal) */
    --c-purple-600: 124 58 237;  /* #7c3aed */
    --c-purple-800: 91 33 182;   /* #5b21b6 */
    --c-purple-900: 76 29 149;   /* #4c1d95 */
    
    /* AZULES (Sustituyen al azul secundario) */
    --c-cyan-400: 92 182 255;  /* #5cb6ff azul general del otro tema*/
    --c-cyan-500: 23 117 194;  /* #1775c2 un poco mas oscuro*/

    /* AMARILLOS */
    --c-yellow-400: 254 255 171;  /* #feffab (Amarillo oscuro) */
    --c-yellow-500: 247 255 92;   /* #f7ff5c (Amarillo principal) */
    --c-yellow-600: 234 236 82;   /* #eaec52 un poco mas oscuro */
    --c-yellow-800: 185 187 46;   /* #b9bb2e un poco mas oscuro */
    --c-yellow-900: 122 123 26;   /* #7a7b1a un poco mas oscuro */
    
    /* GRIS AZULADO DEL FONDO */
        --c-gray-400: 255 255 255; /* #ffffff */
        --c-gray-500: 123 166 202; /* #7ba6ca */
        --c-gray-800: 7 89 133;    /* #075985 */
        --c-gray-900: 30 41 59;    /* #1e293b */
        --c-gray-950: 11 17 32;    /* #0b1120 */  
        --c-gray-980: 11 17 32;    /* #000000 */

/* === TEMA ALTERNATIVO: AZUL & AMARILLO (Se activa con la clase .theme-blue) === */
    body.theme-blue{
        /* AZUL (Sustituyen a la variable 'purple' original) */
        --c-purple-400: 143 205 255; /* #8fcdff claro*/
        --c-purple-500: 92 182 255;  /* #5cb6ff (Azul Principal) */
        --c-purple-600: 23 117 194;  /* #1775c2 un poco mas oscuro*/
        --c-purple-800: 32 97 150;   /* #206196 menos saturado (tirando a oscuro)*/
        --c-purple-900: 11 72 122;   /* #0b487a mas oscuro*/
        
        /* MORADOS (Sustituyen a la variable 'cyan' original) */
        --c-cyan-400: 167 139 250; /* #a78bfa */
        --c-cyan-500: 139 92 246;  /* #8b5cf6 (Principal) */

        /* BLANCOS DEL FONDO (sustituyen a "gray"*/
        --c-gray-400: 0, 76, 148;    /* #004c94 */
        --c-gray-980: 255 255 255;   /* #ffffff */
        --c-gray-800: 237 245 255;   /* #edf5ff */
        --c-gray-900: 214 233 255;   /* #d6e9ff */
        --c-gray-950: 114 164 224;   /* #72a4e0 */
        --c-gray-500: 114 164 224;   /* #1e395e */
        
        /* AMARILLOS */
        --c-yellow-400: 254 255 171;  /* #feffab (Amarillo oscuro) */
        --c-yellow-500: 247 255 92;   /* #f7ff5c (Amarillo principal) */
        --c-yellow-600: 234 236 82;   /* #eaec52 un poco mas oscuro */
        --c-yellow-800: 185 187 46;   /* #b9bb2e un poco mas oscuro */
        --c-yellow-900: 122 123 26;   /* #7a7b1a un poco mas oscuro */
    }
}

/* 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;
}

/* 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: scroll;
}



/* === HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 5000;
    width: 100%;
    background-color: rgba(3, 7, 18, 0.9); /* gray-950/80 */
    backdrop-filter: blur(16px); /* backdrop-blur-lg */
    border-bottom: 1px solid rgba(0, 204, 255); /* border-b border-gray-800/50 */
}

header a:hover img {
    transform: rotate(360deg);
}

/* 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);
}



/* === CLASE LOGOTIPO === */
.logotipoRSSmall{
    font-family: Ethnocentric, sans-serif;
    color: #8b5cf6;
    text-shadow: 0.5px  0px 0px rgb(0, 204, 255),
                 0px  0.5px 0px rgb(0, 204, 255),
                 -0.5px  0px 0px rgb(0, 204, 255),               
                 0px -0.5px 0px rgb(0, 204, 255);
    font-size: 1.7rem;
    font-style: italic;
    font-weight: bolder;
    letter-spacing: 0.11em;
    margin-right: 15px;
}

.logotipoRSBig{
    font-family: Ethnocentric, sans-serif;
    color: #8b5cf6;
    text-shadow:  1px  0px 0px rgb(0, 204, 255),
                  0px  1px 0px rgb(0, 204, 255),
                 -1px  0px 0px rgb(0, 204, 255),               
                  0px -1px 0px rgb(0, 204, 255);
    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);
}

/*ajustes para seccion*/
section{
    float: left;
    float: right;
    clear: both;
    width: 100%;
}




/* === CABECERA === */
.contCabecera{
    padding-left: 15%;
    padding-right: 15%;
    align-items: center;
    padding-top: 3%;
    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;
}
/*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;
}
.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;
}
.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; 
}
/* 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;
}
/* 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");
}
