﻿/* GENERAL */
:root {
    /* FUENTES */
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    /* TAMAÑOS */
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.75rem;
    --h4-size: 1.4rem;
    --h5-size: 1.15rem;
    --h6-size: 1rem;
    /* INTERLINEADO */
    --h1-line: 1.15;
    --h2-line: 1.2;
    --h3-line: 1.25;
    --h4-line: 1.3;
    --h5-line: 1.35;
    --h6-line: 1.4;
    --body-size: 1.05rem;
    --body-line: 1.75;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--body-line);
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    margin-bottom: .6em;
}

h1 {
    font-size: var(--h1-size);
    line-height: var(--h1-line);
}

h2 {
    font-size: var(--h2-size);
    line-height: var(--h2-line);
}

h3 {
    font-size: var(--h3-size);
    line-height: var(--h3-line);
}

/* Truncar títulos de tarjetas a 2 líneas con puntos suspensivos */
.card-title, h3.card-title {
    display: -webkit-box; /* required for line-clamp */
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.25; /* consistent line height for calculation */
    max-height: calc(1.25em * 2); /* clamp to two lines */
    /* Avoid breaking words mid-word or using hyphens: prefer whole-word wrap */
    word-break: normal;
    overflow-wrap: break-word; /* only break very long words to avoid overflow */
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    margin: 0;
    padding: 0;
    /* Reserve fixed height so all titles align across cards */
    min-height: calc(1.25em * 2);
}

h4 {
    font-size: var(--h4-size);
    line-height: var(--h4-line);
}

h5 {
    font-size: var(--h5-size);
    line-height: var(--h5-line);
}

h6 {
    font-size: var(--h6-size);
    line-height: var(--h6-line);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.layout-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-main {
    flex: 1;
}

.layout-footer {
    margin-top: auto;
}



/* LOGO */
.logo {
    height: 70px; /* Ajusta según necesites */
    width: auto;
    max-width: 150px; /* No muy grande */
}

.navbar-brand {
    margin-right: 2rem;
}


/* FIN LOGO */

/* imagenes blog continenetes*/
.continent-card {
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, #9C27A3, #e1bee7) border-box;
    display: block;
    background-color: #ffffff; /* fondo blanco */
    border: 2px solid #9C27A3; /* marco morado */
    border-radius: 16px; /* bordes suaves */
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    overflow: hidden; /* evita que imágenes sobresalgan del contenedor */
    --continent-img-height: 180px; /* altura por defecto para las imágenes */
}

    /* Contenedor fijo para la imagen: asegura caja uniforme para todas las miniaturas */
    .continent-card .img-wrapper {
        width: 100%;
        height: var(--continent-img-height);
        display: block;
        overflow: hidden;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ffffff;
    }

    .continent-card .img-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain; /* mostrar imagen entera por defecto */
        object-position: center;
    }

    /* En pantallas grandes, recortar para mantener aspecto uniforme y llenar el ancho */
    @media (min-width: 992px) {
        .continent-card {
            --continent-img-height: 200px; /* mayor altura en pantallas grandes */
        }
        .continent-card .img-wrapper img {
            width: 100%;
            height: var(--continent-img-height);
            object-fit: cover; /* recorta para llenar y mantener tamaño uniforme */
        }
    }

    .continent-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(156, 39, 163, 0.25);
        border-color: #7b1fa2;
    }

    .continent-card .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
        display: flex;
        align-items: flex-end;
        padding: 1.5rem;
    }

    .continent-card h2 {
        color: #ffffff;
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0;
    }

    .continent-card h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #9C27A3;
    }


.blog-intro-hybrid {
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #faf5fc, #ffffff);
    border-left: 5px solid #9C27A3;
    border-right: 5px solid #9C27A3;
    box-shadow: 0 6px 20px rgba(156, 39, 163, 0.15);
}

    .blog-intro-hybrid h2 {
        color: #9C27A3;
        font-size: 2.1rem;
    }

    .blog-intro-hybrid p {
        color: #555;
    }

