﻿/* ==========================================
   ESTILOS GENERALES
   ========================================== */
@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* ==========================================
   HEADER / NAVEGACIÃ“N
   ========================================== */

.header {
    background: linear-gradient(to right, #003366, #004d99);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 8px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 85px;
    width: 85px;
    border-radius: 50%;
    background: transparent;
    padding: 3px;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
}

.nav-link:hover {
    color: #fcd34d;
}

.carrito-link {
    background-color: #fcd34d;
    color: #003366;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
}

/* MENÃš HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   SECCIÃ“N HERO FUSIONADA
   ========================================== */

.hero-fusionado {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-contenido {
    color: white;
    z-index: 2;
}

.hero-contenido h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-contenido p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-contenido h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-contenido .subtitulo {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-imagen {
    position: relative;
    z-index: 2;
}

.espiritualidad-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.espiritualidad-img:hover {
    transform: scale(1.05);
}

.btn-hero {
    display: inline-block;
    background-color: #fcd34d;
    color: #003366;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 15px;
}

.btn-hero:hover {
    background-color: #fbbf24;
    transform: translateY(-2px);
}

/* ==========================================
   CARRITO LATERAL
   ========================================== */

.carrito-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.carrito-sidebar.active {
    right: 0;
}

.carrito-header {
    background: #003366;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-carrito {
    background: none;
    color: white;
    font-size: 20px;
}

.carrito-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.carrito-item {
    background-color: #f5f5f5;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.carrito-footer {
    border-top: 1px solid #ddd;
    padding: 15px;
}

.btn-checkout {
    width: 100%;
    background-color: #fcd34d;
    color: #003366;
    padding: 10px;
    font-weight: bold;
    border-radius: 6px;
}

/* ==========================================
   CONTENIDO PRINCIPAL
   ========================================== */

.main-content {
    padding: 40px 0;
}

/* ==========================================
   SECCIÃ“N: SERVICIOS (CARRUSEL)
   ========================================== */

.servicios-carousel-section {
    margin-bottom: 60px;
        overflow: visible;
}

.servicios-carousel-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #003366;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-track {
     display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.carousel-slide {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
  
}

@media (max-width: 992px) {
    .carousel-slide {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        min-width: 100%;
    }
}

.servicio-card-mini {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 350px;
    position: relative;
}

.servicio-img-container {
    width: 100%;
    height: 100%;
    position: relative;
       user-select: none;
}

.servicio-img-container img {
    width: 100%;
    height: 99%;
    object-fit: cover;
       user-select: none;
}

.servicio-overlay-mini {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
    padding: 20px;
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.servicio-card-mini:hover .servicio-overlay-mini {
    height: 100%;
    justify-content: center;
    background: rgba(0, 51, 102, 0.9);
}

.servicio-overlay-mini h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.servicio-overlay-mini p {
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
    line-height: 1.4;
}

.servicio-card-mini:hover .servicio-overlay-mini p {
    display: block;
}

.servicio-precio-mini {
    font-weight: bold;
    color: #fcd34d;
    font-size: 15px;
    margin-bottom: 10px;
}

.btn-reservar-mini {
    background-color: #fcd34d;
    color: #003366;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
    align-self: flex-start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #003366;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }





/* ==========================================
   SECCIÃ“N: CURSOS
   ========================================== */
   
   
   
   
   

.cursos-section {
    margin-bottom: 60px;
    background-color: #f9f9f9;
    padding: 40px 20px;
    border-radius: 10px;
}

.cursos-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #003366;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.curso-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que todas las tarjetas de la fila tengan la misma altura */
}

.curso-imagen {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.curso-icon { font-size: 45px; }

.curso-card h3 {
    font-size: 19px;
    padding: 20px 20px 10px;
}

.curso-card p {
    padding: 0 20px 15px;
    font-size: 14px;
    color: #666;
    flex-grow: 1;
}

.curso-duracion {
    padding: 0 20px;
    font-size: 13px;
    color: #999;
}

.curso-precio {
    padding: 15px 20px;
    font-weight: bold;
    color: #003366;
    font-size: 20px;
}

.btn-agregar-carrito {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px;
    background-color: #fcd34d;
    color: #003366;
    border-radius: 6px;
    font-weight: bold;
    margin-top: auto; /* SOLUCIÃ“N: Empuja el botÃ³n siempre al fondo de la tarjeta */
}




/* ==========================================================================
   MÓDULO: areacss (Acceso Clientes)
   ========================================================================== */

.login-section {
    padding: 80px 0;
    background-color: #fafafa;
    text-align: center;
}

.login-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid #d4af37; /* Detalle dorado del Reverendo */
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* CRÍTICO: Evita que el input se salga del contenedor */
}

.login-form input:focus {
    outline: none;
    border-color: #d4af37;
    background-color: #fffcf5;
}

.btn-login-submit {
    width: 100%;
    padding: 15px;
    background-color: #d4af37;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-login-submit:hover {
    background-color: #b8962d;
}

.login-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    flex-wrap: wrap; /* Para que en móviles no se corten los textos */
}

.login-links a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #d4af37;
}

.separador {
    color: #ccc;
}







/* ==========================================
   SECCIÃ“N: CONTACTO
   ========================================== */

.contacto-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #003366;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacto-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #003366;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item span {
    font-size: 26px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
}

.btn-enviar {
    background-color: #fcd34d;
    color: #003366;
    padding: 14px;
    font-weight: bold;
    border-radius: 6px;
}

/* ==========================================
   MODAL DE RESERVA
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 550px;
    width: 95%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.close-modal {
    background: none;
    font-size: 28px;
    color: #333;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #003366;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-confirmar {
    background-color: #fcd34d;
    color: #003366;
    padding: 14px;
    font-weight: bold;
    border-radius: 6px;
    width: 100%;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, #003366, #004d99);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .header-nav.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-contenido h2 {
        font-size: 30px;
    }

    .hero-contenido h3 {
        font-size: 22px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 15px;
    }

    .logo-img {
        height: 60px;
        width: 60px;
    }

    /* AJUSTES CRÃTICOS PARA MÃ“VIL */
    .servicio-card-mini {
        height: 200px; /* Un poco mÃ¡s alto para dar aire */
        width:250px;
    }

    .servicio-overlay-mini {
        height: auto; /* Altura automÃ¡tica para que no se corte */
        min-height: 180px; /* Espacio base mÃ­nimo */
        padding: 12px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.98));
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        word-wrap: break-word; /* Ajuste de lÃ­nea automÃ¡tico */
        overflow-wrap: break-word;
    }
    
    .servicio-overlay-mini h3 {
        font-size: 10px;
        margin-bottom: 10px;
        white-space: normal; /* Permitir varias lÃ­neas en el tÃ­tulo si es necesario */
    }
    
    .servicio-overlay-mini p {
        font-size: 10px;
        line-height: 1.5;
        display: block !important; /* Siempre visible en mÃ³vil */
        white-space: normal; /* Forzar varias lÃ­neas */
        margin-bottom: 15px;
        padding-right: 5px;
        max-height: none; /* Quitar lÃ­mite de altura para que se vea todo */
        overflow: visible;
    }
    
    .servicio-card-mini:hover .servicio-overlay-mini {
        height: 100%;
        justify-content: center; /* Centrar al hacer hover para leer mejor */
        background: rgba(0, 51, 102, 0.95);
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-contenido h2 {
        font-size: 26px;
    }

    .hero-contenido p {
        font-size: 15px;
    }

    .hero-contenido h3 {
        font-size: 20px;
    }

    .carousel-container {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .servicios-carousel-section h2 {
        font-size: 24px;
    }

    .cursos-section h2 {
        font-size: 24px;
    }

    .contacto-section h2 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================================
   RESPONSIVE (Adaptación Móvil)
   ========================================================================== */

@media (max-width: 768px) {
    .login-section {
        padding: 60px 20px;
    }
    
    .login-container {
        padding: 30px 20px;
        width: 100%;
    }

    .login-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .login-links {
        flex-direction: column; /* Apilamos los enlaces en móviles pequeños */
        gap: 12px;
    }
    
    .separador {
        display: none; /* Quitamos el "|" si están uno sobre otro */
    }
}



/* ==========================================
   BANER DE COOKIES Y OVERLAY
   ========================================== */

/* Capa que oscurece y desenfoca el fondo */
.blur-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Oscurece la pantalla */
    backdrop-filter: blur(4px);    /* Efecto de desenfoque */
    z-index: 1500;                 /* Por debajo del banner pero sobre el resto */
}

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #003366, #004d99);
    color: white;
    padding: 25px;
    z-index: 2000; /* Siempre al frente */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    display: none; /* Se controla por JS */
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.cookies-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fcd34d;
}

