/* Estilos generales */
:root {
    --background: #c6e3ff;
    --text: #2D3748;
    --primary: #410505;
    --primary-hover: #8f0e05;
    --accent: #0077ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Banner superior */
.main-banner {
    position: relative;
    width: 100%;
    height: 410px; /* Mantener la altura actual, pero asegurar que sea suficiente */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

/* Contenedor del logo y el botón de contacto */
/* Modificar el contenedor del logo para posicionarlo en la esquina superior izquierda */
.banner-overlay {
    position: absolute;
    top: 20px; /* Reducido el espacio desde arriba */
    left: 20px; /* Margen izquierdo desde el borde */
    transform: none; /* Eliminamos la transformación que centraba el logo */
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10; /* Aseguramos que esté por encima de otros elementos */
}

/* Ajustamos el tamaño del logo para que sea apropiado en la esquina */
.banner-overlay .logo {
    height: 80px; /* Mantenemos el tamaño original o ajustamos según necesidad */
}

/* Estilos del botón de contacto */
.banner-overlay .toggle-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.banner-overlay .toggle-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Contenido del banner */
.main-banner-content {
    position: absolute;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    bottom: 80px; /* Subido desde 50px para dar más espacio */
}

.main-banner-content h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}

.main-banner-content p {
    font-size: 20px;
    margin-bottom: 15px; /* Reducido de 20px para acercar más el botón */
}

/* Ajuste específico para el botón de contacto */
.main-banner-button {
    margin-bottom: 10px; /* Añade espacio específico debajo del botón */
}


.main-banner-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-banner-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toggle-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-info {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.contact-pill {
    display: inline-block;
    background-color: #f1f1f1;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
}

/* Ocultar redes sociales por defecto */
/* Corrección para los iconos sociales - posicionados debajo del botón */
#socialIcons {
    position: absolute;
    top: calc(100% + 5px); /* Reducido de 10px a 5px para estar más cerca del botón */
    left: 50%;
    transform: translateX(-50%);
    gap: 15px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px; /* Reducido el padding para hacerlo más compacto */
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#socialIcons.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Estilos mejorados para los iconos sociales */
.social-bubble {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 5px; /* Espacio entre los iconos */
}

.social-bubble:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Encabezado */
.section-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(63, 65, 202, 0.7) 100%);
    padding: 30px 0;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Efecto de patrón de fondo */
.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.section-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.header {
    background-color: var(--primary);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: white;
    font-size: 24px;
}

/* Estilos adicionales para la alineación y separación de secciones */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-spacer {
    height: 40px;
}

/* Asegura que el contenido del promo section esté alineado correctamente */
.content-container .promo-section {
    width: 100%;
    padding: 0;
}

/* Ajuste adicional para el sección header dentro del contenedor */
.content-container .section-header {
    margin-bottom: 30px;
}

/* Estilos adicionales para mejorar la alineación */

/* Contenedor principal con ancho máximo constante */
.main-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Ajustar el section-header para alinearlo correctamente */
.main-content-container .section-header {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Ajustar la sección de promo */
.main-content-container .promo-section {
    width: 100%;
    padding: 20px 0;
    margin: 0;
    box-sizing: border-box;
    gap: 20px;
}

/* Espaciador con altura ajustable */
.section-spacer {
    height: 60px;
    width: 100%;
}

/* Asegurarse de que los elementos internos respeten el contenedor */
.promo-banner, .promo-video {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
}

/* Contenedor Banner - Aumentando altura y manteniendo proporciones */
.promo-banner {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    border: 3px solid #460505;
    background-color: #000; /* Negro como fallback neutral */
    padding: 0;
    height: 500px; /* Aumentado de 300px a 400px */
}

/* Contenedor Video - Dimensiones sincronizadas con el banner */
.promo-video {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #460505;
    background-color: #000; /* Negro como fallback neutral */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; /* Aumentado de 300px a 400px para mantener coherencia */
    padding: 0;
    position: relative;
}

/* Asegurando que el contenido interno se ajuste a las nuevas dimensiones */
.banner-image, .video-content {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Eliminar padding extra que podría estar afectando la alineación */
.promo-section {
    padding: 20px 0;
}

/* Media queries para ajustar en dispositivos móviles */
@media (max-width: 768px) {
    .main-content-container {
        padding: 0 15px;
    }
    
    .promo-section {
        flex-direction: column;
    }
    
    .section-spacer {
        height: 40px;
    }
}

/* Estilo del título de sección */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.section-title i {
    font-size: 24px;
    margin-right: 12px;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.section-title h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 1.5px;
    position: relative;
}

/* Línea decorativa bajo el título */
.section-title h2::after {
    content: '';
    display: block;
    width: 80%;
    height: 3px;
    background: white;
    margin: 5px auto 0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Subtítulo de sección */
.section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 300;
}

/* Subtítulo de sección */
.section-header:not(.header) .section-subtitle {
    color: #ffffff; /* Cambié el color a amarillo como ejemplo */
    font-size: 16px;
    max-width: 1000px;
    margin: 30 auto;
    line-height: 1.5;
    font-weight: 300;
}
/* Estilos para encabezados de la sección Featured */
.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(to right, var(--primary), rgba(63, 65, 202, 0.7));
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-title {
    display: flex;
    align-items: center;
}

.featured-title i {
    font-size: 24px;
    color: white;
    margin-right: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.featured-title h2 {
    color: white;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sección de ministerios (anteriormente categorías) */
.ministries-section {
    padding: 20px;
    overflow-x: auto;
    background-color: rgba(255, 255, 255, 0.5);
}

.ministries-container {
    display: flex;
    gap: 15px;
    min-width: min-content;
}

.ministry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.ministry-item:hover {
    transform: translateY(-5px);
}

.ministry-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ministry-item:hover .ministry-circle {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ministry-icon {
    font-size: 24px;
}

.ministry-name {
    font-size: 14px;
    text-align: center;
}

/* Promo section con banner y video */
.promo-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    /* Puedes añadir un borde general si lo deseas */
    /* border: 1px solid #3f41ca; */
    /* O un fondo sutilmente diferente */
    /* background-color: rgba(63, 65, 202, 0.05); */
}

.promo-banner {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none; /* Eliminamos la sombra */
    border: 3px solid #460505; /* Borde azul principal */
    background-color: #3f41ca; /* Fondo del mismo color */
    padding: 0; /* Sin padding */
}

.banner-image {
    width: 100%;
    object-fit: cover;
    border: none; /* Sin bordes internos */
    display: block; /* Evita espacios invisibles */
    margin: 0; /* Sin márgenes */
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.promo-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.promo-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.promo-video {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none; /* Eliminamos la sombra que podría estar creando el efecto */
    border: 3px solid #3a0a0a; /* Borde azul principal */
    background-color: #3f41ca; /* Fondo del mismo color */
    padding: 0; /* Aseguramos que no haya padding */
}

.video-content {
    width: 100%;
    object-fit: cover;
    border: none; /* Eliminamos cualquier borde interno */
    display: block; /* Asegura que no haya espacios invisibles */
    margin: 0; /* Sin márgenes */
}

/* Sección de eventos destacados */
.featured-section {
    padding: 20px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.featured-title {
    display: flex;
    align-items: center;
}

.featured-title i {
    color: var(--primary);
    font-size: 24px;
    margin-right: 10px;
}

.featured-controls {
    display: flex;
    gap: 10px;
}

.featured-nav-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.featured-nav-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.featured-carousel {
    width: 100%;
    overflow: hidden;
}

.featured-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.event-card {
    flex: 0 0 300px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.event-image {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.event-content {
    padding: 15px;
}

.event-date {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.event-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Grid de eventos */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.sermon-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sermon-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.sermon-content {
    padding: 15px;
}

.sermon-date {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
}

.sermon-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sermon-speaker {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.speaker-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 10px;
}

.speaker-name {
    font-size: 14px;
    color: #666;
}

.sermon-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.sermon-actions {
    display: flex;
    gap: 10px;
}

.sermon-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    padding: 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sermon-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sermon-button i {
    margin-right: 5px;
}

/* Sección de categorías */
.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
}

.section-title i {
    font-size: 28px;
    color: var(--primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text);
    margin-top: 10px;
}

/* Estilos radicalmente modernos para el grid de categorías */
.categoria-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Fondo con efecto de onda para la sección completa */
.categoria-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(63, 65, 202, 0.05) 0%, rgba(100, 223, 223, 0.1) 100%);
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(63, 65, 202, 0.2) 0%, transparent 70%);
    opacity: 0.4;
    mix-blend-mode: overlay;
    animation: wave-animation 15s infinite linear;
}

@keyframes wave-animation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos modernos y compactos para el grid de categorías */
.categoria-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
}

/* Grid más compacto y uniforme */
.categoria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

/* Estilo de tarjeta */
.categoria-item {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.categoria-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(63, 65, 202, 0.3);
}

/* Contenedor de imagen */
.categoria-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.categoria-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.85);
}

.categoria-item:hover .categoria-img img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Efecto de color al hacer hover */
.categoria-color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    opacity: 1;
    transition: all 0.5s ease;
}

/* Colores personalizados para cada categoría en hover */
.categoria-item:nth-child(1):hover .categoria-color-overlay {
    background: linear-gradient(45deg, rgba(100, 0, 255, 0.7) 0%, rgba(100, 0, 255, 0) 100%);
}

.categoria-item:nth-child(2):hover .categoria-color-overlay {
    background: linear-gradient(45deg, rgba(0, 150, 255, 0.7) 0%, rgba(0, 150, 255, 0) 100%);
}

.categoria-item:nth-child(3):hover .categoria-color-overlay {
    background: linear-gradient(45deg, rgba(255, 0, 128, 0.7) 0%, rgba(255, 0, 128, 0) 100%);
}

.categoria-item:nth-child(4):hover .categoria-color-overlay {
    background: linear-gradient(45deg, rgba(0, 200, 100, 0.7) 0%, rgba(0, 200, 100, 0) 100%);
}

/* Contenido de texto */
.categoria-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s ease;
}

.categoria-item:hover .categoria-content {
    transform: translateY(-5px);
}

/* Título */
.categoria-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.categoria-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.4s ease;
}