.blog-intro-hybrid {
    animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* fin imagenes blog continenetes*/
/* HERO PRINCIPAL */
.hero-home {
    min-height: 100vh;
    background-image: url('/img/hero/principal.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center; /* vertical */
    text-align: center;
    color: #ffffff;
}


.hero {
    background-image: url('/img/hero/principal.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
}

    /* Oscurecer un poco la imagen para mejorar legibilidad */
    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
        z-index: 1;
    }

    hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
}

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
}

.btn-hero {
    background-color: #9C27A3; /* MORADO BOTÓN */
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .btn-hero:hover {
        background-color: #7b3f90; /* morado más oscuro al hover */
    }

.page-hero {
    background-color: #f7f3f9;
    padding: 80px 20px;
    text-align: center;
}

    .page-hero h1 {
        font-size: 2.5rem;
        color: #7b3f90;
    }

.about-main.legal-hero {
    padding-top: 15px; /* menos espacio arriba */
    padding-bottom: 5px; /* menos espacio abajo */
    text-align: center;
}

    .about-main.legal-hero h1 {
        font-size: 2rem;
        margin: 0; /* elimina margen por arriba y abajo */
        line-height: 1.2;
        color: #9C27A3;
    }



/* About main / Política de privacidad */
.about-main {
    padding: 40px 20px;
    background-color: #f7f3f9; /* ligero contraste con header */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Imagen y texto 50/50 */
    gap: 40px;
    align-items: center; /* centra verticalmente */
}

.about-grid-privacidad {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 40px;
    align-items: center; /* centra verticalmente */
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333333;
}

.about-text h2 {
    color: #7b3f90;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .about-text h2 img {
        vertical-align: middle;
    }




.about-image img {
    width: 100%;
    border-radius: 10px;
}




.about-values {
    background-color: #f7f3f9;
    padding: 70px 20px;
    text-align: center;
}

    .about-values h2 {
        color: #7b3f90;
        margin-bottom: 25px;
    }

    .about-values p {
        max-width: 700px;
        margin: 0 auto 15px;
        line-height: 1.7;
    }



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ICONOS HEADER */
.header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

    .header-icons a {
        color: #ffffff; /* BLANCO */
        font-size: 1.1rem;
        transition: color 0.3s ease;
    }

        .header-icons a:hover {
            color: #f2d9ff; /* lila claro */
        }


/* HEADER */
.site-header {
    background: #fff;
    background-color: #9C27A3;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 999;
}



.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 70px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* FOOTER */
.site-footer {
    background: #f7f7f7;
    background-color: #9C27A3;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

  .site-footer p {
        color: #ffffff;
    }

.footer-links a, .footer-social a {
    margin: 0 10px;
    text-decoration: none;
    color: #ffffff;
}

/* LÍNEA DEBAJO DEL H1 EN PÁGINAS LEGALES */
.underline-legal {
    width: 1000px; /* ancho de la línea */
    height: 4px; /* grosor */
    background-color: #9C27A3; /* morado coherente con branding */
    border: none; /* quitar borde por defecto de hr */
    margin: 10px auto 0; /* 10px encima, centrado, sin margen abajo */
    border-radius: 2px; /* esquinas redondeadas */
}

/* MODIFICACIONES DE BOOTSTRAP*/
.text-purple {
    color: #9C27A3;
}

.btn-purple {
    background-color: #9C27A3;
    color: #ffffff;
}

    .btn-purple:hover {
        background-color: #7b3f90;
        color: #ffffff;
    }

.contact-highlight {
    background: linear-gradient(135deg, #9C27A3, #7b3f90);
    color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 12px 30px rgba(156, 39, 163, 0.35);
}

    .contact-highlight h2 {
        font-size: 1.9rem;
    }

    .contact-highlight p {
        opacity: 0.95;
    }


/* FIN MODIFICACIONES DE BOOTSTRAP*/

/* menu del blog*/
/* DROPDOWN BLOG — COLORES FORZADOS */
.blog-dropdown {
    background-color: #7b3f90 !important; /* morado oscuro */
    border: 2px solid #9C27A3 !important;
    border-radius: 10px !important;
    padding: 0.5rem !important;
}

.blog-dropdown .dropdown-item {
    color: #ffffff !important; /* texto blanco */
    font-weight: 500;
    border-radius: 6px;
}

.blog-dropdown .dropdown-item:hover {
    background-color: #9C27A3 !important; /* morado claro */
    color: #ffffff !important;
}

/* Evitar que Bootstrap ponga fondo blanco */
.dropdown-menu {
    background-color: #7b3f90 !important;
}

/* ENLACES PRINCIPALES DEL MENÚ BLOG (España, Europa, África, Asia) */
.blog-menu-link {
    color: #ffffff !important; /* blanco */
    font-weight: 600;
}

    .blog-menu-link:hover {
        color: #f2d9ff !important; /* blanco-lila suave */
    }



/*fin menu blog */

.flag-icon {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

/* post de paises tamaño imagen*/
.post-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.row.g-4 article.card .card-body {
    padding-bottom: 1rem; /* leave room for footer */
}

/* Ensure cards inside the posts grid all have the same height regardless of title/extract length */
.row.g-4 > [class*="col-"] {
    display: flex; /* make column a flex container so its child can stretch */
}
.row.g-4 > [class*="col-"] > article.card {
    flex: 1 1 auto; /* allow card to grow and fill column height */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make card body occupy remaining space so footer stays aligned */
.row.g-4 article.card .card-body {
    flex: 1 1 auto;
    padding-bottom: 0.75rem;
}

/* Spacing between title and extract */
.row.g-4 .card-title {
    margin-bottom: 0.5rem;
}
.row.g-4 .card-text {
    margin-top: 0.25rem;
}

/* TÍTULO: 2 líneas máximo */
.card-title {
    display: -webkit-box; /* required for multiline truncation */
    -webkit-line-clamp: 2; /* show two lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2; /* adjust if needed to match typography */
    max-height: calc(1.2em * 2); /* clamp to two lines */
    word-break: break-word;
    hyphens: auto;
    margin: 0; /* override default h3 margins that increase height */
    padding: 0;
}
.card:hover .card-title {
    color: #9C27A3;
}

/* Regla con mayor especificidad para forzar truncado a 2 líneas y puntos suspensivos
   (si otras hojas de estilo como Bootstrap estuvieran sobrescribiendo propiedades) */
.card .card-title, .card h3.card-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    max-height: calc(1.2em * 2) !important;
    /* Do not break words or insert hyphens under any circumstances */
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}



/* EXTRACTO: 3 líneas máximo */
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    /* Reserve fixed height for extracts (3 lines) so extracts align across cards */
    min-height: calc(1.5em * 3);
}

/* LÍNEA SIEMPRE EN MISMO SITIO */
.post-separator {
    margin-top: auto;
}

/* BLOQUE FINAL ABAJO DEL TODO */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* push footer to bottom of card */
}

.post-image-link img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.post-image-link:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}



/* fin post de paises tamaño imagen*/

/*color morado para los post*/
.post-Pais {
    color: #9C27A3 !important;
   
}
.post-title {
    color: #9C27A3 !important;
    font-weight: 400; /* Letra más fina para elegancia */

    line-height: 1.6;

    opacity: 0.9; /* Suaviza el color para que no "vibre" tanto en pantalla */
}

.post-extracto {
    margin-top: 14px;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.65;
    font-style: italic;
    color: #777;
    letter-spacing: 0.2px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/*.post-extracto {
    margin-top: 12px;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    font-style: italic;
    color: #666;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}*/





/* fin color morado para los post*/

/*personalizar el contenido del post*/
/* Tipografía y Cuerpo */
.post-content {
    font-family: 'Georgia', serif; /* Fuente con remates para lectura larga */
    font-size: 1.15rem;
    line-height: 1.85;
    color: #333;
}

/* El título principal */
.post-main-title {
    color: #4A148C; /* Un morado más profundo y elegante */
    font-family: 'Playfair Display', serif; /* Si puedes, usa esta Google Font */
}

/* Personalización de elementos de TinyMCE */
.post-content h2, .post-content h3 {
    margin-top: 2em;
    color: #9C27A3;
    font-weight: 700;
}

/* Manejo de imágenes flotantes (Lo que preguntaste al inicio) */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

    /* Clases para que el texto rodee la imagen si el usuario las elige en TinyMCE */
    .post-content img[style*="float: left"] {
        margin-right: 25px;
        margin-bottom: 20px;
        border: 1px solid #f0f0f0;
        padding: 5px;
    }

    .post-content img[style*="float: right"] {
        margin-left: 25px;
        margin-bottom: 20px;
        border: 1px solid #f0f0f0;
        padding: 5px;
    }

/* Citas elegantes (Blockquotes) */
.post-content blockquote {
    font-style: italic;
    border-left: 4px solid #9C27A3;
    padding: 20px 30px;
    margin: 40px 0;
    background-color: #F3E5F5;
    font-size: 1.25rem;
    color: #6A1B9A;
}

/* Letra capitular (La primera letra más grande) */
.post-content > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: bold;
    float: left;
    margin-right: 10px;
    line-height: 1;
    color: #9C27A3;
    font-family: 'Playfair Display', serif;
}

/* Centrar imagen destacada y cualquier imagen dentro del post */
.post-content img,
.post-featured-image-container img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important; /* Esto anula el float si lo habías puesto antes */
    max-width: 100%;
    height: auto;
}

