/* =========================================================
   VBF - Hoja de estilos principal
   Autor: Víctor Manuel Baños Fortes
   ========================================================= */


/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
    --color-primary:      #1E88E5;
    --color-primary-dark: #1976D2;
    --color-accent:       #0D47A1;
    --color-bg:           #E3F2FD;
    --color-footer:       #198bdd;
    --color-text:         #333;
    --color-muted:        #555;

    --btn-gradient: linear-gradient(rgb(30, 158, 255), rgb(21, 116, 186));
    --btn-shadow:
        rgb(13, 63, 92)          0px 8px 0px 0px,
        rgba(0, 0, 0, 0.3)       0px 8px 15px 0px,
        rgba(255, 255, 255, 0.3) 0px 1px 0px 0px inset;
    --btn-shadow-active:
        rgb(13, 63, 92)          0px 3px 0px,
        rgba(0, 0, 0, 0.2)       0px 3px 8px,
        rgba(255, 255, 255, 0.2) 0px 1px 0px inset;
    --btn-text-shadow:
        rgb(232, 232, 232) 0px 0px 10px,
        rgb(208, 208, 208) 0px 0px 20px,
        rgb(192, 192, 192) 0px 0px 30px,
        rgb(176, 176, 176) 0px 0px 40px,
        rgba(232, 232, 232, 0.8) 0px 0px 8px;
}


/* =========================================================
   RESET Y ESTILOS BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0 0 60px; /* espacio para el footer fijo */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h2 {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}


/* =========================================================
   CONTENEDOR GENÉRICO
   ========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}


/* =========================================================
   HEADER
   ========================================================= */
header {
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
}

header img {
    width: 160px;
    flex-shrink: 0;
}

header h1 {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    margin: 0 0 6px;
}

header p {
    margin: 0;
    font-size: clamp(0.85rem, 3vw, 1rem);
}


/* =========================================================
   MENÚ LATERAL — escritorio: bloque unificado, fijo, compacto
   ========================================================= */
.side-menu {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--color-primary-dark);
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.side-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.2;
    width: 70px;
    height: 70px;
    padding: 6px;
    text-align: center;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}

.side-menu a:last-child {
    border-bottom: none;
}

.side-menu a:hover {
    background: var(--color-primary);
}

/* Botón hamburguesa: oculto en escritorio */
.menu-toggle {
    display: none;
}


/* =========================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================= */
nav.nav-principal {
    background-color: var(--color-primary-dark);
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

nav.nav-principal a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--btn-gradient);
    box-shadow: var(--btn-shadow);
    font-size: 14px;
    cursor: pointer;
    transition: text-shadow 0.2s ease-out;
    position: relative;
    white-space: nowrap;
}

nav.nav-principal a:hover { text-shadow: var(--btn-text-shadow); }
nav.nav-principal a:active { box-shadow: var(--btn-shadow-active); top: 5px; }


/* =========================================================
   BOTÓN WHATSAPP
   ========================================================= */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25D366;
    color: white;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: box-shadow 0.2s, transform 0.1s;
}

.btn-whatsapp:hover  { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
.btn-whatsapp:active { transform: scale(0.97); }
.btn-whatsapp img    { border-radius: 0; flex-shrink: 0; }



.valores-wrapper {
    background: linear-gradient(to right, #0D47A1 0%, #1E88E5 100%);
    border-bottom: 3px solid #1E88E5;
    padding-top: 14px;
}

.valores-intro {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0 0 2px;
    letter-spacing: 0.03em;
}

.valores-banda {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
}

.valor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
    cursor: default;
}

.valor-item:last-child {
    border-right: none;
}

.valor-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.valor-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.valor-texto {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .valor-item {
        padding: 10px 16px;
        flex-direction: row;
        gap: 8px;
    }
    .valor-texto {
        font-size: 0.72rem;
    }
}



section {
    padding: 32px 0;
    text-align: center;
}

#contacto {
    background-color: #f8f9fa;
    padding: 48px 0;
}


/* =========================================================
   SECCIONES CON IMAGEN LATERAL
   ========================================================= */
.section-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    text-align: justify;
}

.section-flex--reverse {
    flex-wrap: wrap-reverse;
}

.section-text {
    flex: 1;
    min-width: 0;
}

.section-text h2 {
    text-align: center;
}