.categoria-item:hover .categoria-title::after {
    width: 100%;
}

/* Botón */
.categoria-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.categoria-item:hover .categoria-btn {
    opacity: 1;
    transform: translateY(0);
}

.categoria-btn span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.categoria-btn i {
    margin-left: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Efecto de relleno del botón */
.categoria-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: white;
    z-index: 1;
    transition: all 0.4s ease;
}

.categoria-btn:hover {
    transform: translateY(-3px);
}

.categoria-btn:hover::before {
    width: 100%;
}

.categoria-btn:hover span,
.categoria-btn:hover i {
    color: rgba(63, 65, 202, 1);
}

.categoria-btn:hover i {
    transform: translateX(3px);
}

/* Icono */
.categoria-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.categoria-item:hover .categoria-icon {
    opacity: 1;
    transform: translateY(0);
}

.categoria-icon i {
    font-size: 18px;
    color: #3f41ca;
}

/* Borde brillante en hover */
.categoria-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3f41ca, #64DFDF, #3f41ca);
    background-size: 400% 400%;
    z-index: 0;
    border-radius: 18px;
    opacity: 0;
    transition: all 0.6s ease;
}

.categoria-item:hover::after {
    opacity: 1;
    animation: borderGradient 3s ease infinite;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .categoria-grid {
        grid-template-columns: 1fr;
    }
    
    .categoria-item {
        height: 180px;
    }
    
    .categoria-title {
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .categoria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    
    .header h1 {
        font-size: 20px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 16px;
    }

/* Estilos responsivos */
@media (max-width: 768px) {
    .section-header {
        padding: 20px 0;
    }
    
    .section-title i {
        font-size: 20px;
        padding: 10px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .featured-header {
        flex-direction: column;
        padding: 12px 15px;
    }
    
    .featured-controls {
        margin-top: 10px;
    }
}

/* Estilos para la sección de Apostolados */

/* Botón estilizado para la sección de apostolados */
.apostolados-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.apostolados-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.apostolados-button i {
    font-size: 20px;
}

/* Contenedor de la sección de apostolados */
.apostolados-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Placeholder para la sección en construcción */
.apostolados-placeholder {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,0.5);
    border-radius: 10px;
    margin: 20px 0;
    border: 1px dashed var(--primary);
}

.apostolados-placeholder p {
    color: #666;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apostolados-placeholder i {
    color: var(--primary);
    font-size: 24px;
}

/* Ajustes para el encabezado específico de apostolados */
.apostolados-header {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(99, 39, 120, 0.7) 100%);
}

/* Efectos suaves al hacer scroll a la sección */
html {
    scroll-behavior: smooth;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .apostolados-button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .apostolados-section {
        margin: 40px auto 30px;
    }
}

/* Estilos para los botones de la sección de calendario y construcción */
.calendar-button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.calendar-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-button i {
  font-size: 16px;
}

.calendar-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Estilo especial para el botón de construcción */
#openConstruccionBtn {
  background-color: #8f0e05; /* Un tono ligeramente diferente */
}

