/**
 * Theme Name:     Neve Child
 * Author:         ThemeIsle
 * Template:       neve
 * Text Domain:	   neve-child
 * Description:    Neve is a next-generation, ultra-fast WordPress theme designed for top performance, SEO, and Core Web Vitals. Its lightweight codebase and small size ensure minimal overhead and lightning-fast load times. Fully compatible with the block editor, popular page builders (Elementor, Bricks, Oxygen etc), and WooCommerce, it’s perfect for blogs, small businesses, agencies, portfolios, and online stores. With responsive design, multilingual translations, and easy customization options, Neve empowers you to create a future-proof, high-ranking online presence. Discover everything Neve has to offer and explore our powerful premium version at https://themeisle.com/themes/neve/.
 */
/* =========================
   ARTÍCULOS — INTRO HIGHLIGHT
========================= */

@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

.intro-highlight {
    background: linear-gradient(120deg, rgba(196,154,48,0.1), rgba(160,120,32,0.08));
    border-left: 4px solid var(--color-accent);
    padding: 20px;
    margin: 30px 0;
    border-radius: 6px;
    font-style: italic;
}

/* =========================
   TIMELINE
========================= */

.timeline {
    position: relative;
    margin: 50px 0;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #a07820, #c4532d);
    border-radius: 2px;
}

.tl-item {
    position: relative;
    padding: 18px 0 18px 18px;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a07820;
    border: 3px solid #fdfaf4;
    box-shadow: 0 0 0 1px #a07820;
}

.tl-era {
    font-family: "Jost", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c49a30;
    margin-bottom: 6px;
}

.tl-desc {
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    color: #5c4b3b;
    margin: 0;
}

.tl-item:hover .tl-desc {
    color: #3f3329;
    transition: 0.2s ease;
}

@media (max-width: 640px) {
    .timeline { padding-left: 26px; }
    .tl-item::before { left: -22px; }
}

/* =========================
   RESTO LIST (HISTORIA)
========================= */

.resto-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 40px 0;
    border-left: 2px solid #a07820;
    padding-left: 22px;
}

.resto-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e8dcc8;
    position: relative;
}

.resto-item:last-child { border-bottom: none; }

.resto-year {
    font-size: 26px;
    font-weight: 700;
    color: #c49a30;
    min-width: 70px;
    line-height: 1;
}

.resto-content { flex: 1; }

.resto-arch {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9b3a1e;
    margin-bottom: 6px;
}

.resto-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #5c4b3b;
    font-weight: 300;
}

/* =========================
   DATA CARD (FICHA TÉCNICA)
========================= */

.data-card {
    background: #f4ede0;
    border: 1px solid #d8c8a8;
    border-radius: 12px;
    padding: 28px;
    margin: 44px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.data-card-title {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: #9b3a1e;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8dcc8;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.data-item {
    background: #fdfaf4;
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    padding: 14px;
    transition: transform 0.2s ease;
}

.data-item:hover { transform: translateY(-2px); }

.data-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a6a56;
    margin-bottom: 4px;
}

.data-value {
    font-size: 15px;
    color: #3f3329;
    line-height: 1.4;
    font-weight: 400;
}

/* =========================
   ARCH FEATURE (ARQUITECTURA)
========================= */

.arch-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 40px 0;
}

.arch-item {
    background: #f5e8e0;
    border: 1px solid #e0c8be;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.25s ease;
}

.arch-item:hover {
    transform: translateY(-3px);
    background: #f7f0da;
}

.arch-item-icon {
    font-size: 22px;
    margin-bottom: 10px;
    display: block;
    color: #a07820;
}

.arch-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #9b3a1e;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.arch-item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #5c4b3b;
    font-weight: 300;
}

/* =========================
   FAQ
========================= */

.faq-container { margin: 40px 0; }

.faq-item {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e8dcc8);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    background: linear-gradient(90deg, #f7f0da 0%, #f5e8e0 100%);
    font-weight: 600;
    color: var(--color-dark, #3f3329);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: linear-gradient(90deg, #f5e8e0 0%, #f0dfd0 100%);
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 18px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
}

/* =========================
   FEATURE GRID
========================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.feature-card {
    background: linear-gradient(135deg, #f7f0da 0%, #f5e8e0 100%);
    border: 1px solid var(--color-border, #e8dcc8);
    padding: 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary, #9b3a1e);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text, #5c4b3b);
}

/* =========================
   CTA
========================= */

.cta {
    background: linear-gradient(135deg, #1f1a16, #2a211c);
    color: #fdfaf4;
    padding: 56px 40px;
    border-radius: 14px;
    margin: 64px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(196,154,48,0.18), transparent 70%);
    border-radius: 50%;
}

.cta h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fdfaf4;
}

