/**----  ESTILOS GENERALES  ----**/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.line-text {
    margin-top: 0.1px;
    margin-bottom: 0.1px;
}

html,
body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

button {
    cursor: pointer;
}

a {
    color: var(--secondary-color);
    list-style: none;
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color-hover);
}

a:visited {
    color: red;
}

::-webkit-scrollbar {
    width: 13px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#00ad93, #016b5b);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#00ad93, #016b5b);
}

/**----  VARIABLES PARA EL LIGHT MODE  ----**/
:root {
    --main-color: rgba(210, 0, 0, 0.926);
    --secondary-color: #00a78e;
    --secondary-color-hover: #007564;
    --body-bg: #f9f9f9;
    --clr-general: #222121;
    --container-bg: rgba(255, 255, 255, 0.89);
    --title-color: #222121;
    --shadow-color: #e2a0a0;
    --a-hover: rgba(0, 0, 0, 0.08);
    --post-title-color: #171921;
    --meta-color: #8c9499;
    --footer-bg: #12141a;
    --menu-text: #fff;
    --hover-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    --active-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --msg-color: #004d40;
    --bg: #f6f8fb;
    --panel: #ffffff;
    --muted: #5b6b78;
    --accent: #2563eb;
    --glass: rgba(0, 0, 0, 0.03);
    color-scheme: light;
            
}

/**----  VARIABLES PARA EL DARK MODE  ----**/
[data-theme="dark"] {
    --main-color: #ee3838;
    --secondary-color: #00ad93;
    --secondary-color-hover: #008a75;
    --body-bg: #191e26;
    --clr-general: #ccc;
    --container-bg: rgba(0, 0, 0, 0.89);
    --title-color: #fff;
    --shadow-color: #750000;
    --post-title-color: #ffffff;
    --meta-color: #a9b4ba;
    --footer-bg: #12141a;
    --menu-text: #fff;
    --a-hover: rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    --active-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    --msg-color: #00e0bb;
    --bg: #0f1720;
    --panel: #0e0f11;
    --muted: #9aa4af;
    --accent: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 10px;
    --toolbar-gap: 6px;
    --toolbar-padding: 8px;
    color-scheme: dark;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/monserrat/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/monserrat/Montserrat-ExtraBold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 75.5px;
    background: var(--body-bg);
    color: var(--clr-general);
    position: relative;
    min-height: 90vh;
    background-size: 110%;
    background-position: center;
    background-repeat: repeat;
    margin: 0;
    transition: background-image 0.5s ease-in-out;
    background-attachment: fixed;
}

.center {
    display: block;
    width: fit-content;
    margin: 0px auto;
}

.left {
    float: left;
}

.right {
    float: right;
}

/**----  MENÚ PRINCIPAL  ----**/
.navbar {
    background: var(--main-color);
    height: 75px;
    box-sizing: border-box;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.logo:hover img {
    transform: translateY(-2px);
}

.menu-items {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-items li {
    position: relative;
    margin: 0 3px;
}

.menu-items a,
.menu-items button {
    text-transform: uppercase;
    color: var(--menu-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 12px;
    display: inline-block;
    transition: all 0.25s ease-out;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.menu-items a:hover,
.menu-items button:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-1px);
    background-color: var(--a-hover);
}

.menu-items i {
    width: 1.2em;
    font-size: 18px;
    transition: all 0.25s ease;
}

.menu-items button:hover i {
    transform: scale(1.1);
}

/**----  CONTENEDOR PRINCIPAL  ----**/
.gn-container {
    z-index: 100;
    position: relative;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 35px;
    animation: fadeIn 0.5s ease-in-out;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 200px;
    overflow-wrap: break-word;
}

.main-wrapper {
    gap: 15px;
    margin: 25px auto;
    width: 93%;
    display: flex;
    justify-content: center;
    min-height: 400px;
}

.main-article {
    z-index: 50;
    flex: 0 0 68%;
}

.sidebar {
    z-index: 30;
    flex: 0 0 32%;
}

/**----  TÍTULOS  ----**/
.post-title {
    line-height: 2.8rem;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.date {
    color: var(--meta-color);
    font-size: 0.8rem;
}

span i.fa-solid.fa-clock,
span i.fa-solid.fa-tag {
    margin-left: 15px;
}

.elegant-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--title-color);
    text-align: center;
    position: relative;
    padding-bottom: 5px;
    margin: 21px 0 25px;
    text-shadow: 1px 1px 0px var(--shadow-color), 2px 2px 0px var(--shadow-color), 3px 3px 0px var(--shadow-color);
    line-height: 29px;
}

.elegant-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0), var(--main-color), rgba(255, 0, 0, 0));
    transition: width 0.4s ease;
}

.elegant-title:hover::after {
    width: 65%;
}

.wd-title {
    margin: 10px auto;
}

.wd-title h2 {
    font-size: 1.35rem;
    font-weight: bold;
}