#openConstruccionBtn:hover {
  background-color: #a31207;
}

/* Ajustes responsivos */
@media (max-width: 776px) {
    .calendar-button-container {
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }
  
    .calendar-button {
      width: 90%;
      max-width: 320px;
      padding: 12px 20px;
      justify-content: center;
    }
  }
  
  

@media (max-width: 300px) {
  .calendar-button-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .calendar-button {
    width: 100%;
  }
}

/* Ajustes específicos para dispositivos móviles */
@media (max-width: 768px) {
    /* Reducción del tamaño de texto del banner */
    .main-banner-content h1 {
      font-size: 28px; /* Reducido de 42px */
    }
    
    .main-banner-content p {
      font-size: 16px; /* Reducido de 20px */
    }
    
    /* Ajuste del posicionamiento del logo */
    .banner-overlay {
      top: 10px; /* Reducido de 20px */
      left: 10px; /* Reducido de 20px */
    }
    
    .banner-overlay .logo {
      height: 70px; /* Incrementado de 60px para mayor visibilidad */
    }
  }
  
  /* Para dispositivos muy pequeños, ajustes adicionales */
  @media (max-width: 480px) {
    .main-banner-content h1 {
      font-size: 24px;
    }
    
    .main-banner-content p {
      font-size: 14px;
    }
    
    .banner-overlay .logo {
      height: 60px; /* Incrementado de 50px para conservar presencia visual */
    }
  }

  .footer {
    width: 100%;
    background-color: #410505;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 40px;
    box-sizing: border-box;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #64DFDF;
}

