/*
Theme Name: Simplest
Theme URI: https://example.com/simplest
Author: Tu Nombre
Author URI: https://example.com
Description: Tema médico minimalista inspirado en RadVasc Medical. Diseño profesional y moderno con tarjetas de blog responsive.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simplest
*/

/* ===========================================================
   IMPORTANTE
   -----------------------------------------------------------
   - Si tu tema YA tiene un style.css con su propia cabecera,
     NO dupliques el bloque de comentario superior: copia solo
     desde la sección "1. Variables de marca" hacia abajo.
   - La tipografía Poppins se carga desde functions.php con
     wp_enqueue_style() (no con @import) para mejor rendimiento.
=========================================================== */


/* ===========================================================
   1. Variables de marca (paleta RadVasc)
=========================================================== */
:root {
    --rv-title:        #002d56; /* Títulos y color principal de botones */
    --rv-text:         #436788; /* Párrafos / cuerpo de texto           */
    --rv-btn-bg:       #002d56; /* Fondo de botones                     */
    --rv-btn-text:     #ffffff; /* Texto de botones                     */
    --rv-bg:           #f4f7fb; /* Fondo general suave                  */
    --rv-card-bg:      #ffffff; /* Fondo de las tarjetas                */
    --rv-border:       #e4ecf5; /* Bordes sutiles                       */
    --rv-accent:       #1c5d96; /* Acento secundario (categoría/fecha)  */
    --rv-shadow:       0 8px 28px rgba(0, 45, 86, 0.08);
    --rv-shadow-hover: 0 18px 44px rgba(0, 45, 86, 0.16);
    --rv-radius:       18px;
    --rv-transition:   all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===========================================================
   2. Base
=========================================================== */
.rv-blog,
.rv-blog * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rv-blog {
    font-family: "Poppins", sans-serif;
    background: var(--rv-bg);
    color: var(--rv-text);
    line-height: 1.65;
    padding: 64px 24px 88px;
    -webkit-font-smoothing: antialiased;
}

.rv-container {
    max-width: 1180px;
    margin: 0 auto;
}

/* ===========================================================
   3. Encabezado del blog
=========================================================== */
.rv-blog__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.rv-blog__eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rv-accent);
    margin-bottom: 14px;
}

.rv-blog__title {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rv-title);
    margin-bottom: 16px;
}

.rv-blog__subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--rv-text);
}

/* ===========================================================
   4. Grid responsive de tarjetas
=========================================================== */
.rv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 32px;
}

/* ===========================================================
   5. Tarjeta (card)
=========================================================== */
.rv-card {
    display: flex;
    flex-direction: column;
    background: var(--rv-card-bg);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    overflow: hidden;
    box-shadow: var(--rv-shadow);
    transition: var(--rv-transition);
    height: 100%;
}

/* Efecto hover suave */
.rv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--rv-shadow-hover);
    border-color: #d4e2f1;
}

/* --- Imagen destacada --- */
.rv-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f0f9, #d7e6f4);
}

.rv-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rv-card:hover .rv-card__media img {
    transform: scale(1.06);
}

/* Placeholder cuando no hay imagen destacada */
.rv-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rv-accent);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.55;
}

/* --- Cuerpo de la tarjeta --- */
.rv-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 26px 26px 28px;
}

/* Meta: fecha + categoría */
.rv-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 500;
}

.rv-card__date {
    color: var(--rv-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

.rv-card__category {
    display: inline-block;
    background: rgba(0, 45, 86, 0.07);
    color: var(--rv-title);
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: var(--rv-transition);
}

.rv-card__category:hover {
    background: var(--rv-title);
    color: #fff;
}

/* Título del artículo */
.rv-card__title {
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
}

.rv-card__title a {
    color: var(--rv-title);
    text-decoration: none;
    transition: var(--rv-transition);
}

.rv-card__title a:hover {
    color: var(--rv-accent);
}

/* Extracto */
.rv-card__excerpt {
    font-size: 0.96rem;
    color: var(--rv-text);
    margin-bottom: 22px;
    flex: 1 1 auto;
}

/* --- Botón Read More --- */
.rv-card__readmore {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rv-btn-bg);
    color: var(--rv-btn-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 999px;
    transition: var(--rv-transition);
    box-shadow: 0 6px 16px rgba(0, 45, 86, 0.18);
}

.rv-card__readmore svg {
    transition: transform 0.3s ease;
}

.rv-card__readmore:hover {
    background: var(--rv-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 45, 86, 0.28);
}

.rv-card__readmore:hover svg {
    transform: translateX(4px);
}

.rv-card__readmore:focus-visible {
    outline: 3px solid rgba(28, 93, 150, 0.45);
    outline-offset: 2px;
}

/* ===========================================================
   6. Estado vacío (sin entradas)
=========================================================== */
.rv-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--rv-card-bg);
    border-radius: var(--rv-radius);
    box-shadow: var(--rv-shadow);
}

.rv-empty h2 {
    color: var(--rv-title);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===========================================================
   7. Paginación
=========================================================== */
.rv-pagination {
    margin-top: 56px;
    text-align: center;
}

.rv-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    margin: 0 4px;
    border-radius: 12px;
    background: var(--rv-card-bg);
    border: 1px solid var(--rv-border);
    color: var(--rv-title);
    font-weight: 600;
    text-decoration: none;
    transition: var(--rv-transition);
}

.rv-pagination .page-numbers:hover,
.rv-pagination .page-numbers.current {
    background: var(--rv-btn-bg);
    color: var(--rv-btn-text);
    border-color: var(--rv-btn-bg);
}

/* ===========================================================
   8. Responsive (tablet / móvil)
=========================================================== */
@media (max-width: 768px) {
    .rv-blog {
        padding: 44px 18px 64px;
    }
    .rv-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .rv-grid {
        grid-template-columns: 1fr;
    }
    .rv-card__body {
        padding: 22px 20px 24px;
    }
}