@font-face {
    font-family: 'Modithorson';
    src: url('fonts/modithorson.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

body {
    background-color: #01090c;
    color: #fff;
}

/* FUNCIONALIDAD PARA CARGA */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    color: white;
    font-family: sans-serif;
    letter-spacing: 2px;
    min-height: 50vh;
    /* asegura espacio para el loader */
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    /* O el color dorado de tu logo */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* HEADER */
.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

/* LOGO */
.header-left {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    /* controla tamaño del logo */
    width: auto;
}

/* MENÚ CENTRADO */
.header-center {
    display: flex;
    justify-content: center;
    gap: 35px;
}

.header-center a {
    text-decoration: none;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    /* Un poco antes del máximo para no perder definición */
    letter-spacing: 0.5px;
    /* Un poco de espacio ayuda a que no se vea como una mancha */
    position: relative;
    -webkit-font-smoothing: antialiased;
    /* Mejora la definición en monitores Mac/HD */
}

/* pequeño hover elegante */
.header-center a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #25282c;
    transition: width .3s ease;
}

.header-center a:hover::after {
    width: 100%;
}

.header-center a.active::after {
    width: 100%;
}

/* BOTÓN DERECHA */
.header-right {
    display: flex;
    align-items: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    /* font-family: 'Modithorson', 'Segoe UI', system-ui, sans-serif; */
    font-size: 12px;
    cursor: pointer;
    transition: all .3s ease;

    font-weight: 800;
    /* Un poco antes del máximo para no perder definición */
    letter-spacing: 0.5px;
    /* Un poco de espacio ayuda a que no se vea como una mancha */
    -webkit-font-smoothing: antialiased;
    /* Mejora la definición en monitores Mac/HD */
    text-decoration: none !important;
}

.btn-outline:hover {
    background: #161b21;
    color: #fff;
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
    text-decoration: none;
}

/* TITULO */
.title {
    text-align: center;
    padding: 40px 0;
}

.title h1 {
    letter-spacing: 3px;
    font-weight: 300;
    font-family: 'Modithorson', 'Segoe UI', system-ui, sans-serif;
    font-size: 60px;
}

/* SLIDER */
.slider-wrapper {
    position: relative;
    margin: 60px auto;
    width: 85%;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* evita que se salga del layout */
}

.slider {
    display: flex;
    gap: 80.5px;
    margin: 0 auto;
    overflow-y: hidden;
    /* 👈 scroll horizontal */
    overflow-x: auto;
    scroll-behavior: smooth;
    /* suave */
    padding: 30px;
    padding-bottom: 40px;
    /* espacio para leyenda */
}

/* ocultar scrollbar feo (opcional) */
.slider::-webkit-scrollbar {
    height: 6px;
}

.slider::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 10px;
}

/* TARJETAS */
.card {
    width: 300px;
    height: 600px;
    min-width: 300px;
    min-height: 600px;
    /* ALTURA FIJA */
    background: #171c22;
    border-radius: 8px;
    overflow: visible;
    position: relative;
    /* necesario para el icono */
    display: flex;
    flex-direction: column;
    /* CLAVE */
    /* espacio entre imagen y contenido */
}

/* Imagen de la tarjeta */
.card-img {
    width: 100%;
    height: 120px;
    /* <-- CONTROLA EL TAMAÑO */
    object-fit: cover;
    /* <-- NO DEFORMA */
    display: block;

    border-radius: 8px;
}

.card .content {
    padding: 25px;
    flex: 1;
    /* ocupa espacio restante */
    overflow-y: auto;
    /* SCROLL */
    max-height: 400px;
    /* CONTROLA ALTURA DEL CONTENIDO */
}

.card .content::-webkit-scrollbar {
    width: 4px;
}

.card .content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 10px;
}

.card h3 {
    max-width: 80%;
    /* El título solo usará el 80% del ancho disponible */
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 900;
}

.card p {
    font-size: 14px;
    color: #ccc;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* =======================
   ICONO INFERIOR CARD
   ======================= */

.card-icon {
    position: absolute;
    bottom: 5px;
    /* sobresale de la card */
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.card-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* FLECHAS */
.arrow {
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.arrow.left {
    margin-right: 10px;
}

.arrow.right {
    margin-left: 10px;
}

/* FOOTER */
.footer {
    background: #01090e;
    padding: 0 40px 25px;
    position: relative;
    margin-top: 80px;
    margin-bottom: 50px;
}

/* CONTENEDOR */
.footer-inner {
    display: grid;
    grid-template-columns: 5fr auto 1fr;
    align-items: flex-end;
    /* CLAVE: todo abajo */
    min-height: 180px;
    max-width: 80%;
    margin: 0 auto;
}

/* IZQUIERDA */
.footer-left {
    color: #ffffff;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-meta {
    font-size: 14px;
    color: #cfcfcf;
    margin-bottom: 25px;
}

/* DIVISIÓN VERTICAL */
.footer-vertical {
    width: 1px;
    height: 110px;
    background: rgba(255, 255, 255, .4);
    margin: 0 15px;
}

/* DERECHA */
.footer-right {
    text-align: right;
    color: #ffffff;
    text-align: left;
}

.footer-right h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-right p {
    font-size: 12px;
    color: #cfcfcf;
    margin-bottom: 25px;
}

/* =======================
   ICONOS SOCIALES PNG
   ======================= */

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover opcional */
.social-icon:hover {
    transform: translateY(-2px);
    transition: 0.2s ease;
}

/* LÍNEA INFERIOR */
.footer-bottom-line {
    margin: auto;
    margin-top: 18px;
    height: 1px;
    background: rgba(255, 255, 255, .6);
    max-width: 80%;
}

/* TARJETA ACTIVA */
.card.active {
    outline: 2px solid rgba(255, 255, 255, .6);
    transform: translateY(-15px);
}

/* Leyenda solo para la card activa */
.card.active::after {
    content: "ESTAS LEYENDO...";
    position: absolute;
    bottom: -30px;
    /* debajo de la card */
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
    letter-spacing: 1px;
    color: rgba(255, .8);
    font-weight: 800;
    width: 100%;
    text-align: center;
}

/* VISOR */
.viewer {
    display: flex;
    justify-content: center;
    min-height: 600px;
}

.viewer-box {
    width: 85%;
    background: #171c22;
    /* gris oscuro */
    border-radius: 18px;
    /* bordes redondeados */
    overflow: hidden;
    /* recorte de imagen */
    border: 10px solid #161b21;
    border-top: 8px solid #161b21;
    /* Sobrescribe solo el de arriba */
}

/* Contenido inferior */
.viewer-content {
    padding: 15px 0px;
    text-align: left;
    /* texto a la izquierda */
}

.viewer-content h2 {
    font-size: 26px;
    max-width: 85%;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: bold;
}

.viewer-content p {
    font-size: 14px;
    max-width: 80%;
    line-height: 1.6;
    color: #cfcfcf;
}

.hidden-data {
    display: none;
}

.viewer-img {
    width: 100%;
    aspect-ratio: 21/9;
    /* más panorámica → menos altura */
    object-fit: cover;
    object-position: center;
}

.viewer-footer {
    /* border-top: 1px solid #2a2f36; */
    padding: 5px 5px;
    margin-bottom: 20px;
    font-size: 13px;
    color: white;
    display: flex;
    align-items: center;
    gap: 25px;
    letter-spacing: .5px;
}

.viewer-footer span:first-child {
    font-weight: 600;
    text-transform: uppercase;
}

#viewer-text p {
    margin-bottom: 12px;
}