/**----  FOOTER  ----**/
.footer {
    width: 100%;
    position: absolute;
    z-index: 10;
    background-color: var(--footer-bg);
    color: #e0e0e0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.214);
    padding: 25px 0px;
    margin: 0 auto;
    text-align: center;
}

.logo-description div {
    display: flex;
    padding: 15px;
    text-align: justify;
}

.logo-description div img {
    width: 70%;
    max-width: 300px;
    margin: 0 auto;
    height: auto;
    display: block;
}

.footer-title {
    border-bottom: 2.5px solid var(--main-color);
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin: 1.5rem auto;
    position: relative;
    padding-bottom: 0.5rem;
}

.main-links ul li {
    list-style: none;
    font-size: 15px;
}

.main-links ul li i {
    padding-right: 10px;
    line-height: 25px;
    font-size: 13px;
    color: var(--main-color);
}

.sidebar-widget,
.main-links,
.logo-description {
    padding: 6px;
}

.social-footer {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.sidebar-widget .social-footer li {
    margin: 6px;
    list-style: none;
    line-height: 40px;
    width: 38px;
    height: 38px;
    background-color: rgba(155, 155, 155, 0.1);
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 5px;
}

.sidebar-widget .social-footer li a i {
    color: #fff;
}

.twitter:hover {
    background: #00acee !important;
}

.facebook:hover {
    background: #3b5999 !important;
}

.discord:hover {
    background: #7289DA !important;
}

.instagram:hover {
    background: linear-gradient(15deg, #ffb13d, #dd277b, #4d5ed4) !important;
}

.youtube:hover {
    background: #ff0000 !important;
}

/**---- ICONOS EN EL MENU ----**/
.utils-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.utils-btn {
    cursor: pointer;
    color: var(--menu-text);
    font-size: 18px;
    background: none;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.utils-btn:hover {
    background-color: var(--a-hover);
    box-shadow: var(--hover-shadow);
}

/**----  BARRA DE BÚSQUEDA  ----**/
.search-bar {
    z-index: 90;
    display: flex;
    width: 100%;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    background: #fff;
    transform-origin: top center;
    opacity: 0;
    height: 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: fixed;
    z-index: 100;
}

.search-bar.active {
    opacity: 1;
    height: auto;
    padding: 5px;
    margin-top: 0px;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease-out, fadeIn 0.4s ease-out;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16.5px;
    color: #333;
    background: transparent;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: #999;
    transition: all 0.2s ease;
}

.search-bar input:focus::placeholder {
    opacity: 0.5;
}

.search-bar button {
    width: 50px;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    color: #000;
    transform: scale(1.05);
}

.search-bar:focus-within {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.utils-btn.active {
    color: #fff;
    transform: rotate(90deg);
}

/**----  BOTONES  ----**/
.btn {
    list-style: none;
    border: none;
    transition: transform 0.3s ease-in-out;
    color: white !important;
    padding: 11px 15px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.btn i {
    margin-right: 5px;
}

.btn:active {
    transform: scale(0.9);
    /* Reduce ligeramente el tamaño del botón cuando se hace clic */
}

/**-- ALERTAS --*/
.alerta {
    width: 95%;
    margin: 10px auto;
    padding: 12px;
    position: relative;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 15px
}

.alerta.amarilla:before,
.alerta.azul:before,
.alerta.gris:before,
.alerta.oscura:before,
.alerta.roja:before,
.alerta.verde:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    opacity: .5;
    font-size: 22px;
    margin-right: 10px
}

.alerta.gris {
    background-color: #ebebeb;
    border-left: 5px solid #6c6c6c;
    color: #6c6c6c !important;
}

.alerta.gris:before {
    border-color: #6c6c6c;
    color: #6c6c6c !important;
}

.alerta.verde {
    background-color: #a8f0c6;
    border-left: 5px solid #178344;
    color: #178344 !important;
}

.alerta.verde:before {
    content: "\f00c";
    border-color: #178344;
    color: #178344 !important;
}

.alerta.azul {
    background-color: #a3def7;
    border-left: 5px solid #0c798f;
    color: #0c798f !important;
}

.alerta.azul:before {
    content: "\f129";
    border-color: #0c798f;
    color: #0c798f !important;
}

.alerta.roja {
    background-color: #f7a7a3;
    border-left: 5px solid #8f130c;
    color: #8f130c !important;
}

.alerta.roja:before {
    content: "\f00d";
    border-color: #8f130c;
    color: #8f130c !important;
}

.alerta.amarilla {
    background-color: #ffd48a;
    border-left: 5px solid #8a5700;
    color: #8a5700 !important;
}

.alerta.amarilla:before {
    content: "\f071";
    border-color: #8a5700;
    color: #8a5700 !important;
}

.alerta.oscura {
    background-color: #363636;
    border-left: 5px solid #000;
    color: #ececec;
    color: #000 !important;
}

.alerta.oscura:before {
    content: "\f075";
    border-color: #000;
    color: #000 !important;
}

@media screen and (max-width:992px) {
    .alerta {
        width: 100%
    }
}

.primary {
    background-color: #007bff;
}

.primary:hover {
    background: #0b7dda;
}

.secondary {
    background-color: #e7e7e7;
    color: black !important;
}

.secondary:hover {
    background: #ddd;
}

.success {
    background-color: #04AA6D !important;
}

.success:hover {
    background-color: #46a049 !important;
}

.warning {
    background-color: #ff9800 !important;
}

.warning:hover {
    background: #e68a00 !important;
}

.danger {
    background-color: #f44336 !important;
}

.danger:hover {
    background: #da190b !important;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: transparent;
}

/* Tabla estilizada y responsive */
.responsive-table {
    width: 98%;
    margin: 0 auto;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--container-bg);
    color: var(--clr-general);
    box-shadow: var(--hover-shadow);
    transition: background-color 0.3s, color 0.3s;
}

.responsive-table td,
.responsive-table th {
    padding: 12px;
    border: 1px solid rgba(120, 120, 120, 0.3);
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.3s, color 0.3s;
}

.responsive-table tr:nth-child(even) {
    background-color: rgba(120, 120, 120, 0.05);
}

.responsive-table img {
    height: auto !important;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.responsive-table img:hover {
    transform: scale(1.1);
}

li.utils-desktop {
    display: block;
}

.utils-container {
    display: none;
}

ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
    background-color: #ffffff07;
}

ul.breadcrumb li {
    display: inline;
    font-size: 18px;
}

ul.breadcrumb li a {
    color: #07d;
    font-size: 14.5px;
    text-decoration: none;
}

ul.breadcrumb li i,
ul.breadcrumb li {
    font-size: 14.5px;
    color: var(--meta-color);
    text-decoration: none;
}

ul.breadcrumb li a:hover {
    color: #07d;
    text-decoration: underline;
}

.delimitador {
    width: 99%;
    margin: auto;
}

.delimitador .contenedor {
    height: 0px;
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%;
    /* Relación: 16/9 = 56.25% */
    position: relative;
}

.contenedor iframe {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0px;
    left: 0px;
}
.ad-label {
    position: relative;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 13px;
    padding: 2px 18px;
    border-radius: 0 0 3px 0;
    z-index: 10;
    pointer-events: none;
}

.ad-container {
    flex-direction: column;
    margin-top: 20px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* recorta el exceso */
}

.ad-container iframe {
    position: static !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100px !important; /* ajusta al alto del contenedor */
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px; /* Opcional: para mejor apariencia */
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0; /* Importante para que no se reduzcan */
}

.carousel-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Corregido traslate a translate */
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px; /* Corregido padding 10px */
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

.carousel-container button:hover {
    background: rgba(0, 0, 0, 0.7);
}

#prevBtn {
    left: 10px;
}

#nextBtn { /* Cambiado de netBtn a nextBtn */
    right: 10px;
}
/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1f1f1f;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-size: 0.95rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
}

