* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* === PANTALLA DE BIENVENIDA === */
.welcome-screen {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2f3846 0%, #6683b5 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    overflow: hidden;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(6px);
    margin: 40px auto;
    z-index: 2;
}

.intro-title {
    font-size: 64px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.intro-text {
    font-size: 24px;
    color: #fff;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(100px);
}

.logo-image {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    object-fit: cover;
    margin-bottom: 20px;
}

.logo-image:hover {
    transform: scale(1.1);
}

.main-title {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 15px;
    font-size: 64px;
    color: #ae0707;
    font-weight: bold;
    letter-spacing: 8px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    max-width: 600px;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    position: relative;
}

.enter-btn {
    padding: 15px 40px;
    background: linear-gradient(45deg, #d4af37, #f4e68a);
    color: #1e3c72;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
    margin-top: 2rem;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* === HEADER PRINCIPAL === */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.header-title {
    font-size: 1.5rem;
    color: #1e3c72;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    z-index: 1001;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
    background-color: #d4af37;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    background-color: #d4af37;
    border-radius: 5px;
}

.language-link {
    text-decoration: none;
}

.language-link .underlined {
    text-decoration: underline;
}

.language-link .flag {
    text-decoration: none;
}

/* === CONTENIDO PRINCIPAL === */
.main-content {
    margin-top: 80px;
}

.section {
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    background: linear-gradient(90deg, #ffd700, #d4af37, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #d4af37, #f4e68a);
    border-radius: 2px;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #ffffff;
}

/* === SECCIONES CON FONDO === */
#home {
    background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/images/Loyola.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    color: white;
    text-align: center;
    position: relative;
}

.section-bg-hojas {
    background-image: url('/images/Loyola.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    z-index: 1;
}

.section-bg-hojas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

#home .section-title {
    color: white;
    font-size: 4rem;
}

#spirituality {
    background-image: url('/images/chicosentado.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

#spirituality::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

#spirituality .section-content {
    position: relative;
    z-index: 2;
}

#contact {
    background-image: url('/images/difuminado.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    position: relative;
}

#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

#contact .section-title {
    color: #d4af37;
}

#contact .section-text {
    color: white;
}

.section-bg {
    background-image: url('/images/rayossol.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 60px 20px;
}

.section-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.section-bg .section-content {
    position: relative;
    z-index: 1;
}

.background-retreat {
    background-image: url('/images/derecho.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
}

/* === CARDS === */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding: 60px 20px;
}

.cards-container:hover .card {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cards-container .card:hover {
    transform: scale(1.03) translateY(-5px);
    z-index: 2;
}

.card {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #d4af37;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #d4af37, #f4e68a);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.card-title {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.card-text {
    color: #fff;
    line-height: 1.6;
}

/* === VIDEOS === */
.video-section {
    background-image: url("/images/chicosentado.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
    display: flex;
    overflow-y: visible;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.video-section .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #000;
    text-align: center;
    text-shadow: none;
}

.video-carousel-wrapper {
    overflow: visible;
    position: relative;
}

.video-carousel-container {
    display: flex;
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    margin: 0 auto;
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    scroll-behavior: smooth;
}

.video-box {
    min-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin-right: 20px;
    box-sizing: border-box;
    padding: 20px;
}

.video-box iframe {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    filter: blur(3px) brightness(0.7);
    opacity: 0.6;
    transform: scale(0.95);
}

.video-box.active {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 5;
    position: relative;
}

.video-box.active iframe {
    filter: none;
    opacity: 1;
    transform: scale(1);
}

.video-box:hover iframe {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 60, 114, 0.5);
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.video-carousel-wrapper:hover .arrow-btn {
    opacity: 1;
}

/* === FORMULARIOS === */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

#contactForm {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    gap: 20px;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    /* margin-bottom: 20px; */
}

.age-group {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.age-group .form-label {
    text-align: center;
}

.age-group .form-select {
    width: 200px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    vertical-align: middle;
}

.form-group a {
    color: #2a5298;
    text-decoration: underline;
}

.form-group a:hover {
    color: #1e3c72;
}

.submit-button {
    background: rgba(255, 255, 255, 0.15);
    color: #1e3c72;
    border: 2px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.submit-button:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.submit-btn {
    background: linear-gradient(45deg, #7e8798, #a5b3cb);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
}

.glass-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* === FOOTER === */
.footer {
    background: #d4af37;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-text {
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #ffffff;
    padding-top: 20px;
    margin-top: 30px;
    opacity: 1;
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
    to { text-shadow: 0 0 30px rgba(212, 175, 55, 0.8); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === RESPONSIVE MOVIL === */
@media (max-width: 768px) {
   
     html, body {
        width: 100%;
        overflow-x: hidden;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 22px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 2px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        left: auto;
        flex-direction: column;
        background: #2f3846;
        width: 280px;
        height: 80vh;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 6px rgba(0, 0, 0, 0.3);
        z-index: 2000;
        border-bottom-left-radius: 20px;
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        font-size: 1rem;
        color: #ffffff;
        text-decoration: none;
        width: 100%;
        text-align: left;
        padding: 8px 16px;
        background: none;
        box-shadow: none;
    }

    .nav-link:hover {
        color: #d4af37;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .close-btn {
        font-size: 2rem;
        color: #ffffff;
        align-self: flex-end;
        cursor: pointer;
        margin-bottom: 20px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr; /* una sola columna */
        /* display: grid; */
        gap: 15px;                  /* espacio entre campos */
        width: 100%;
    }

    .form-input,
    textarea,
    select {
        width: 100%;         /* ocupa todo el ancho disponible */
        max-width: 100%;     /* no se sale de la pantalla */
        box-sizing: border-box;
        font-size: 1rem;
        padding: 10px;
    }

    .main-title {
        font-size: 2rem;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .nav-logo {
        gap: 6px;
        flex-direction: column;
        align-items: center;
    }

    .nav-logo img {
        height: 24px;
        margin: 0;
        padding: 0;
    }

    .header-title {
        font-size: 1rem;
        margin: 0;
    }

    .language-switch {
        font-size: 0.9rem;
        margin: 0;
        padding: 0;
    }

    .video-box {
        min-width: 80vw;
        padding: 10px;
    }

    .video-carousel-container {
        padding: 20px 10px;
        gap: 10px;
    }

    .main-logo {
        width: 180px;
        max-width: 60%;
    }

    .main-header {
        height: auto;
        padding: 4px 0px;
    }

    .nav-container {
        height: auto;
        padding: 0 10px;
        max-width: 100%; /* tenia 420% */
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .enter-btn {
        display: block !important;
        position: relative;
        margin: 10px auto;               /* Centrado horizontalmente */
        padding: 15px 30px;              /* Tamaño táctil adecuado */
        font-size: 1.2rem;               /* Texto más grande para móvil */
        border: 2px solid #333;          /* Borde visible */
        background: #fff;                /* Fondo visible */
        color: #333;                     /* Texto visible */
        border-radius: 25px;             /* Botón redondeado */
        transform: translateY(-35px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sombra para destacar */
        z-index: 1000;
    }
}

/* === RESPONSIVE ESCRITORIO === */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 12px 24px;
    }

    .nav-logo {
        flex: 0 0 auto;
        gap: 12px;
    }

    .nav-menu .close-btn {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 10px;
        z-index: 1000;
        width: auto;
        flex: 1;
        margin: 0 20px;
        flex-wrap: wrap;
    }

    .nav-menu li {
    margin-top: 12px; /* aseguramos que no haya margen que rompa alineación */
    }

    .language-switch {
        flex: 0 0 auto;
        font-size: 0.9rem;
        margin-left: 0;
    }

    .nav-link {
        color: white;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        padding: 10px;
    }

    .nav-link:hover {
        color: #f4e68a;
        background-color: transparent;
    }

    .nav-link:focus {
        outline: 2px dashed #d4af37;
    }

    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid {
        /* display: grid; */
        grid-template-columns: repeat(2, 1fr); /* dos columnas */
        gap: 20px;                             /* más espacio en desktop */
        width: 100%;
        max-width: 900px;                      /* opcional: limita el ancho total */
        margin: 0 auto;                        /* centra el formulario */
    }

    .form-input,
    textarea,
    select {
        width: 100%; 
        box-sizing: border-box;
        font-size: 1rem;
        padding: 12px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-box {
        flex: 0 0 30%;
        max-width: 400px;
        padding: 20px;
    }
}