/*
Theme Name: Misión de Todos los Santos
Theme URI: https://iglesiatodoslossantos.org
Author: Isaac Hernández
Author URI: https://iglesiatodoslossantos.org
Description: Tema personalizado para la Misión de Todos los Santos - Vieques, Puerto Rico
Version: 1.4
Text Domain: todos-los-santos
*/


/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
        
body {
    overflow-x: hidden;
    color: #fff;
    }
        

        /* Hero Section - Portada */
        .hero {
            position: relative;
            height: 100vh;
            min-height: 600px;
            background: url('images/iglesia004.jpg') no-repeat center center;
            background-size: cover;
            display: flex;
            flex-direction: column;
            justify-content: start;
            align-items: center;
            text-align: center;
            padding: 20px;
            overflow: hidden;
            margin-top: 60px; /* Para compensar la navbar fija */
            background-position-y: 0px;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 1200px;
            margin-top: 50px;
        }
        
        .logo {
            width: 170px;
            height: auto;
            margin-bottom: 30px;
            animation: fadeIn 1.5s ease-in-out;
        }
        
        h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            animation: slideInDown 1s ease-out;
        }
        
        .subtitle {
            font-size: 1.8rem;
            margin-bottom: 30px;
            font-weight: 300;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
            animation: slideInUp 1s ease-out;
        }
        
        .verse {
            font-style: italic;
            margin: 30px 0;
            font-size: 1.2rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            animation: fadeIn 2s ease-in-out;
        }
        
        .info-box {
            background-color: rgba(74, 20, 140, 0.8);
            padding: 20px;
            border-radius: 10px;
            margin-top: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            animation: fadeIn 2.5s ease-in-out;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .info-item {
            margin: 10px 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .info-item i {
            margin-right: 10px;
            font-size: 1.2rem;
        }
        

        

        


    /* Estilos para la sección de bienvenida */
    .welcome-section {
        background-color: #f9f9f9;
        color: #333;
        padding: 80px 20px;
    }
    
    .welcome-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        align-items: center;
    }
    
    .welcome-text {
        flex: 1;
        min-width: 300px;
    }
    
    .welcome-image {
        flex: 1;
        min-width: 300px;
    }
    
    .welcome-image img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .welcome-section h2 {
        color: #4a148c;
        font-size: 2.5rem;
        margin-bottom: 25px;
        position: relative;
    }
    
    .welcome-section h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 80px;
        height: 4px;
        background-color: #f8d56b;
    }
    
    .welcome-section p {
        margin-bottom: 20px;
        line-height: 1.6;
        font-size: 1.1rem;
    }
    
    .welcome-highlights {
        margin-top: 40px;
        background-color: #fff;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    }
    
    .highlight-item {
        display: flex;
        align-items: center;
        margin: 15px 0;
    }
    
    .highlight-item i {
        color: #4a148c;
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .highlight-item span {
        margin-left: 15px;
        font-size: 1rem;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .welcome-section {
            padding: 50px 20px;
        }
        
        .welcome-section h2 {
            font-size: 2rem;
        }
        
        .welcome-container {
            flex-direction: row;
        }
        
        .welcome-text, .welcome-image {
            min-width: 100%;
        }
        
        .welcome-image {
            order: -1;
            margin-bottom: 30px;
        }
        .hero-content {
            margin-top: 80px;
        }
    }
        /* Estilos para la sección de inclusividad */
    .inclusion-section {
        background-color: #f0e6ff; /* Fondo lila claro */
        padding: 80px 20px;
        color: #333;
    }
    
    .inclusion-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .inclusion-section h2 {
        color: #4a148c;
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .inclusion-subtitle {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 50px;
        color: #6a1b9a;
        font-weight: 300;
    }
    
    .inclusion-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .inclusion-card {
        background-color: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .inclusion-card:hover {
        transform: translateY(-5px);
    }
    
    .inclusion-image {
        height: 180px;
        background-color: #e1bee7;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .inclusion-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .inclusion-image i {
        font-size: 4rem;
        color: #4a148c;
    }
    
    .inclusion-content {
        padding: 25px;
    }
    
    .inclusion-content h3 {
        color: #4a148c;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }
    
    .inclusion-content p {
        line-height: 1.6;
        color: #555;
    }
    
    .inclusion-quote {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
    
    .inclusion-quote blockquote {
        font-size: 1.3rem;
        font-style: italic;
        color: #4a148c;
        line-height: 1.6;
        position: relative;
        padding: 20px 40px;
    }
    
    .inclusion-quote blockquote::before,
    .inclusion-quote blockquote::after {
        content: '"';
        font-size: 3rem;
        color: #f8d56b;
        opacity: 0.5;
        position: absolute;
    }
    
    .inclusion-quote blockquote::before {
        top: -10px;
        left: 0;
    }
    
    .inclusion-quote blockquote::after {
        bottom: -30px;
        right: 0;
    }
    
    .inclusion-quote cite {
        display: block;
        margin-top: 15px;
        font-size: 1rem;
        color: #6a1b9a;
        font-style: normal;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .inclusion-section {
            padding: 50px 20px;
        }
        
        .inclusion-section h2 {
            font-size: 2rem;
        }
        
        .inclusion-subtitle {
            font-size: 1.1rem;
        }
        
        .inclusion-quote blockquote {
            font-size: 1.1rem;
            padding: 20px;
        }
    }

        /* Estilos para el footer */
    .site-footer {
        background-color: #4a148c;
        color: white;
        padding: 60px 20px 0;
        font-size: 1rem;
    }
    
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .footer-logo {
        width: 180px;
        height: auto;
        margin-bottom: 20px;
    }
    
    .footer-motto {
        font-style: italic;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    .footer-social {
        display: flex;
        gap: 15px;
    }
    
    .footer-social a {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .footer-social a:hover {
        background-color: #f8d56b;
        color: #4a148c;
        transform: translateY(-3px);
    }
    
    .footer-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }
    
    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background-color: #f8d56b;
    }
    
    .footer-links {
        list-style: none;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        color: #e1bee7;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .footer-links a:hover {
        color: #f8d56b;
        transform: translateX(5px);
    }
    
    .footer-info p {
        margin-bottom: 15px;
        display: flex;
        align-items: flex-start;
    }
    
    .footer-info i {
        margin-right: 10px;
        color: #f8d56b;
        min-width: 20px;
        text-align: center;
    }
    
    
    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .newsletter-form input {
        padding: 12px;
        border-radius: 5px;
        border: none;
        font-size: 1rem;
    }

    
    .newsletter-form button {
        background-color: #f8d56b;
        color: #4a148c;
        border: none;
        padding: 12px;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    #i4jo {

        background-color: #f8d56b;
        color: #4a148c;
        border: none;
        padding: 12px;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
}
    
    .newsletter-form button:hover {
        background-color: #ffc107;
    }

     #i4jo:hover {
        background-color: #ffc107;
}
    
    .footer-partners h4 {
        margin-bottom: 15px;
        font-size: 1.1rem;
    }
    
    .partners-grid {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .partners-grid img {
        max-height: 40px !important;
        width: auto;
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .partners-grid img:hover {
        opacity: 1;
    }
    
    .footer-bottom {
        background-color: #3a0a70;
        padding: 20px;
        margin-top: 40px;
    }
    
    .footer-legal {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .legal-links {
        display: flex;
        gap: 20px;
    }
    
    .legal-links a {
        color: #e1bee7;
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .legal-links a:hover {
        color: #f8d56b;
    }
    
    .footer-credits {
        max-width: 1200px;
        margin: 20px auto 0;
        text-align: center;
        font-size: 0.9rem;
        color: #e1bee7;
    }
    
    .footer-credits a {
        color: #f8d56b;
        text-decoration: none;
    }
    
    .footer-credits a:hover {
        text-decoration: underline;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .footer-container {
            grid-template-columns: 1fr 1fr;
        }
        
        .footer-legal {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }
        
        .legal-links {
            justify-content: center;
        }
    }
    
    @media (max-width: 480px) {
        .footer-container {
            grid-template-columns: 1fr;
        }
    }
    
    /* Ajustes para cuando la barra de administración de WordPress está visible */
body.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
    .single-post {
        padding-top: 10px !important;
    }
}

/* Estructura para páginas con barra lateral */
.page-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
    gap: 40px;
}

.page-title {
    color: #4a148c;

}

.site-main {
    flex: 1;
    min-width: 300px;
}

.widget-area {
    width: 300px;
    flex-shrink: 0;
}

/* Estilos para el contenido de la página */

.entry-title {
    color: #4a148c;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.entry-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #f8d56b;
}



/* Estilos para los widgets */
.widget {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.widget-title {
    color: #4a148c;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8d56b;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: #6a1b9a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget a:hover {
    color: #f8d56b;
}

/* Responsive */
@media (max-width: 900px) {
    .page-container {
        flex-direction: column;
    }
    
    .widget-area {
        width: 100%;
        order: -1;
        margin-bottom: 40px;
    }
    
    .entry-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-container {
        margin-top: 70px;
        padding: 0 15px;
        gap: 30px;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
}


/* Estructura para páginas sin barra lateral */
.page-container-full {
    max-width: 1000px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.site-main-full {
    width: 100%;
}

/* Estilos para la imagen destacada */
.featured-image-container {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}
.entry-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilos para el contenido de página completa */
.entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0e6ff;
}

.entry-meta {
    color: #4a148c;
    padding: 10px;
}

.single-post {
    padding-top: 20px;
}

/* Estilos mejorados para el contenido de la página */
.no-posts-found h3 { 
    color: #000000;
}
.no-posts-found p { 
    color: #000000;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    color: #4a148c;
    font-size: 1.8rem;
    margin: 1.8em 0 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #f8d56b;
}

.entry-content h3 {
    color: #6a1b9a;
    font-size: 1.5rem;
    margin: 1.5em 0 0.7em;
}




.entry-content h4 {
    color: #8e24aa;
    font-size: 1.3rem;
    margin: 1.3em 0 0.6em;
}

.entry-content blockquote {
    border-left: 4px solid #f8d56b;
    padding: 20px 30px;
    margin: 2em 0;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote p {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.entry-content ul, 
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 1.8em;
}

.entry-content li {
    margin-bottom: 0.8em;
}

.entry-content table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.entry-content th,
.entry-content td {
    padding: 0.8em;
    border: 1px solid #ddd;
    text-align: left;
}

.entry-content th {
    background-color: #f0e6ff;
    color: #4a148c;
    font-weight: 600;
}

.entry-content pre {
    background-color: #f9f9f9;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    border-left: 4px solid #4a148c;
}

.entry-content code {
    background-color: #f0e6ff;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

/* Estilos para enlaces dentro del contenido */
.entry-content a {
    color: #6a1b9a;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted #6a1b9a;
}

.entry-content a:hover {
    color: #f8d56b;
    border-bottom: 1px solid #f8d56b;
}

/* Botones de paginación dentro del contenido */
.page-links {
    margin: 2em 0;
    font-weight: bold;
}

.page-links a {
    background-color: #4a148c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    margin: 0 3px;
    text-decoration: none;
    border-bottom: none;
}

.page-links a:hover {
    background-color: #f8d56b;
    color: #4a148c;
}

/* Footer de la entrada */
.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
    font-size: 0.9rem;
}

.edit-link a {
    color: #6a1b9a;
    text-decoration: none;
}

.edit-link a:hover {
    color: #f8d56b;
}

/* Responsive */
@media (max-width: 768px) {
    .page-container-full {
        padding: 0 15px;
    }  
    

   
    .featured-image-container {
        margin-bottom: 30px;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .entry-content h2 {
        font-size: 1.7rem;
    }
    
    .entry-content h3 {
        font-size: 1.4rem;
    }
    
    .entry-content blockquote {
        padding: 15px 20px;
        margin: 1.5em 0;
    }
    
    .entry-content blockquote p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.3rem;
    }
    
    .entry-content ul, 
    .entry-content ol {
        padding-left: 1.2em;
    }
}


/* Barra de navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(74, 20, 140, 0.95);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 60px;
    max-width: 100vw;
}
        

.navbar.scrolled {
    background-color: rgba(54, 10, 120, 0.98);
    padding: 8px 20px;
}

.logo-nav {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-nav {
    height: 40px;
}

/* Menú principal */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: start;
}

.nav-links > li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0px 10px;
    display: block;
}

.nav-links a:hover {
    color: #f8d56b;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #f8d56b;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after {
    width: 100%;
}

/* Submenús */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(74, 20, 140, 0.98);
    min-width: 220px;
    padding: 0px 0px 10px 0px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
}

.nav-links li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu li {
    margin: 0;
    width: 100%;
    height: 4vh;
}

.nav-links .sub-menu a {
    padding: 12px 20px;
    color: #fff;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links .sub-menu a:hover {
    background-color: rgba(248, 213, 107, 0.1);
    color: #f8d56b;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
        
/* Language toggle */
.language-toggle {
    position: absolute;
    left: 120px;
    z-index: 1001;
    display: flex;
    gap: 5px;
}

.language-toggle button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.language-toggle button.active {
    background: #fff;
    color: #333;
}

.navbar.scrolled ~ .language-toggle {
    top: 15px;
}
        
     
        /* Animaciones */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideInDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        @keyframes slideInUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        /* Responsive */

        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }
            
            .subtitle {
                font-size: 1.4rem;
            }
            
            .logo {
                width: 90px;
                margin-bottom: 0px;
            }
            
            .info-box {
                padding: 15px;
            }
            
            .navbar {
                padding: 10px 15px;
            }
            
            .logo-nav {
                height: 40px;
            }
            .hero {
                height: 110vh;
                justify-content: start;
            }
        }

/* Responsive */
@media (max-width: 1024px) {

    
    .nav-links a {
        padding: 10px;
        font-size: 1.1rem;
    }
    
    .nav-links .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(248, 213, 107, 0.1);
        box-shadow: none;
      /*  max-height: 0;*/
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        list-style: none;
        display: block;
    }
    
    .nav-links .sub-menu.show {
        max-height: 500px;
    }
    
    .nav-links .sub-menu a {
        padding: 12px 15px 12px 30px;
        font-size: 1rem;
    }
    
    .language-toggle {
        position: static;
        margin-left: 15px;
        margin-right: auto;
    }
                .nav-links {
                position: absolute;
                right: 0;
                top: 60px;
                background-color: rgba(74, 20, 140, 0.95);
                width: 100%;
                flex-direction: column;
                align-items: unset;
                clip-path: circle(0px at 90% -10%);
                -webkit-clip-path: circle(0px at 90% -10%);
                transition: all 0.7s ease-out;
                pointer-events: none;
                display: unset;
            }
            
            .navbar.scrolled .nav-links {
                top: 60px;
            }
            
            .nav-links.open {
                clip-path: circle(1000px at 90% -10%);
                -webkit-clip-path: circle(1000px at 90% -10%);
                pointer-events: all;
            }
            
            .nav-links li {
              /*  margin: 20px 0;*/
                opacity: 0;
            }
            
            .nav-links li:nth-child(1) {
                transition: all 0.5s ease 0.2s;
            }
            
            .nav-links li:nth-child(2) {
                transition: all 0.5s ease 0.3s;
            }
            
            .nav-links li:nth-child(3) {
                transition: all 0.5s ease 0.4s;
            }
            
            .nav-links li:nth-child(4) {
                transition: all 0.5s ease 0.5s;
            }
            
            .nav-links li:nth-child(5) {
                transition: all 0.5s ease 0.6s;
            }
            
            .nav-links li:nth-child(6) {
                transition: all 0.5s ease 0.7s;
            }
            
            .nav-links li.fade {
                opacity: 1;
            }
            
            .hamburger {
                display: block;
            }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .logo-nav {
        height: 35px;
    }
    
    .language-toggle button {
        padding: 4px 8px;
        font-size: 0.9rem;
    }
}

/* Cambiar color de la barra de navegación en Android */
@media (max-width: 768px) {
    @supports (padding: max(0px)) {
        body {
            padding-bottom: constant(safe-area-inset-bottom);
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
    
    /* Meta tag equivalente en CSS para navegadores que lo soporten */
    /* Esto cambiará el color de la barra de navegación a morado oscuro */
    :root {
        --color-primary: #4a148c;
    }
    
    /* Para navegadores basados en WebKit/Blink (Chrome, Edge, Samsung Internet) */
    @media (prefers-color-scheme: light) {
        body {
            /* Color de la barra de navegación */
            --nav-bg-color: #4a148c;
            --nav-icon-color: #000000;
        }
    }
}

.member-image {
    margin: 0 !important;
}

/* Estilos para comentarios */
.comments-area {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.comments-title {
    color: #4a148c;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0e6ff;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4a148c;
}

.comment.depth-1 {
    border-left-color: #4a148c;
}

.comment.depth-2 {
    border-left-color: #6a1b9a;
    margin-left: 40px;
}

.comment.depth-3 {
    border-left-color: #8e24aa;
    margin-left: 80px;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author {
    color: #4a148c;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.comment-author a {
    color: inherit;
    text-decoration: none;
}

.comment-author a:hover {
    color: #6a1b9a;
    text-decoration: underline;
}

.comment-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.comment-details i {
    margin-right: 5px;
    color: #6a1b9a;
}

.comment-awaiting-moderation {
    color: #e65100;
    font-weight: 600;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.reply-link a,
.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #f0e6ff;
    color: #4a148c;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reply-link a:hover,
.edit-link a:hover {
    background: #4a148c;
    color: white;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: #f0e6ff;
    border-radius: 8px;
}

.nav-previous a,
.nav-next a {
    color: #4a148c;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #6a1b9a;
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Formulario de comentarios */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-reply-title {
    color: #4a148c;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: #4a148c;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0e6ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #4a148c;
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.required {
    color: #e65100;
}

.comment-notes {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.logged-in-as {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.form-submit {
    grid-column: 1 / -1;
    text-align: right;
}

.submit {
    background: #4a148c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit:hover {
    background: #6a1b9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .comments-area {
        padding: 20px;
        margin-top: 30px;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
    
    .comment {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .comment.depth-2,
    .comment.depth-3 {
        margin-left: 20px;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-actions {
        justify-content: center;
    }
    
    .comment-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .comment-author {
        font-size: 1rem;
    }
    
    .comment-text {
        font-size: 0.95rem;
    }
    
    .comment-respond {
        padding: 20px;
    }
    
    .comment-reply-title {
        font-size: 1.3rem;
    }
}

/* Estilos para la sección de Anuncios Regulares */
.anuncios-regulares {
    background: #ffffff;
    padding: 80px 20px;
    margin: 0 auto;
}

.anuncios-container {
    max-width: 1200px;
    margin: 0 auto;
}

.anuncios-titulo {
    text-align: center;
    color: #4a148c;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.anuncios-titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f8d56b;
}

.anuncios-subtitulo {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.anuncio-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.anuncio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.anuncio-imagen-container {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* Proporción 3:4 (4/3 = 1.3333) */
    overflow: hidden;
}

.anuncio-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.anuncio-card:hover .anuncio-imagen {
    transform: scale(1.05);
}

.anuncio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4a148c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.anuncio-badge.destacado {
    background: #f8d56b;
    color: #4a148c;
}

.anuncio-contenido {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.anuncio-titulo {
    color: #4a148c;
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.anuncio-descripcion {
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.anuncio-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.anuncio-fecha,
.anuncio-lugar {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
}

.anuncio-fecha i,
.anuncio-lugar i {
    color: #6a1b9a;
}

.anuncio-boton {
    display: inline-block;
    background: #4a148c;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.anuncio-boton:hover {
    background: #6a1b9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
}

.anuncios-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: #666;
}

.anuncios-enlace {
    color: #4a148c;
    font-weight: 600;
    text-decoration: none;
}

.anuncios-enlace:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .anuncios-regulares {
        padding: 50px 15px;
    }
    
    .anuncios-titulo {
        font-size: 2rem;
    }
    
    .anuncios-subtitulo {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .anuncios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .anuncio-contenido {
        padding: 20px;
    }
    
    .anuncio-titulo {
        font-size: 1.3rem;
    }
    
    .anuncio-metadata {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .anuncios-titulo {
        font-size: 1.8rem;
    }
    
    .anuncio-card {
        margin: 0 10px;
    }
    
    .anuncio-boton {
        padding: 10px 20px;
    }
}

/* Breadcrumb */
.breadcrumb-container {
    margin-bottom: 30px;
    padding: 15px 0;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin-right: 5px;
    font-size: 0.9rem;
    color: #6a1b9a;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 5px;
    color: #6a1b9a;
}

.breadcrumb a {
    color: #6a1b9a;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #4a148c;
    text-decoration: underline;
}

/* Grid de categorías mejorado */
.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.category-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.17);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-post-card .post-thumbnail {
    position: relative;
    width: 100%;

    overflow: hidden;
}

.category-post-card .post-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    aspect-ratio: 16 / 9;
}

.category-post-card:hover .post-image {
    transform: scale(1.05);
}

.category-post-card .post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-post-card .post-title {
    color: #4a148c;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.category-post-card .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-post-card .post-title a:hover {
    color: #6a1b9a;
}

.category-post-card .post-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.category-post-card .post-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.category-post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a148c;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.category-post-card .read-more:hover {
    background: #6a1b9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
}

/* Paginación mejorada */
.category-pagination {
    margin-top: 50px;
}

.category-pagination .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 5px;
    padding: 15px;
    gap: 8px;
    background-color: #4a148c;
    border-radius: 8px;
}

.category-pagination .page-numbers li {
    margin: 0;
}

.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-pagination .page-numbers a {
    background: #f0e6ff;
    color: #4a148c;
}

.category-pagination .page-numbers a:hover {
    background: #4a148c;
    color: white;
}

.category-pagination .current {
    background: white;
    color: #4a148c;
    font-weight: bold;
    border: 1px solid #4a148c;
}

.category-pagination .page-numbers .prev,
.category-pagination .page-numbers .next {
    background: #4a148c;
    color: white;
}

.category-pagination .page-numbers .prev:hover,
.category-pagination .page-numbers .next:hover {
    background: #6a1b9a;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-post-card .post-content {
        padding: 20px;
    }
    
    .breadcrumb-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .category-pagination .page-numbers a,
    .category-pagination .page-numbers span {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Estilo para ampliar la caja de email del newsletter (Español) */
    #esfpx_email_abf522dc616f6 {
        width: 100%;
}

/* Sección de Últimas Publicaciones */
.latest-posts-section {
    background: #e8eaf6;
    padding: 80px 0;
}

.latest-posts-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #4a148c;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f8d56b;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a148c;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #6a1b9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(74, 20, 140, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .overlay {
    opacity: 1;
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #6a1b9a;
    font-size: 0.8rem;
}

.post-title {
    margin: 0 0 15px 0;
}

.post-title a {
    color: #4a148c;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #6a1b9a;
}

.post-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-excerpt p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a148c;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #6a1b9a;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-posts-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .latest-posts-section .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .view-all-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-title a {
        font-size: 1.2rem;
    }
}

/* === ANIMACIONES UNIFICADAS PARA TODAS LAS SECCIONES === */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-card {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.6s ease-out;
}

.animate-card.animated {
    opacity: 1;
    transform: translateX(0);
}

/* === MEDIA QUERIES PARA MÓVILES === */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateX(50px);
    }
    
    .animate-card {
        transform: translateX(40px);
    }
}

/* Animación más sutil solo para el footer */
.site-footer.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.site-footer.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Las columnas del footer con fade simple */
.site-footer .footer-column.animate-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.site-footer .footer-column.animate-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* En móviles, desactivar todas las animaciones */
@media (max-width: 768px) {
    .animate-on-scroll,
    .animate-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        clip-path: none !important;
    }
}