.section-cta {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

.section-img {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    max-width: 100%;
}


/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: center;  /* centra verticalmente tarjeta y mapas */
}

.contact-card {
    background: white;
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-primary);
    text-align: center;
}

.contact-card > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: none;
    display: block;
}

.contact-card h3 {
    color: var(--color-accent);
    margin-bottom: 15px;
    text-align: center;
}

.contact-row {
    margin: 10px 0;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 42px;
}

.contact-label {
    width: 110px;
    flex-shrink: 0;
    text-align: right;
}

.contact-label--wide {
    width: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    text-align: right;
}

.contact-label--wide img {
    width: 20px;
    height: 20px;
    max-width: none;
    border-radius: 0;
    flex-shrink: 0;
}

.contact-note {
    margin-top: 20px;
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.contact-link {
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: underline;
    word-break: break-all;
}


/* =========================================================
   MAPAS
   ========================================================= */
.maps-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* sin margin-top: el centrado vertical lo gestiona el grid padre */
}

.map-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.map-card h4 {
    margin: 0 0 10px 0;
    color: var(--color-accent);
}

.map-card iframe {
    width: 100%;
    height: 150px;
    border: 0;
    border-radius: 8px;
    display: block;
}


/* =========================================================
   BOTÓN "PULSAR PARA VER"
   ========================================================= */
#contacto strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 38px;
    position: relative;
    vertical-align: middle;
}

.btn-reveal {
    width: 160px;
    height: 38px;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-gradient);
    box-shadow: var(--btn-shadow);
    font-size: 12px;
    font-family: Arial, sans-serif;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.btn-reveal:hover  { text-shadow: var(--btn-text-shadow); }
.btn-reveal:active { box-shadow: var(--btn-shadow-active); top: 5px; }

.contact-data {
    display: none;
    font-weight: bold;
    white-space: nowrap;
    color: inherit;
    font-size: 0.95em;
    text-align: center;
    width: 100%;
}


/* =========================================================
   GRID DE SERVICIOS
   ========================================================= */
.services-grid-vbf {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px auto;
    max-width: 1100px;
}