/* Opcional: Si quieres que los pies de foto (si usas <figure>) también se centren */
.post-content figure {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- ESTILOS EXCLUSIVOS PARA EL INTERIOR DEL POST --- */

/* Párrafos y listas dentro del post */
.post-content p,
.post-content ul li,
.post-content ol li {
    text-align: left !important;
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Si tienes un menú de "Índice" o "Listas" dentro del contenido */
.post-content ul, .post-content ol {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

/* Títulos dentro del contenido */
.post-content h2,
.post-content h3 {
    font-family: 'Playfair Display', serif;
    color: #4A148C;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left !important;
}

/* Imágenes centradas SÓLO dentro del contenido */
.post-content img {
    display: block !important;
    margin: 2.5rem auto !important;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Enlaces dentro del texto del post */
.post-content a {
    color: #9C27A3;
    text-decoration: underline;
    font-weight: 600;
}

/* Compactar listas que funcionan como menús (tienen enlaces) */
.post-content li a {
    display: inline-block;
    padding: 2px 0; /* Reduce el espacio vertical */
}

.post-content ul li:has(a),
.post-content ol li:has(a) {
    margin-bottom: 0.3rem !important; /* Mucho menos espacio entre líneas de menú */
    line-height: 1.2 !important; /* Interlineado más apretado */
}

/* Si tu menú tiene una estructura de lista limpia, eliminamos el margen extra */
.post-content .nav,
.post-content .menu-interno {
    margin-bottom: 1rem;
}

/*fin personalizar el contenido del post*/


/* newsletter */
.newsletter-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

    .newsletter-popup.show {
        opacity: 1;
        visibility: visible;
    }

.newsletter-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative; /* Importante para que la X se mueva respecto a esto */
}

    /* EL BOTÓN DE SUSCRIBIRME (El grande morado) */
    .newsletter-box button[type="submit"] {
        width: 100% !important;
        padding: 12px !important;
        border: none !important;
        border-radius: 8px !important;
        background: #9C27A3 !important;
        color: white !important;
        font-weight: bold !important;
        cursor: pointer !important;
        transition: 0.3s !important;
        display: block !important;
        margin-top: 10px;
    }

        .newsletter-box button[type="submit"]:hover {
            background: #7B1FA2 !important;
        }

    .newsletter-box h2 {
        color: #9C27A3;
        margin-bottom: 10px;
    }

    .newsletter-box p {
        color: #666;
        margin-bottom: 25px;
    }

    .newsletter-box input {
        width: 100%;
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

    /* Limpieza absoluta para la X */
    .newsletter-box button.newsletter-close {
        /* Reset de estilos de botón */
        all: unset;
        /* Posicionamiento */
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        /* Dimensiones y apariencia */
        width: 24px !important;
        height: 24px !important;
        cursor: pointer !important;
        color: #9C27A3 !important; /* Color morado para que combine */
        font-size: 30px !important;
        line-height: 1 !important;
        font-family: Arial, sans-serif !important;
        /* Asegurar que no tenga fondo ni bordes */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

        .newsletter-box button.newsletter-close:hover {
            color: #7B1FA2 !important;
            background: transparent !important;
        }

.newsletter-close {
    position: absolute !important; /* Forzamos la posición */
    top: 10px !important; /* Distancia desde arriba */
    right: 15px !important; /* Distancia desde la derecha */
    margin: 0 !important; /* Eliminamos márgenes extra */
    padding: 0 !important; /* Eliminamos rellenos de Bootstrap */
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    z-index: 10001; /* Un nivel por encima del popup */
}

    .newsletter-close:hover {
        color: #9C27A3; /* Color morado al pasar el ratón */
    }

@keyframes fadeUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* fin newletter */


/* Centrar contenedor de iconos en el footer y replicar estilo del header */
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 18px; /* Misma separación que en el header */
    margin-bottom: 1.5rem;
}

    .footer-social-icons a {
        color: #ffffff; /* IGUAL QUE EN HEADER: Blanco */
        font-size: 1.1rem; /* IGUAL QUE EN HEADER: 1.1rem */
        transition: color 0.3s ease;
        text-decoration: none;
    }

        .footer-social-icons a:hover {
            color: #f2d9ff; /* IGUAL QUE EN HEADER: Lila claro */
            transform: none; /* Eliminamos el aumento de escala para que sea idéntico */
        }

/* Caja destacada del Newsletter */
.footer-newsletter-box {
    background: #ffffff; /* Fondo blanco para resaltar */
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Sombra suave */
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e1bee7; /* Bordito lila muy suave */
}

.newsletter-title {
    color: #9C27A3; /* Morado marca */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.newsletter-subtitle {
    color: #555;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Inputs mejorados */
.footer-form-inline input {
    background: #f8f9fa;
    border: 2px solid #eee;
    padding: 12px 18px;
    transition: border-color 0.3s;
}

    .footer-form-inline input:focus {
        border-color: #9C27A3;
        outline: none;
    }

/* Botón llamativo */
.btn-newsletter-footer {
    background-color: #9C27A3;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-newsletter-footer:hover {
        background-color: #7B1FA2;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(156, 39, 163, 0.3);
    }

/* Estilo del checkbox dentro de la caja blanca */
.footer-privacy-check_caja {
    color: #666; /* Texto oscuro para legibilidad sobre blanco */
    font-size: 0.85rem;
}

    .footer-privacy-check_caja a {
        color: #9C27A3;
        font-weight: 600;
        text-decoration: underline;
    }


.footer-privacy-check {
    display: flex; /* Hace que el input y el label estén en línea */
    align-items: center; /* Centra verticalmente el check con el texto */
    justify-content: center; /* Centra todo el bloque en el formulario */
    gap: 8px; /* Espacio horizontal entre el cuadrito y el texto */
    margin-bottom: 15px; /* Espacio antes del botón */
}

    .footer-privacy-check input[type="checkbox"] {
        width: 16px; /* Tamaño fijo para el check */
        height: 16px;
        margin: 0; /* Quita márgenes por defecto que descuadran */
        cursor: pointer;
    }

    .footer-privacy-check label {
        margin: 0; /* Quita márgenes de Bootstrap */
        font-size: 0.9rem;
        cursor: pointer;
        line-height: 1; /* Evita saltos de línea extra */
        display: inline; /* Asegura que se mantenga como texto corrido */
    }

    /* Para que el enlace no rompa el diseño */
    .footer-privacy-check a {
        display: inline;
        white-space: nowrap; /* Opcional: evita que "Política de Privacidad" se parta en dos */
    }






/* --- RESET PARA CONTENIDO DE BLOG --- */
.post-content {
    line-height: 1.6;
    word-wrap: break-word;
}

    /* 1. Reset general de imágenes para que no rompan el diseño */
    .post-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block; /* Por defecto ocupan su línea */
        margin: 1rem auto; /* Centradas por defecto */
    }

        /* 2. Cuando la imagen tiene float (directo o en figure) */
        /* ALINEACIÓN IZQUIERDA */
        .post-content .align-left,
        .post-content img[style*="float:left"],
        .post-content img[style*="float: left"],
        .post-content figure[style*="float:left"],
        .post-content figure[style*="float: left"],
        .post-content figure.image-style-side.align-left {
            float: left !important;
            display: inline !important;
            margin: 0 25px 20px 0 !important;
        }

        /* ALINEACIÓN DERECHA */
        .post-content .align-right,
        .post-content img[style*="float:right"],
        .post-content img[style*="float: right"],
        .post-content figure[style*="float:right"],
        .post-content figure[style*="float: right"],
        .post-content figure.image-style-side,
        .post-content figure.image-style-side.align-right {
            float: right !important;
            display: inline !important;
            margin: 0 0 20px 25px !important;
        }

    /* 3. Ajustes específicos para Figure (Plugin Image2) */
    .post-content figure.image {
        display: table !important; /* Ajusta el ancho al de la imagen */
        clear: none; /* Permite que el texto suba */
    }

    .post-content figure figcaption {
        font-size: 0.85em;
        color: #666;
        padding: 8px;
        text-align: center;
        background: #f9f9f9;
    }

    /* 4. Limpiador de flujos (Indispensable) */
    .post-content::after {
        content: "";
        display: table;
        clear: both;
    }


/* Estado inicial: oculto y desplazado hacia abajo */
.cookie-banner {
    position: fixed !important;
    bottom: -250px; /* Asegúrate de que no sea un valor positivo */
    left: 0;
    width: 100%;
    background: #9C27A3 !important;
    color: white !important;
    z-index: 99999 !important; /* Por encima de todo */
    transition: bottom 0.8s ease-out !important;
    display: block !important; /* Forzamos que siempre sea block */
}

    .cookie-banner.show {
        bottom: 0 !important;
    }

.post-tags a {
    display: inline-block;
    background: rgba(156, 39, 163, 0.08);
    color: #9C27A3;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 4px 6px 4px 0;
    transition: all .2s ease;
}

    .post-tags a:hover {
        background: #9C27A3;
        color: #fff;
    }

.post-footer {
    margin-top: auto; /* ensure footer stays at the bottom */
}

.post-divider {
    height: 1px;
    background: linear-gradient(to right, #9C27A3, transparent);
    margin-bottom: 10px;
}

.post-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.post-fecha {
    font-size: 0.85rem;
    color: #9C27A3;
    font-weight: 500;
    white-space: nowrap;
}

.post-footer-inner .btn {
    white-space: nowrap;
    padding: 6px 14px;
}








/* Ajuste para móviles */
@media (max-width: 600px) {
    .footer-form-inline {
        flex-direction: column;
        align-items: center;
    }

        .footer-form-inline input,
        .footer-form-inline button {
            width: 100%;
            max-width: 300px;
        }
}

/*--------------------
-----SIDEBAR 
------------------------  */
.post-container {
    max-width: 1400px;
}

.post-detail {
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-sidebar {
    position: sticky;
    top: 130px;
}

.post-container,
.post-container .row,
.post-container [class^="col"] {
    overflow: visible !important;
}


.post-inner {
    max-width: 100%;
    padding-right: 1rem;
}


.sidebar-box {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #9C27A3;
    margin-bottom: 15px;
}

.sidebar-thumb {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-related {
    gap: 10px;
}

    .sidebar-related h6 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0;
    }


    .sidebar-related:hover h6 {
        color: #9C27A3;
    }
/*--------------------
-----   FIN SIDEBAR 
------------------------  */

/*--------------------
-----   INDICE SIDEBAR 
------------------------  */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .toc-list li {
        margin-bottom: 6px;
        position: relative;
    }

    .toc-list a {
        text-decoration: none;
        color: #444;
        font-size: 0.9rem;
        line-height: 1.4;
        transition: all .2s ease;
    }

        .toc-list a:hover {
            color: #9C27A3;
        }

/* H2 */
.toc-level-2 {
    padding-left: 18px;
}

    .toc-level-2::before {
        content: "●";
        position: absolute;
        left: 0;
        color: #9C27A3;
    }

/* H3 */
.toc-level-3 {
    padding-left: 32px;
}

    .toc-level-3::before {
        content: "○";
        position: absolute;
        left: 14px;
        color: #666;
    }

/* H4 */
.toc-level-4 {
    padding-left: 46px;
}

    .toc-level-4::before {
        content: "▪";
        position: absolute;
        left: 28px;
        color: #888;
    }

/* H5 */
.toc-level-5 {
    padding-left: 60px;
}

    .toc-level-5::before {
        content: "▫";
        position: absolute;
        left: 42px;
        color: #aaa;
    }

/* H6 */
.toc-level-6 {
    padding-left: 74px;
}

    .toc-level-6::before {
        content: "·";
        position: absolute;
        left: 56px;
        color: #bbb;
    }




/*--------------------
-----   FIN INDICE   SIDEBAR 
------------------------  */

.service-card img {
    height: 200px;
    object-fit: cover;
}

.service-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-content h2,
.service-content h3 {
    margin-top: 2.5rem;
}

/* Contenedor con altura fija para que todas las cards midan lo mismo */
.card-img-container {
    height: 200px; /* Ajusta esta altura según prefieras */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* La magia para que no se corte */
.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen para que se vea entera sin recortar */
    object-position: center;
    padding: 10px; /* Opcional: un pequeño margen para que no toque los bordes */
}

/* 1. Creamos un contenedor con proporción 4:3 */
.ratio-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Esto crea una proporción 4:3 (3/4 = 0.75) */
    background-color: #f0f0f0; /* Fondo gris para huecos vacíos */
    overflow: hidden;
}

    /* 2. Posicionamos el enlace y la imagen de forma absoluta */
    .ratio-container a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* 3. La imagen se ajusta al contenedor sin cortarse nunca */
.img-fit {
    max-width: 95%; /* Pequeño margen para que no toque bordes */
    max-height: 95%;
    width: auto !important; /* Anula cualquier regla de Bootstrap */
    height: auto !important;
    object-fit: contain; /* Garantiza que se vea ENTERA */
}


/* Ejemplo de una clase btn-admin completa */
.btn-admin {
    background-color: #9C27A3 !important; /* fondo blanco */
    border: 2px solid #9C27A3 !important; /* marco morado */
    border-radius: 16px; /* bordes suaves */
    padding: 24px;
    text-align: center;
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}

    .btn-admin:hover {
        background-color: #7b3f90 !important;
        color: #f2d9ff !important; /* Un toque de color al pasar el ratón */
    }
/*-------------------------------------------------*/
.btn-search-trigger {
    background: none;
    border: none;
    color: #ffffff; /* O el color de tus iconos */
    font-size: 1.2rem;
    margin-left: 15px;
    transition: transform 0.2s;
}

    .btn-search-trigger:hover {
        transform: scale(1.2);
        color: #ffd700;
    }
/*-----------------------------------------------------*/
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.search-box {
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 10px;
}

    .search-box input {
        flex: 1;
        padding: 15px 20px;
        border-radius: 20px;
        border: none;
        font-size: 18px;
    }

    .search-box button {
        padding: 15px 30px;
        border-radius: 20px;
        border: none;
        background: #9C27A3;
        color: white;
        font-weight: 600;
    }





.post-card {
    transition: all .2s ease;
}

    .post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.12);
    }

.post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-img-link {
    display: block;
    overflow: hidden;
}

.post-title-link {
    color: #222;
    text-decoration: none;
}

    .post-title-link:hover {
        color: var(--admin-color);
    }

.post-extracto {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--admin-color), transparent);
    margin: .75rem 0;
}

.post-footer {
    font-size: .85rem;
}



/* RESPONSIVE */
/* MOBILE */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        text-align: center;
    }
    .header-icons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #7b3f90;
    }

        .main-nav ul {
            flex-direction: column;
            padding: 20px 0;
        }

        .main-nav li {
            text-align: center;
            margin-bottom: 15px;
        }

        .main-nav a {
            color: #ffffff;
            font-size: 1.1rem;
        }

        .main-nav.active {
            display: block;
        }
}

@media (max-width: 576px) {
    .continent-card {
        padding: 16px;
    }

        .continent-card img {
            height: 130px;
        }

        .continent-card h3 {
            font-size: 1.1rem;
        }
    .blog-intro {
        padding: 1.2rem 1rem;
        margin-bottom: 1.5rem;
    }

        .blog-intro h2 {
            font-size: 1.4rem;
        }
}


