/* ==========================================================================
   INTER-TOROS · CSS MAESTRO
   Archivo: assets/css/estilos.css
   Orden: base · barra superior · cabezal · menú · lo más leído · contenido ·
          notas · slider · nota completa · barra lateral · pie · paginación ·
          responsivo (tableta y celular)
   ========================================================================== */

/* ---------- Base ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    background-color: #f4f4f4;
    color: #222;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
img {
    max-width: 100%;
}

/* ---------- Barra superior ---------- */
.taurine-header {
    background: #1a1a1a;
    width: 100%;
}
.top-bar-info {
    background: #000;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #aaa;
    border-bottom: 1px solid #222;
}
.top-social span {
    margin-left: 10px;
    cursor: pointer;
}

/* ==========================================================================
   CABEZAL · YouTube · Logo · Inter-Toros TV
   En 1920 px: 300 / 1320 / 300 × 400 px, y se escala en proporción.
   ========================================================================== */
.hdr-grid {
    display: grid;
    grid-template-columns: 15.625% 68.75% 15.625%;
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 1920 / 400;
    margin: 15px auto;
    background: #0b0b0b;
}

/* Banner central (recorte aprobado) */
.hdr-logo {
    display: block;
    overflow: hidden;
    background: #000;
}
.hdr-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    display: block;
}

