/* =============================================
   STYLE7.CSS - Versión Final para Noticias
   Una tarjeta debajo de la otra en PC (como entrevistas)
   ============================================= */

:root {
    --primary: #c1121f;
    --dark: #212529;
    --card-bg: #1e1e1e;
    --border: #333;
    --text: #e0e0e0;
    --muted: #bbb;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #0f0f0f;
    background: black;
    background-repeat: round;
    color: var(--text);
    line-height: 1.6;
}

/* ==================== HEADER ==================== */
header {
    background: var(--dark);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    background: var(--primary);
    color: white;
}

/* Menú hamburguesa - Solo visible en móviles */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==================== GRID DE NOTICIAS - UNA DEBAJO DE LA OTRA EN PC ==================== */
.quotes-grid {
    display: grid;
    grid-template-columns: 1fr;           /* Una sola columna en PC */
    gap: 2.2rem;
    max-width: 1000px;                    /* Ancho más moderado como en entrevistas */
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* Tarjetas */
.quote-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.quote-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}

.size-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.size-btn {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    background: #e63946;
    transform: scale(1.12);
}

.quote-icon {
    font-size: 3.8rem;
    opacity: 0.12;
    position: absolute;
    top: 22px;
    left: 25px;
    line-height: 1;
    pointer-events: none;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.author-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.author-info h4 {
    margin: 0;
    color: white;
    font-size: 1.35rem;
    line-height: 1.3;
}

.author-info p.card-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

/* Contenido contraído por defecto */
.card-content {
    display: none;
}

.quote-card:not(.collapsed) .card-content {
    display: block;
    animation: fadeInContent 0.4s ease forwards;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Texto */
.quote-text {
    font-size: 1.05rem;
    line-height: 1.68;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.quote-text strong {
    color: #ff4d4d;
}

/* Imágenes */
.img-single img {
    width: 100%;
    border-radius: 8px;
    margin: 1.2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Meta */
.quote-card .img-single.last h5 {
    color: #888;
    font-size: 0.92rem;
    text-align: center;
    margin-top: 15px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1e1e1e;
        padding: 1rem 0;
        border-top: 1px solid #333;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    nav ul.show {
        display: flex;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 0 1rem;
    }

    .quote-card {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .quote-card {
        padding: 1.2rem;
    }
}