/**
 * Proyecto: kioscos.com.ar
 * Hoja de Estilos Oficial - Paleta Rojo / Negro / Blanco - HERO GRID & TICKER
 * Autores: Gustavo & Gero
 */

:root {
    /* Paleta Oficial Rojo / Negro / Blanco */
    --brand-red: #dc2626;
    --brand-red-hover: #b91c1c;
    --brand-red-dark: #7f1d1d;
    
    --brand-black: #0f172a;
    --brand-black-light: #1e293b;
    --brand-black-dark: #020617;
    
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --border-subtle: #e2e8f0;
    --border-accent: #cbd5e1;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--brand-red-hover);
}

.container {
    max-width: 1380px; /* Ampliado desde 1200px para aprovechar el workspace */
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------------------- */
/* HEADER Y MENÚ (EFECTO STROKE FINO)                                         */
/* -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--brand-black);
    border-bottom: 4px solid var(--brand-red);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 85px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.main-nav {
    margin-left: auto;
    margin-right: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    background-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0.5px transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff;
    -webkit-text-stroke: 0.5px var(--brand-red);
    text-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.main-nav a:active {
    transform: scale(0.98);
}

/* -------------------------------------------------------------------------- */
/* BOTONES GLOBALES Y CTA EKIOSCOS                                            */
/* -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    font-weight: 900;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 1px solid var(--brand-red-dark);
    box-shadow: 0 4px 0 var(--brand-red-dark), 0 8px 10px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--brand-red-dark), 0 10px 15px rgba(0,0,0,0.3);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 transparent;
}

.header-cta {
    display: flex;
    align-items: center;
}

.cta-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.cta-link:hover {
    transform: scale(1.03);
}

.cta-img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.btn-cta-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    font-size: 0.65rem;
    line-height: 1.1;
    text-align: center;
}

.btn-cta-fallback strong {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------------------- */
/* MARQUESINA (NEWS TICKER)                                                   */
/* -------------------------------------------------------------------------- */
.news-ticker-wrap {
    background-color: var(--brand-black-light);
    border-bottom: 2px solid var(--brand-red-dark);
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
}

.ticker-label {
    background-color: var(--brand-red);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    letter-spacing: 0.5px;
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-scroll {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-anim 35s linear infinite;
}

.ticker-scroll:hover {
    animation-play-state: paused; /* Se detiene al pasar el mouse */
}

.ticker-scroll a {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 50px;
    transition: color 0.2s ease;
}

.ticker-scroll a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@keyframes ticker-anim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* -------------------------------------------------------------------------- */
/* HERO GRID ASIMÉTRICA                                                       */
/* -------------------------------------------------------------------------- */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin: 25px 0 35px 0;
    height: 480px;
}

.hero-main, .hero-sub-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-sub {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.hero-sub-item {
    flex: 1;
}

.hero-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.hero-main:hover .hero-item-bg, .hero-sub-item:hover .hero-item-bg {
    transform: scale(1.05);
}

.hero-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.3) 60%, transparent 100%);
    z-index: 2;
}

.hero-item-content {
    position: relative;
    z-index: 3;
    padding: 25px;
    width: 100%;
}

.hero-sub-item .hero-item-content {
    padding: 20px;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 8px;
}

.hero-sub-item .hero-title {
    font-size: 1.25rem;
}

.hero-title a {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-title a:hover {
    color: var(--brand-red);
}

/* -------------------------------------------------------------------------- */
/* BLOQUE INTRODUCTORIO (CITA)                                                */
/* -------------------------------------------------------------------------- */
.intro-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 5px solid var(--brand-red);
    border-radius: var(--radius-md);
    padding: 35px 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.intro-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--brand-black-light);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-cta-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.intro-cta-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------------------- */
/* TARJETAS DE NOTICIAS GENERALES (ESTILO OVERLAY)                            */
/* -------------------------------------------------------------------------- */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Columna principal flexible + Sidebar optimizada de 350px */
    gap: 35px;
    margin: 40px 0;
    align-items: start;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.card-post {
    position: relative;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 2px solid var(--brand-black);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    border-color: var(--brand-red);
}

.card-post-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.card-post:hover .card-post-bg {
    transform: scale(1.08);
}

.card-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.6) 40%, rgba(15,23,42,0.95) 100%);
    z-index: 2;
}

.card-post-content {
    position: relative;
    z-index: 3;
    padding: 25px;
    width: 100%;
}

.cat-pill {
    display: inline-block;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 3px 0 var(--brand-red-dark);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.cat-pill:hover {
    background: #ffffff;
    color: var(--brand-red);
    box-shadow: 0 3px 0 #cbd5e1;
}

.card-post-title {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 10px;
}

.card-post-title a {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.card-post-title a:hover {
    color: var(--brand-red);
}

.card-post-meta {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* -------------------------------------------------------------------------- */
/* SIDEBAR Y WIDGETS (CON TRAMADO Y CONTRASTE)                                */
/* -------------------------------------------------------------------------- */
.sidebar-box {
    background-color: #e2e8f0; 
    background-image: repeating-linear-gradient(
        45deg,
        rgba(220, 38, 38, 0.08), 
        rgba(220, 38, 38, 0.08) 1px,
        transparent 1px,
        transparent 12px
    );
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border: 2px solid var(--brand-black);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--brand-black);
    margin-bottom: 20px;
    border-bottom: 4px solid var(--brand-red);
    padding-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

a:hover .sidebar-title {
    color: var(--brand-red);
}

/* Tarjetas individuales de Sidebar (Consejos / Relacionadas) */
.sidebar-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
}

.sidebar-post-item img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.sidebar-post-item h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-black);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.sidebar-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: var(--brand-red);
}

.sidebar-post-item:hover h5 {
    color: var(--brand-red);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Botones de Categoría (Sidebar): Efecto Stroke Fino */
.btn-category-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    background-color: transparent;
    color: var(--brand-black);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0 10px;
    text-transform: uppercase;
    -webkit-text-stroke: 0.5px transparent;
    transition: all 0.3s ease;
}

.btn-category-sidebar:hover {
    color: var(--brand-black);
    -webkit-text-stroke: 0.5px var(--brand-red);
    text-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-category-sidebar:active {
    transform: scale(0.98);
}

/* -------------------------------------------------------------------------- */
/* BANNER EKIOSCOS SIDEBAR                                                    */
/* -------------------------------------------------------------------------- */
.ekioscos-banner {
    background: linear-gradient(135deg, var(--brand-black) 0%, #1e293b 100%);
    border: 3px solid var(--brand-red);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
    margin-bottom: 30px;
    text-align: center;
}

.ekioscos-banner h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.ekioscos-banner p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* FOOTER                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--brand-black);
    color: #cbd5e1;
    border-top: 5px solid var(--brand-red);
    padding: 50px 0 25px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 8px;
    display: inline-block;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5e1;
    font-weight: 600;
}

.footer-col a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-main {
        height: 350px;
    }
    .hero-sub-item {
        height: 250px;
    }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    .main-nav {
        margin: 0 auto;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}