/* Bloques laterales */
.hdr-box {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    container-type: size;
    isolation: isolate;
}
.hdr-yt {
    background:
        radial-gradient(circle at 50% 38%, rgba(200, 24, 24, 0.55) 0%, rgba(200, 24, 24, 0) 58%),
        linear-gradient(165deg, #240404 0%, #0c0c0c 75%);
}
.hdr-tv {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
        radial-gradient(circle at 50% 40%, rgba(201, 162, 74, 0.28) 0%, rgba(201, 162, 74, 0) 60%),
        linear-gradient(195deg, #3d0808 0%, #140303 75%);
}

/* Marco dorado interior */
.hdr-box::before {
    content: "";
    position: absolute;
    inset: 3.5cqw;
    border: 1px solid rgba(201, 162, 74, 0.45);
    outline: 1px solid rgba(201, 162, 74, 0.15);
    outline-offset: 2.2cqw;
    pointer-events: none;
    z-index: 1;
    transition: border-color 0.3s ease;
}

/* Destello al pasar el mouse */
.hdr-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    transform: skewX(-18deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 2;
}
.hdr-box:hover::after {
    left: 130%;
}
.hdr-box:hover::before {
    border-color: rgba(232, 200, 119, 0.9);
}

.hdr-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5cqh;
    padding: 9cqh 9cqw;
    text-align: center;
}

/* "CANAL OFICIAL" */
.hdr-kicker {
    display: flex;
    align-items: center;
    gap: 3cqw;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 11px;
    font-size: 4.6cqw;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #e8c877;
}
.hdr-kicker::before,
.hdr-kicker::after {
    content: "";
    width: 7cqw;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

/* "EN VIVO" con punto que late */
.hdr-vivo {
    display: inline-flex;
    align-items: center;
    gap: 2.5cqw;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 11px;
    font-size: 4.6cqw;
    letter-spacing: 0.2em;
    color: #fff;
    background: rgba(200, 24, 24, 0.92);
    padding: 1.6cqw 4.5cqw;
    border-radius: 99px;
    box-shadow: 0 0 14px rgba(200, 24, 24, 0.6);
}
.hdr-vivo-punto {
    width: 2.6cqw;
    height: 2.6cqw;
    border-radius: 50%;
    background: #fff;
    animation: hdrLatido 1.4s ease-in-out infinite;
}
@keyframes hdrLatido {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.25; transform: scale(0.7); }
}

/* Botón de play */
.hdr-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 32cqw;
    height: 32cqw;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff4a3d 0%, #b3140f 60%, #6e0806 100%);
    box-shadow:
        0 0 0 1.2cqw rgba(201, 162, 74, 0.55),
        0 6px 25px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(220, 30, 30, 0.45);
    transition: transform 0.35s ease;
}
.hdr-play svg {
    width: 45%;
    height: 45%;
    margin-left: 8%;
    fill: #fff;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}
.hdr-play::before,
.hdr-play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(232, 200, 119, 0.6);
    animation: hdrOnda 2.6s ease-out infinite;
}
.hdr-play::after {
    animation-delay: 1.3s;
}
@keyframes hdrOnda {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
.hdr-box:hover .hdr-play {
    transform: scale(1.08);
}

/* Televisor */
.hdr-tele {
    width: 38cqw;
    color: #e8c877;
    filter: drop-shadow(0 0 10px rgba(232, 200, 119, 0.45));
    transition: transform 0.35s ease;
}
.hdr-tele svg {
    display: block;
    width: 100%;
    height: auto;
}
.hdr-tele .pantalla {
    fill: rgba(232, 200, 119, 0.16);
    animation: hdrParpadeo 3.2s infinite;
}
.hdr-tele .play-mini {
    fill: #e8c877;
    stroke: none;
}
@keyframes hdrParpadeo {
    0%, 46%, 54%, 100% { fill-opacity: 1; }
    50%                { fill-opacity: 0.35; }
}
.hdr-box:hover .hdr-tele {
    transform: scale(1.08);
}

/* "INTER-TOROS" */
.hdr-titulo {
    display: block;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 900;
    font-size: 22px;
    font-size: 8.6cqw;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 0, 0, 0.6);
}
.hdr-titulo small {
    display: block;
    margin-top: 1.8cqw;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 18px;
    font-size: 7cqw;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg, #f6e3a1 0%, #c9a24a 60%, #8a6a22 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}
.hdr-tv .hdr-titulo small {
    font-family: 'Cinzel', Georgia, serif;
    font-style: normal;
    font-weight: 900;
    font-size: 30px;
    font-size: 12cqw;
    letter-spacing: 0.25em;
    margin-right: -0.25em;
}

/* Botón inferior */
.hdr-btn {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 12px;
    font-size: 4.8cqw;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #d63a2b 0%, #9e1a10 100%);
    padding: 3cqw 7cqw;
    border: 1px solid rgba(232, 200, 119, 0.6);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.hdr-box:hover .hdr-btn {
    background: linear-gradient(180deg, #e8c877 0%, #b88f32 100%);
    color: #1a0000;
    transform: translateY(-2px);
}

/* ---------- Menú principal ---------- */
.taurine-nav {
    background: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 2px solid #c0392b;
}
.taurine-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.taurine-nav li a {
    display: block;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}
.taurine-nav li a:hover,
.taurine-nav li a.active {
    color: #fff;
    background: #c0392b;
}

/* ---------- Lo más leído ---------- */
.top-read-bar {
    background: #ffffff;
    padding: 18px 25px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.top-read-container {
    max-width: 1650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}
.top-read-title {
    flex-shrink: 0;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    color: #111;
}
.top-read-title span.red-word {
    display: block;
    color: #c0392b;
    font-size: 22px;
}
.top-read-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}
.t-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.t-item span.huge-num {
    font-size: 52px;
    font-weight: 300;
    color: #c0392b;
    font-family: Georgia, serif;
    line-height: 1;
}
.t-item span.item-text {
    font-size: 13px;
    color: #222;
}

/* ---------- Contenedor principal ---------- */
.main-container {
    max-width: 1650px;
    margin: 20px auto;
    padding: 0 15px;
}
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
}
.posts-column,
.single-article-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 0;
}
.category-header-title {
    font-size: 24px;
    color: #111;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c0392b;
    text-transform: uppercase;
}
.aviso-sistema {
    background: #fff3f3;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}
.aviso-vista-previa {
    background: #fff8e1;
    border: 1px solid #f0b400;
    color: #7a5a00;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}
.mensaje-vacio {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* ---------- Tarjetas de notas ---------- */
.news-row-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 25px;
    padding: 25px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.row-thumb {
    width: 320px;
    height: 210px;
    background: #ddd;
    border-radius: 3px;
    flex-shrink: 0;
    overflow: hidden;
}
.row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.row-content {
    flex-grow: 1;
    min-width: 0;
}
.tag-cat {
    font-size: 11px;
    color: #c0392b;
    font-weight: bold;
    text-transform: uppercase;
}
.row-content h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 8px 0 10px 0;
}
.row-content h3 a {
    color: #111;
    text-decoration: none;
}
.row-content h3 a:hover {
    color: #c0392b;
}
.row-meta-inline {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}
.row-content p.drop-cap-text::first-letter,
.single-article-body p:first-of-type::first-letter {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 58px;
    float: left;
    line-height: 0.7;
    padding-right: 12px;
    padding-top: 6px;
    color: #c0392b;
}
.row-content p.drop-cap-text {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}
.btn-leer-mas {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 9px 18px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}
.btn-leer-mas:hover {
    background: #a93226;
}
.row-bottom-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

/* ---------- Slider automático ---------- */
.slider-destacadas-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}
.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}
.slider-item {
    min-width: 100%;
}
.slider-item .news-row-card {
    margin-bottom: 0;
}

/* ---------- Nota completa ---------- */
.single-article-title {
    text-align: center;
    font-size: 32px;
    line-height: 1.2;
    color: #111;
    margin-bottom: 20px;
    font-weight: bold;
}
.single-article-meta {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.single-article-img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 25px;
}
.single-article-body {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}
.single-article-body p {
    margin-bottom: 20px;
}
.single-article-body h2 {
    font-size: 22px;
    margin: 25px 0 12px;
    color: #111;
}
.single-article-body img,
.single-article-body iframe,
.single-article-body video {
    max-width: 100%;
    height: auto;
}
.single-article-volver {
    margin-top: 40px;
}

/* ---------- Barra lateral ---------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.sidebar-promo-box,
.widget {
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.sidebar-promo-marca {
    font-weight: bold;
    color: #c0392b;
    margin-top: 10px;
}

/* ---------- Pie de página ---------- */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 12px;
}
.footer-container {
    max-width: 1650px;
    margin: 0 auto;
}
.footer-brand h2 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}
.footer-brand span {
    color: #c0392b;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 15px 0;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
}
.footer-links a:hover {
    color: #fff;
}