.footer-text {
    font-size: 14px;
    margin-top: 10px;
}

.footer-verse {
    font-style: italic;
    margin-top: 5px;
}

/* Solución optimizada del footer - Añadir al final del archivo CSS */
html, body {
    min-height: 100%;
    overflow-x: hidden;
}

#main-footer.footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
}

body::after {
    content: "";
    display: block;
    height: 0 !important;
    line-height: 0 !important;
    clear: both;
    overflow: hidden;
}

/* Añadir al último elemento interno del footer */
#main-footer > *:last-child,
#main-footer .footer-text:last-child {
    padding-bottom: 20px;
    margin-bottom: 0 !important;
}

/* Centrado del logo en dispositivos móviles */
@media (max-width: 768px) {
    .banner-overlay {
        top: 10px;
        left: 0;
        right: 5;
        width: 100%;
        justify-content: center;
        transform: none;
    }
    
    .banner-overlay .logo {
        height: 70px;
        margin: 100px;
    }
}

/* 🔧 REEMPLAZA ESTE CSS EN TU styles.css */

/* Botón de compartir flotante - CORREGIDO */
.share-container {
    position: fixed;
    bottom: 200px; /* Aumentado de 30px a 100px para separarlo del footer */
    right: 30px;
    z-index: 1500; /* Aumentado para asegurar que esté por encima de todo */
}