.cta p {
    font-size: 16px;
    line-height: 1.7;
    color: #c8b898;
    margin: 0 auto 26px;
    max-width: 620px;
}

.cta .cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: #a07820;
    color: #1f1a16;
    border: none;
}

.cta .btn-secondary {
    background: transparent;
    border: 1px solid #c8b898;
    color: #c8b898;
}

.cta .btn-primary:hover  { background: #c49a30; }
.cta .btn-secondary:hover { border-color: #f7f0da; color: #f7f0da; }

/* =========================
   BLOCKQUOTE
========================= */


blockquote {
    font-style: italic;
    color: #555;
    border-left: 4px solid #0073aa;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

blockquote p {
    margin: 0;
    font-family: 'Patrick Hand', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    font-style: normal;
    text-align: right;
    font-family: 'Patrick Hand', sans-serif;
}

/* =========================
   IMÁGENES — SOMBRA Y HOVER
========================= */

.entry-content img {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.entry-content img:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* =========================
   CATEGORÍAS — GRANADA CONTAINER
========================= */

.granada-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.granada-container img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.granada-container .main-title,
.granada-container .section-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.granada-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.granada-container ul {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

.granada-container a { color: #007bff; text-decoration: none; }
.granada-container a:hover { text-decoration: underline; }

.granada-container .highlight-box {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* =========================
   TEXTO JUSTIFICADO — solo párrafos de contenido
========================= */

.entry-content p,
.post-content p,
.page-content p {
    text-align: justify;
}

/* =========================
   PÁGINAS DE ETIQUETAS (TAGS)
========================= */

/* Eliminados overrides agresivos de fondo, colores azules y h1/h2 —
   la plantilla tag.php tiene sus propios estilos con !important */

body.tag p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

body.tag ul {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

/* =========================
   IMÁGENES CENTRADAS EN MÓVIL
========================= */

@media screen and (max-width: 1024px) {
    .entry-content .wp-block-image,
    .post-content .wp-block-image,
    .page-content .wp-block-image {
        text-align: center !important;
    }

    .entry-content .wp-block-image img,
    .post-content .wp-block-image img,
    .page-content .wp-block-image img {
        display: inline-block !important;
        margin: 0 auto !important;
        height: auto !important;
    }

    .entry-content img,
    .post-content img,
    .page-content img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        height: auto !important;
    }
}

/* Imágenes máx 450px en móvil */
@media screen and (max-width: 1024px) {
    .entry-content img,
    .post-content img,
    .page-content img,
    .wp-block-image img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        height: auto;
        width: 100%;
        max-width: 450px;
    }
}

/* =========================
   CARDS PLUGIN + EXCERPTS
========================= */

.actividades-grid .actividad-card-widget,
.actividades-grid-widget .actividad-card-widget,
.excerpt-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.actividades-grid .actividad-card-widget .actividad-card-img-img,
.actividades-grid-widget .actividad-card-widget .actividad-card-img-img,
.excerpt-card .excerpt-image-wrap img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

.actividades-grid .actividad-card-widget .actividad-card-body,
.actividades-grid-widget .actividad-card-widget .actividad-card-body,
.excerpt-card .excerpt-content {
    flex: 1;
}

@media (max-width: 767px) {
    .actividades-grid .actividad-card-widget,
    .actividades-grid-widget .actividad-card-widget,
    .excerpt-card {
        display: block;
    }

    .actividades-grid .actividad-card-widget .actividad-card-img-img,
    .actividades-grid-widget .actividad-card-widget .actividad-card-img-img,
    .excerpt-card .excerpt-image-wrap img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }
}


    /* ====================================================
       CSS FOOTER MODERNO — Rincones de Granada / Neve
    ==================================================== */

    /* Ocultar el footer original de Neve si quedara algo */
    .neve-footer {
        display: none !important;
    }

    .footer-modern {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
        color: #ecf0f1 !important;
        margin-top: 60px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .footer-main {
        padding: 60px 0 40px 0 !important;
    }

    .footer-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 40px !important;
        margin-bottom: 40px !important;
    }

    /* Títulos */
    .footer-title {
        font-size: 24px !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        letter-spacing: -0.5px !important;
    }

    .footer-subtitle {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 20px !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        color: #00d4ff !important;
    }

    .footer-description {
        font-size: 14px !important;
        line-height: 1.8 !important;
        color: #bdc3c7 !important;
        margin-bottom: 25px !important;
    }

    /* Redes sociales */
    .social-links {
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .social-icon {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0, 212, 255, 0.1) !important;
        border: 1.5px solid rgba(0, 212, 255, 0.3) !important;
        border-radius: 50% !important;
        color: #00d4ff !important;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        text-decoration: none !important;
    }

    .social-icon:hover {
        background: rgba(0, 212, 255, 0.25) !important;
        border-color: #00d4ff !important;
        transform: translateY(-4px) !important;
        box-shadow: 0 8px 16px rgba(0, 212, 255, 0.2) !important;
        color: #00d4ff !important;
    }

    /* Listas de enlaces */
    .footer-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-list li {
        margin-bottom: 12px !important;
    }

    .footer-list a {
        color: #bdc3c7 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        padding-bottom: 2px !important;
    }

    .footer-list a:hover {
        color: #00d4ff !important;
    }

    .footer-list a::after {
        content: '' !important;
        position: absolute !important;
        bottom: -2px !important;
        left: 0 !important;
        width: 0 !important;
        height: 2px !important;
        background: linear-gradient(90deg, #00d4ff, #0099cc) !important;
        transition: width 0.3s ease !important;
    }

    .footer-list a:hover::after {
        width: 100% !important;
    }

    /* Divisor */
    .footer-divider {
        max-width: 1200px !important;
        margin: 0 auto 30px auto !important;
        padding: 0 20px !important;
        height: 1px !important;
        background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent) !important;
    }

    /* Footer inferior */
    .footer-bottom {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .footer-copyright {
        font-size: 13px !important;
        color: #95a5a6 !important;
    }

    .footer-copyright p {
        margin: 0 !important;
    }

    /* Patrocinadores */
    .footer-sponsors {
        text-align: right !important;
    }

    .sponsors-label {
        font-size: 12px !important;
        color: #7f8c8d !important;
        margin: 0 0 10px 0 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .sponsors-buttons {
        display: flex !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    .sponsor-btn {
        padding: 8px 16px !important;
        background: rgba(0, 212, 255, 0.1) !important;
        border: 1px solid rgba(0, 212, 255, 0.3) !important;
        color: #00d4ff !important;
        text-decoration: none !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        border-radius: 24px !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
    }

    .sponsor-btn:hover {
        background: rgba(0, 212, 255, 0.2) !important;
        border-color: #00d4ff !important;
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15) !important;
        transform: translateY(-2px) !important;
        color: #00d4ff !important;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .footer-container {
            grid-template-columns: 1fr !important;
            gap: 30px !important;
        }

        .footer-main {
            padding: 40px 0 30px 0 !important;
        }

        .footer-title {
            font-size: 20px !important;
        }

        .footer-bottom {
            flex-direction: column !important;
            text-align: center !important;
        }

        .footer-sponsors {
            text-align: center !important;
        }

        .sponsors-buttons {
            justify-content: center !important;
        }

        .social-links {
            justify-content: center !important;
        }
    }

    @media (max-width: 480px) {
        .footer-container {
            gap: 20px !important;
        }

        .footer-main {
            padding: 30px 0 20px 0 !important;
        }

        .footer-title {
            font-size: 18px !important;
        }

        .footer-subtitle {
            font-size: 14px !important;
        }

        .sponsor-btn {
            font-size: 11px !important;
            padding: 6px 12px !important;
        }

        .social-icon {
            width: 40px !important;
            height: 40px !important;
        }
    }

/* =========================================================
   EXTRA para category.php — pegar al final de style.css
   El resto de estilos de las cards ya los da el plugin UAG
   ========================================================= */

/* ── Cabecera de categoría ──────────────────────────────── */
.rg-cat-main { background: #f7f5f0; }

.rg-cat-header {
    background: #3d6b35;
    color: #fff;
    padding: 3rem 1.25rem 2.5rem;
}
.rg-cat-header__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.rg-cat-header__eyebrow {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
}
.rg-cat-header__titulo {
    margin: 0 0 .6rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
}
.rg-cat-header__desc {
    margin: 0 0 .9rem;
    color: rgba(255,255,255,.82);
    max-width: 60ch;
}
.rg-cat-header__count {
    display: inline-block;
    font-size: .8rem;
    background: rgba(255,255,255,.18);
    border-radius: 20px;
    padding: .2rem .75rem;
    color: #fff;
}

.rg-cat-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

/* ── Imagen CUADRADA (sobreescribe el 16/9 del plugin) ──── */
.uag-card__imagen-wrap--cuadrado {
    display: block;
    position: relative;
    width: 100%;
    height: 0 !important;
    padding-top: 100% !important;   /* 1:1 cuadrado */
    overflow: hidden;
    flex-shrink: 0;
}
.uag-card__imagen-wrap--cuadrado .uag-card__imagen {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
}

/* =============================================
   estilos eventos
   ============================================= */