/* ---------- Paginación ---------- */
.paginacion {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding: 15px;
}
.paginacion a,
.paginacion span {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}
.paginacion a:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}
.paginacion .active {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

/* ---------- Laptop ---------- */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 20px;
    }
    .row-thumb {
        width: 260px;
        height: 175px;
    }
}

/* ---------- Tableta: barra lateral abajo ---------- */
@media (max-width: 1000px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .top-read-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Cabezal en tableta y celular: banner arriba, bloques abajo ---------- */
@media (max-width: 900px) {
    .hdr-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo logo"
            "yt   tv";
        aspect-ratio: auto;
        margin: 0 auto;
    }
    .hdr-logo {
        grid-area: logo;
        aspect-ratio: 1320 / 400;
    }
    .hdr-yt {
        grid-area: yt;
        height: 225px;
    }
    .hdr-tv {
        grid-area: tv;
        height: 225px;
    }
}

/* ---------- Celular ---------- */
@media (max-width: 768px) {

    /* Barra superior: solo fecha y redes */
    .top-bar-info {
        padding: 7px 12px;
        font-size: 12px;
    }
    .top-frase {
        display: none;
    }
    .top-social span {
        margin-left: 8px;
    }

    /* Menú: una sola fila que se desliza con el dedo */
    .taurine-nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .taurine-nav ul::-webkit-scrollbar {
        display: none;
    }
    .taurine-nav li a {
        padding: 13px 15px;
        font-size: 13px;
    }

    /* Lo más leído: tarjetas que se deslizan */
    .top-read-bar {
        padding: 14px 0 14px 12px;
    }
    .top-read-container {
        gap: 12px;
    }
    .top-read-title {
        font-size: 11px;
    }
    .top-read-title span.red-word {
        font-size: 17px;
    }
    .top-read-items {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-right: 12px;
        scrollbar-width: none;
    }
    .top-read-items::-webkit-scrollbar {
        display: none;
    }
    .t-item {
        flex: 0 0 78%;
        scroll-snap-align: start;
        gap: 10px;
    }
    .t-item span.huge-num {
        font-size: 38px;
    }

    /* Contenido */
    .main-container {
        margin: 12px auto;
        padding: 0 10px;
    }
    .posts-column,
    .single-article-wrapper {
        padding: 15px;
    }
    .category-header-title {
        font-size: 19px;
        margin-bottom: 15px;
    }

    /* Tarjetas: imagen arriba a todo lo ancho */
    .news-row-card {
        flex-direction: column;
        gap: 12px;
        padding: 0 0 15px 0;
        margin-bottom: 18px;
        box-shadow: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }
    .row-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .row-content h3 {
        font-size: 19px;
    }
    .row-content p.drop-cap-text {
        font-size: 15px;
        text-align: left;
    }
    .row-content p.drop-cap-text::first-letter,
    .single-article-body p:first-of-type::first-letter {
        font-size: 46px;
        padding-right: 8px;
    }
    .row-bottom-bar {
        justify-content: flex-start;
    }
    .btn-leer-mas {
        padding: 11px 18px;
    }

    /* Nota completa */
    .single-article-title {
        font-size: 24px;
        text-align: left;
    }
    .single-article-meta {
        text-align: left;
    }
    .single-article-body {
        font-size: 17px;
        line-height: 1.7;
        text-align: left;
    }

    /* Pie */
    .site-footer {
        padding: 25px 15px;
        margin-top: 25px;
    }
}

/* ---------- Quien prefiera menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .hdr-play::before,
    .hdr-play::after,
    .hdr-vivo-punto,
    .hdr-tele .pantalla {
        animation: none;
    }
    .hdr-box::after {
        display: none;
    }
    .slider-track {
        transition: none;
    }
}