.cookies-text p {
    font-size: 0.9rem;
    margin: 0;
}

.cookies-buttons {
    display: flex;
    gap: 12px;
}

.btn-accept-cookies, .btn-reject-cookies {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-accept-cookies {
    background-color: #fcd34d;
    color: #003366;
    border: none;
}

.btn-accept-cookies:hover {
    background-color: #fbbf24;
    transform: scale(1.05);
}

.btn-reject-cookies {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-reject-cookies:hover {
    background: rgba(255,255,255,0.1);
}

/* Estado inicial: ocultos */
.blur-overlay, .cookies-banner {
    display: none; 
}

/* Estado activo: se muestran al añadir esta clase con JS */
.blur-overlay.active {
    display: block;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Oscurece la pantalla */
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.cookies-banner.active {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to right, #003366, #004d99);
    color: white;
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Estilos de botones (los que ya tenías) */
.cookies-content { display: flex; justify-content: center; align-items: center; gap: 20px; max-width: 1000px; margin: auto; }
.btn-accept-cookies { background: #fcd34d; color: #003366; border: none; padding: 10px 20px; cursor: pointer; font-weight: bold; }
.btn-reject-cookies { background: transparent; color: white; border: 1px solid white; padding: 10px 20px; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
    .cookies-content { flex-direction: column; text-align: center; }
    .cookies-buttons { width: 100%; justify-content: center; }
}