.cookie-banner a {
    color: #4fc3f7;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
}

#accept-cookies {
    background-color: #1e88e5;
    color: #fff;
}

#accept-cookies:hover {
    background-color: #1565c0;
}

#decline-cookies {
    background-color: #555;
    color: #fff;
}

#decline-cookies:hover {
    background-color: #777;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    li.utils-desktop {
        display: none;
    }

    .utils-container {
        display: block;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr { 
        border: 1px solid rgba(120, 120, 120, 0.2);
        border-radius: 6px;
        overflow: hidden;
        background-color: var(--container-bg);
    }

    .responsive-table td {
        border: none;
        border-bottom: 1px solid rgba(120, 120, 120, 0.15);
        padding: 10px;
        text-align: center;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }
}

/**----  DISPOSITIVOS MÓVILES ----**/
@media (max-width: 992px) {

    .navbar {
        padding: 0 20px;
    }

    .menu-items {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--main-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
        transition: left 0.35s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .menu-items.active {
        left: 0;
    }

    .menu-items li {
        width: 100%;
        margin: 0;
    }

    .menu-items a,
    .menu-items button {
        width: 100%;
        padding: 16px 25px;
        font-size: 16px;
        border-radius: 0;
        margin: 2px 0;
    }

    .menu-items a:hover,
    .menu-items button:hover {
        transform: translateX(4px);
    }

    .menu-items li.utils-desktop {
        display: none;
    }

    .utils-container {
        display: flex;
    }

    .main-wrapper {
        flex-direction: column;
        width: 95%;
    }

    .main-article,
    .sidebar {
        flex: 1 1 100%;
        width: 100%;
    }

    .footer-container {
        display: flex;
        align-content: center;
        flex-direction: column;
        justify-content: center;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .responsive-table tr {
        animation: fadeIn 0.4s ease-in-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* ============================
   📱 RESPONSIVE – MOBILE FIRST
   ============================ */
@media (max-width: 768px) {
    .gn-container {
        padding: 10px !important;
    }
}