.card-vbf {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-vbf:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Segunda fila: 3 tarjetas centradas */
.services-grid-vbf .row-2-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.services-grid-vbf .row-2-wrapper .card-vbf {
    width: calc(25% - 12px);
    max-width: 260px;
}

.img-container-vbf {
    padding: 0;
    border-top: none;
    overflow: hidden;
}

.img-container-vbf img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.icon-vbf { font-size: 32px; margin-bottom: 8px; display: block; }
.card-vbf h3 { color: var(--color-accent); margin: 8px 0; font-size: 15px; }
.card-vbf p  { color: var(--color-muted); font-size: 13px; line-height: 1.4; margin: 0; }


/* =========================================================
   AVISO DE COOKIES
   ========================================================= */
.cookie-notice {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    display: none;
    z-index: 1000;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-notice p { margin: 0 0 10px 0; }

.cookie-notice button {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: var(--btn-gradient);
    box-shadow: var(--btn-shadow);
    cursor: pointer;
    transition: text-shadow 0.2s ease-out;
    position: relative;
}

.cookie-notice button:hover  { text-shadow: var(--btn-text-shadow); }
.cookie-notice button:active { box-shadow: var(--btn-shadow-active); top: 5px; }


/* =========================================================
   BOTÓN VOLVER ARRIBA
   ========================================================= */
#back-to-top {
    position: fixed;
    bottom: 72px;
    right: 16px;
    width: 46px;
    height: 46px;
    background: var(--btn-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border: none;
    cursor: pointer;
}

#back-to-top.show  { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,0,0,0.4); }


/* =========================================================
   FOOTER FIJO
   ========================================================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-footer);
    color: white;
    padding: 12px 16px;
    text-align: center;
    z-index: 999;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

footer a {
    color: white;
    text-decoration: none;
    margin-left: 12px;
    font-size: 11px;
    opacity: 0.7;
}

footer a:hover { text-decoration: underline; opacity: 1; }

.salto-movil { display: none; }


/* =========================================================
   RESPONSIVE — tablet (≤ 900px)
   ========================================================= */
@media (max-width: 900px) {

    .services-grid-vbf {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-vbf .row-2-wrapper .card-vbf {
        width: calc(50% - 8px);
        max-width: none;
    }

    .img-container-vbf { display: none; }

    .section-img {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
}


/* =========================================================
   RESPONSIVE — móvil (≤ 640px)
   ========================================================= */
@media (max-width: 640px) {

    body {
        padding-bottom: 70px;
    }

    /* ---- Header ---- */
    header {
        flex-direction: column;
        padding: 12px;
    }

    header img { width: 110px; }

    /* ---- Botón hamburguesa: fijo en el lateral izquierdo, a mitad de pantalla ---- */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        z-index: 2100;
        background: var(--color-primary-dark);
        color: white;
        border: none;
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
        border-radius: 0 6px 6px 0;
        padding: 0;
    }

    /* ---- Menú lateral: sale justo debajo del botón, pegado al margen izquierdo ---- */
    .side-menu {
        position: fixed;
        top: calc(50% + 14px); /* justo debajo del centro del botón (28px / 2) */
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-radius: 0 0 8px 0;
        background: var(--color-primary-dark);
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    }

    .side-menu a {
        font-size: 13px;
        padding: 13px 18px;
        white-space: normal;
        text-align: center;
    }

    .side-menu.active {
        transform: translateX(0);
    }

    /* ---- Navegación principal ---- */
    nav.nav-principal {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }

    nav.nav-principal a {
        width: 100%;
        text-align: center;
        padding: 12px;
        margin: 0;
    }

    /* ---- Grid servicios: 1 columna ---- */
    .services-grid-vbf {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .services-grid-vbf .row-2-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .services-grid-vbf .row-2-wrapper .card-vbf {
        width: 100%;
        max-width: none;
    }

    .card-vbf {
        aspect-ratio: auto;
        min-height: 130px;
    }

    /* ---- Imágenes laterales ocultas ---- */
    .section-img { display: none; }

    /* ---- Contacto ---- */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-row  { font-size: 0.95em; }

    /* ---- Footer ---- */
    .salto-movil { display: block; }

    footer {
        font-size: 12px;
        padding: 10px 8px;
    }

    footer a { margin: 0 6px; }
}


/* =========================================================
   BLOG — estilos específicos
   ========================================================= */

/* Contenedor principal del blog */
.blog-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

/* Cabecera del blog */
.blog-header {
    text-align: center;
    padding: 28px 16px 16px;
}

.blog-header h1 {
    color: var(--color-accent);
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin: 12px 0 8px;
}

/* Enlace "← Volver a vbf.es" */
.blog-back-link {
    display: inline-block;
    margin: 0 0 28px 0;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Tarjeta de artículo */
.blog-article {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary);
    text-align: left;
}

.blog-article h2 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin: 0 0 6px;
}

.blog-article h2 a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-article h2 a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.blog-date {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin: 0 0 12px;
}

.blog-article p {
    color: var(--color-text);
    line-height: 1.65;
    margin: 0 0 16px;
}

/* Botón "Leer noticia completa →" */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background: var(--btn-gradient);
    box-shadow: var(--btn-shadow);
    position: relative;
    transition: text-shadow 0.2s ease-out;
    white-space: nowrap;
}

.blog-read-more:hover  { text-shadow: var(--btn-text-shadow); }
.blog-read-more:active { box-shadow: var(--btn-shadow-active); top: 5px; }

/* Si el blog usa <a> directamente sin clase específica (fallback para enlaces "Leer noticia") */
.blog-article > a:not([class]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background: var(--btn-gradient);
    box-shadow: var(--btn-shadow);
    position: relative;
    transition: text-shadow 0.2s ease-out;
    white-space: nowrap;
}

.blog-article > a:not([class]):hover  { text-shadow: var(--btn-text-shadow); }
.blog-article > a:not([class]):active { box-shadow: var(--btn-shadow-active); top: 5px; }

/* Footer del blog (estático, no fijo) */
.blog-footer {
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: white;
    background-color: var(--color-footer);
}

/* Responsive blog */
@media (max-width: 640px) {
    .blog-article {
        padding: 18px 16px;
    }
}


/* =========================================================
   AVISO DE COOKIES — estilos compartidos (index + blog)
   Garantiza que ambas páginas muestren el mismo banner
   ========================================================= */

/* Clase genérica usada en ambas páginas */
.cookie-banner {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    z-index: 1000;
    font-size: 13px;
    line-height: 1.5;
    display: none; /* se muestra por JS */
}

.cookie-banner p { margin: 0 0 10px 0; }

.cookie-banner button,
.cookie-banner .cookie-accept-btn {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: var(--btn-gradient);
    box-shadow: var(--btn-shadow);
    cursor: pointer;
    transition: text-shadow 0.2s ease-out;
    position: relative;
}

.cookie-banner button:hover,
.cookie-banner .cookie-accept-btn:hover  { text-shadow: var(--btn-text-shadow); }

.cookie-banner button:active,
.cookie-banner .cookie-accept-btn:active { box-shadow: var(--btn-shadow-active); top: 5px; }

/* Mantiene compatibilidad con la clase original .cookie-notice */
.cookie-notice {
    bottom: 60px;
}

@media (max-width: 640px) {
    .cookie-banner { bottom: 50px; font-size: 12px; }
}

/* =========================================================
   BLOG — clases reales de blog/index.html
   ========================================================= */

/* Contenedor de artículos */
#blog-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* Zona del botón "← Volver" */
#top-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 16px 0;
}

#inicio-btn {
    margin-bottom: 4px;
}

