/*
Theme Name:   Jannah Child - Virgen de la Cuesta
Theme URI:    https://virgendelacuesta.es
Description:  Tema hijo de Jannah con portada personalizada para virgendelacuesta.es
Author:       Virgen de la Cuesta
Version:      1.0.0
Template:     jannah
Text Domain:  jannah-child
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* =========================================================
   BANNER DE CABECERA
   ========================================================= */
.tie-header-image {
    position: relative;
    overflow: hidden;
}

.tie-header-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.tie-header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.72) 0%,
        rgba(255,255,255,0.35) 40%,
        rgba(0,0,0,0.0) 100%);
    pointer-events: none;
}

.site-title,
.tie-header-image .site-title a {
    font-family: 'Cinzel', serif !important;
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    color: #1a2e1a !important;
    letter-spacing: 0.03em;
    text-shadow: none !important;
}

.site-description {
    font-family: 'Cinzel', serif !important;
    font-size: 0.72rem !important;
    color: #2d5a3d !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* =========================================================
   PORTADA — HERO
   ========================================================= */
.vdc-hero {
    background: url('https://virgendelacuesta.es/wp-content/uploads/2026/05/Captura-de-pantalla-2026-05-10-a-las-0.21.37-scaled.png') center center / cover no-repeat;
    border-radius: 12px;
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
}

.vdc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 15, 0.55);
    border-radius: 12px;
    pointer-events: none;
}

.vdc-hero > * {
    position: relative;
    z-index: 1;
}

.vdc-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.vdc-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.vdc-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* =========================================================
   CONTADOR
   ========================================================= */
.vdc-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.vdc-count-box {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 4px;
    padding: 14px 22px;
    min-width: 80px;
    text-align: center;
}

.vdc-count-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.vdc-count-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   BOTÓN CTA
   ========================================================= */
.vdc-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #1a3a2a !important;
    border-radius: 24px;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.vdc-cta-btn:hover {
    opacity: 0.88;
    color: #1a3a2a !important;
}

/* =========================================================
   TARJETAS DE INFO
   ========================================================= */
.vdc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 2rem;
}

.vdc-info-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.vdc-info-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.vdc-info-icon {
    font-size: 1.8rem;
    color: #2d5a3d;
    margin-bottom: 0.6rem;
    display: block;
}

.vdc-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.vdc-info-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* =========================================================
   SECCIÓN LEYENDA
   ========================================================= */
.vdc-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem;
}

.vdc-legend-box {
    background: #f7f9f7;
    border-left: 4px solid #2d5a3d;
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.vdc-legend-box p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin: 0;
}

/* =========================================================
   GRID DE POSTS Y CATEGORÍAS
   ========================================================= */
.vdc-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 2rem;
}

.vdc-post-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    transition: box-shadow 0.2s;
}

.vdc-post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.vdc-post-thumb {
    height: 120px;
    overflow: hidden;
    background: #e1f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vdc-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vdc-post-body {
    padding: 12px;
}

.vdc-post-year {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
}

.vdc-post-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

/* =========================================================
   REDES SOCIALES
   ========================================================= */
.vdc-social-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.vdc-social-label {
    font-size: 13px;
    color: #666;
}

.vdc-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    color: #444;
    background: #fff;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s;
}

.vdc-social-btn:hover {
    background: #f2f2f2;
    color: #1a3a2a !important;
    border-color: #bbb;
}

/* =========================================================
   RESPONSIVE MÓVIL
   ========================================================= */
@media (max-width: 600px) {
    .vdc-hero {
        padding: 2.5rem 1.25rem 2rem;
    }
    .vdc-hero h1 {
        font-size: 1.8rem;
    }
    .vdc-count-box {
        min-width: 64px;
        padding: 10px 14px;
    }
    .vdc-count-num {
        font-size: 1.5rem;
    }
}