.share-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.share-options {
    position: absolute;
    bottom: 70px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.share-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: #8f0e05;
    text-decoration: none;
}

.share-option:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-hover);
}/* 🔧 CORRECCIÓN BOTÓN DE COMPARTIR - Reemplazar en styles.css */

/* 🔧 BOTÓN DE COMPARTIR - VERSIÓN LIMPIA Y CORREGIDA */
/* ⚠️ REEMPLAZA TODA LA SECCIÓN DE .share-container EN styles.css CON ESTE CÓDIGO */

/* Botón de compartir flotante - POSICIONAMIENTO PERFECTO */
.share-container {
    position: fixed;
    bottom: 10px; /* Separado del footer pero visible */
    right: 25px;
    z-index: 9999; /* Z-index muy alto para estar siempre visible */
    pointer-events: auto;
}

.share-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(65, 5, 5, 0.3);
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.share-button:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(65, 5, 5, 0.4);
}

.share-button:active {
    transform: translateY(-1px) scale(1.02);
}

.share-options {
    position: absolute;
    bottom: 70px; /* Posicionado arriba del botón principal */
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.share-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.share-option {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.share-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.share-option:hover::before {
    transform: translateX(100%);
}

.share-option:hover {
    transform: translateY(-3px) translateX(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

/* Animación de entrada escalonada */
.share-options.active .share-option:nth-child(1) {
    transition-delay: 0.1s;
}

.share-options.active .share-option:nth-child(2) {
    transition-delay: 0.2s;
}

.share-options.active .share-option:nth-child(3) {
    transition-delay: 0.3s;
}

/* Colores específicos para cada red social */
.share-option[id="shareFacebook"]:hover {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.share-option[id="shareWhatsapp"]:hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.share-option[id="shareInstagram"]:hover {
    background: linear-gradient(135deg, #e4405f 0%, #fd1d1d 50%, #fcb045 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .share-container {
        bottom: 70px; /* Más separado del footer en móviles */
        right: 20px;
    }
    
    .share-button {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    
    .share-option {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .share-options {
        bottom: 65px;
    }
}

@media (max-width: 480px) {
    .share-container {
        bottom: 60px;
        right: 15px;
    }
    
    .share-button {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .share-option {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .share-options {
        bottom: 58px;
        gap: 8px;
    }
}

/* Para pantallas muy altas, ajustar posición */
@media (min-height: 900px) {
    .share-container {
        bottom: 100px;
    }
}

/* Para pantallas muy bajas, mantener visibilidad */
@media (max-height: 600px) {
    .share-container {
        bottom: 50px;
    }
}

/* Asegurar que no interfiera con otros elementos */
.share-container * {
    box-sizing: border-box;
}

/* Animación de pulso sutil para llamar la atención */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 4px 15px rgba(65, 5, 5, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(65, 5, 5, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(65, 5, 5, 0.3);
    }
}

.share-button {
    animation: pulseGlow 3s ease-in-out infinite;
}

.share-button:hover {
    animation: none; /* Detener la animación en hover */
}
/* Animación de entrada escalonada para las opciones */
.share-options.active .share-option:nth-child(1) {
    transition-delay: 0.1s;
}

.share-options.active .share-option:nth-child(2) {
    transition-delay: 0.2s;
}

.share-options.active .share-option:nth-child(3) {
    transition-delay: 0.3s;
}

/* Ajustes responsivos mejorados */
@media (max-width: 768px) {
    .share-container {
        bottom: 20px;
        right: 20px;
    }
    
    .share-button {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    
    .share-option {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .share-container {
        bottom: 15px;
        right: 15px;
    }
    
    .share-button {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .share-option {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .share-options {
        bottom: 55px;
    }
}

/* Asegurar que no interfiera con el footer */
@media (max-height: 600px) {
    .share-container {
        bottom: 15px;
    }
}

/* Prevenir conflictos con otros elementos fijos */
.share-container * {
    box-sizing: border-box;
}
/* Ocultar botón de pantalla completa */
video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

video::-moz-fullscreen-button {
    display: none !important;
}