/* Botón azul reutilizable: "← Volver" y "Leer noticia completa →" */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-decoration: none;
    background: var(--btn-gradient);
    box-shadow: var(--btn-shadow);
    position: relative;
    transition: text-shadow 0.2s ease-out;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.back-btn:hover  { text-shadow: var(--btn-text-shadow); }
.back-btn:active { box-shadow: var(--btn-shadow-active); top: 5px; }

/* Tarjeta de artículo */
article.entry {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary);
    text-align: left;
}

.entry-title {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin: 0 0 6px;
    color: var(--color-accent);
}

.entry-title a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-date {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin: 0 0 12px;
}

.entry-content p {
    color: var(--color-text);
    line-height: 1.65;
    margin: 0 0 16px;
    text-align: justify;
}

/* Botón Aceptar dentro de .cookie-notice (blog usa class="back-btn") */
.cookie-notice .back-btn {
    padding: 10px 24px;
    font-size: 14px;
}

@media (max-width: 640px) {
    article.entry { padding: 18px 16px; }
    #blog-container { padding-bottom: 30px; }
}

/* =========================================================
   BLOQUE CTA — llamada a la acción en artículos del blog
   Reemplaza los estilos inline del seo.html original
   ========================================================= */
.cta-box {
    position: relative;
    background-image: url('/images/cta-bg.webp');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 40px 32px;
    margin-top: 32px;
    text-align: center;
    overflow: hidden;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

/* Título: sobreescribe herencia de .entry-content h3 */
.cta-box .cta-box__title {
    color: #ffffff;
    margin: 0 auto 12px;
    max-width: 620px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-align: center !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Texto: también centrado y limitado en ancho */
.cta-box .cta-box__text {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto 20px;
    max-width: 500px;
    text-align: center !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   ARTÍCULO INDIVIDUAL — tipografía y lectura
   Mejora legibilidad: tamaño, interlineado y justificado
   ========================================================= */

/* Tamaño y ritmo base del contenido del artículo */
.entry-content {
    font-size: clamp(0.92rem, 2vw, 1rem);
    line-height: 1.75;
    color: var(--color-text);
}

/* Párrafos: justificados con hifenación suave */
.entry-content p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin: 0 0 0.7em;
    line-height: 1.75;
}

/* Encabezados internos del artículo (h3 semánticos) */
.entry-content h3 {
    color: var(--color-accent);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    margin: 1.6em 0 0.5em;
    line-height: 1.3;
}

/* Listas: también justificadas y con espaciado cómodo */
.entry-content ol,
.entry-content ul {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    padding-left: 1.4em;
    margin: 0 0 1.1em;
}

.entry-content li {
    margin-bottom: 0.45em;
    line-height: 1.75;
}

/* Imagen destacada: flota a la derecha rodeada de texto */
.entry-content > img:first-child {
    float: right;
    margin: 0.2em 0 1.2em 1.8em;
    max-width: 260px;
    width: 38%;
    border-radius: 10px;
    border: 4px solid var(--color-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    outline: 2px solid #fff;
    outline-offset: -6px;
}

/* Limpia el float al acabar el contenido */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 640px) {
    .entry-content {
        font-size: 0.95rem;
    }

    .entry-content > img:first-child {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.2em;
    }
}
