* {
    box-sizing: border-box;
}

body {
	padding: 0;
	margin: 0;
	font-family: 'Rubik', sans-serif;
	box-sizing: border-box;
}

input,select,textarea {
    font-family: 'Rubik', sans-serif;
    outline: none;
}

.header {
    top: 0;
    position: fixed;
    z-index: 99;
    width: 100%;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    --padding: 10px 0;
}

.header.scrolled .logo {
    filter: none; /* Logo vuelve a sus colores originales */
}

.header.scrolled .menu a {
    color: #191f6c !important;
}

.header.scrolled .menu a:hover {
    color: #e74c3c !important;
}

.header.scrolled .logo img {
    filter: none; /* Logo vuelve a sus colores originales */
}

.logo img {
    width: 250px;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.menu {
    width: 90%;
    display: flex;
    margin: auto;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.content-menu {
    width: 100%;
    margin: auto;
    text-align: right;
}

.content-menu ul {
    list-style: none;
    display: inline-flex;
    padding: 0;
}

.content-menu ul li {
    padding: 0 10px;
}

.content-menu ul li a {
    font-size: 1.3rem;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
}

.caminata-info {
    background-color: #fafafa;
    padding: 2.5rem 0;
}

.content-info {
    width: 95%;
    margin: auto;
}

.content-info h1.titulo, .form-caminata h1 {
    text-transform: uppercase;
    color: #191f6c;
    margin: 1rem 0 0;
}

.content-info .titulo, .content-info .text-secondary, .text-center {
    text-align: center;
}

.caminata-actividades, .recorrido {
    background: #f3f8fd;
}

.content-actividades, .content-recorrido {
    width: 90%;
    margin: auto;
    padding: 2rem;
}

.content-actividades h1, .content-recorrido h1 {
    padding: 1rem 0 0;
    text-transform: uppercase;
    color: #191f6c;
}

.content-info p.text-secondary, .content-actividades > p, .content-recorrido p {
    margin: 0.6rem 0 2rem;
    font-size: 20px;
    color: #262957;
    font-weight: 200;
}

.n-margin {
    margin: 0;
}

.normativas h3 {
    font-size: 1.5rem;
    color: #d71f1f;
}

.normativas ul {
    list-style: none;
}

.normativas ul li {
    line-height: 2;
}

.box-content {
    display: flex;
    flex-wrap: wrap;
}

.box-content .box-actividades {
    width: 28%;
    height: 300px;
}

.box-actividades {
    background: #ffffff;
    margin: 1rem 2.6%;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 0 20px 1px rgb(0 0 0 / 12%);
}

.box-actividades i {
    background: blue;
    width: 100px;
    padding-bottom: 5px;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    font-size: 2rem;
    color: #fff;
    line-height: 3;
}

.box-actividades i.cam { background: #03A9F4; }
.box-actividades i.obse { background: #F44336; }
.box-actividades i.fits { background: #4CAF50; }
.box-actividades i.infl { background: #7450b5; }
.box-actividades i.otr { background: #f5a226; }

.box-actividades h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

.box-actividades p {
    font-size: 1.2rem;
    width: 70%;
    margin: auto;
}

.form-caminata {
    background: #fafafa;
    padding: 3rem 0;
}

.content-form-caminata {
    width: 90%;
    margin: auto;
}

.form-caminata h1 {
    margin-bottom: 2rem;
}

.content-form-caminata form {
    width: 60%;
    margin: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 11px 2px rgb(0, 0, 0, .15);
    padding: 1rem;
    text-align: center;
}

.form-inputs {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    justify-items: center;
}

.content-form-caminata form .box-form-caminata {
    padding: 0.8rem;
    width: 90%;
}

.box-form-caminata > p {
    margin-bottom: 6px;
    font-size: 13px;
    text-align: left;
}

strong.alert-oblig {
    color: #d93232;
}

.box-form-caminata input,.box-form-caminata select, .box-form-caminata textarea {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #d3d3d3;
    font-size: 14px;
    border-radius: 5px;
}

.btn-sucess {
    width: 30%;
    padding: 12px;
}

.btn-sucess {
    width: 30%;
    padding: 14px;
    background: #343a87;
    color: #fff;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin: 1.5rem;
    box-shadow: 0 0 10px 1px rgb(57 66 181 / 20%);
}

.text-center {
    text-align: center;
}

.n-margin {
    margin: 0 0 30px 0;
    color: #333;
}

.form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.box-form-caminata {
    margin-bottom: 15px;
}

.box-form-caminata p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #555;
}

.alert-oblig {
    color: #e74c3c;
}

.box-form-caminata input,
.box-form-caminata select,
.box-form-caminata textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.box-form-caminata input:focus,
.box-form-caminata select:focus,
.box-form-caminata textarea:focus {
    border-color: #3498db;
    outline: none;
}

.btn-sucess {
    width: 80%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-sucess:hover {
    background: #27ae60;
}

.btn-sucess:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.search-container {
    position: relative;
}

.search-loading {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.employee-found {
    width: 92%;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin: auto;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.employee-not-found {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #dc3545;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para hijos */
.hijos-section {
    display: none;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    animation: slideDown 0.5s ease-out;
}

.hijos-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hijos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.hijo-checkbox {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hijo-checkbox:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hijo-checkbox.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.hijo-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hijo-details {
    flex: 1;
}

.hijo-nombre {
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
}

.hijo-edad {
    font-size: 0.9em;
    color: #6c757d;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hijo-checkbox.selected .checkbox-custom {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

input[type="checkbox"] {
    display: none;
}

/* Mejoras al formulario */
.box-form-caminata input:read-only {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.employee-not-found {
    text-align: left;
}

.nino-externo-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    animation: slideDown 0.5s ease-out;
}

.nino-externo-section label {
    cursor: pointer;
    font-size: 1.1em;
}

.nino-externo-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Estilos para el checkbox de niño externo */
.nino-externo-card {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.nino-externo-card.selected {
    background: #d4edda;
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.nino-externo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#esNinoExterno {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #28a745;
}

.nino-externo-label {
    font-weight: bold;
    color: #856404;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nino-externo-card.selected .nino-externo-label {
    color: #155724;
}

.nino-externo-card.selected .nino-externo-label i {
    color: #28a745;
}

.nino-externo-text {
    color: #856404;
    display: block;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.nino-externo-card.selected .nino-externo-text {
    color: #155724;
}

/* Efecto hover para mejor usabilidad */
.nino-externo-card:hover:not(.selected) {
    background: #ffeaa7;
    border-color: #f5c431;
}

small.nino-externo-text {
    font-size: 13px;
    font-weight: 400;
}

.nino-externo-card.selected {
    color: #155724;
}

/* Animación suave al seleccionar */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.nino-externo-card.selected {
    animation: pulse 0.5s ease-in-out;
}

/* Estilos personalizados para SweetAlert2 */
.sweetalert-custom {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.swal2-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.swal2-title {
    color: #2c3e50;
    font-weight: 600;
}

.swal2-confirm {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
}

.swal2-cancel {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
}

/* Animaciones personalizadas */
.swal2-show {
    animation: sweetAlertShow 0.3s;
}

.swal2-container button {
    font-family: 'Rubik', sans-serif;
}

@keyframes sweetAlertShow {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sección del video principal */
.video-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#vimeo-player {
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.video-content {
    position: absolute;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 20px;
    top: 28%;
    left: 32%;
}

.video-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.video-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Stats cards */
.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    color: #333;
    min-width: 150px;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 0;
    color: #2c3e50;
}

.stat-card p {
    margin: 5px 0 0 0;
    font-size: 1rem;
    color: #666;
}

.btn-primary {
    display: inline-block;
    background: #1f7fcb;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #1f7fcb;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Loader para el video */
.video-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1f7fcb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: #1f7fcb;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.content-flex {
    display: flex;
}

.content-logo img {
    width: 400px;
}

/* Footer */
.modern-footer {
    background: linear-gradient(135deg, #1e2062 0%, #2c3e50 100%);
    color: white;
    position: relative;
    margin-top: 4rem;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    background: #f3f8fd;
}

.footer-wave .shape-fill {
    fill: url(#waveGradient);
}

/*.footer-wave .shape-fill {
    fill: #1e2062;
}*/

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Brand Section */
.footer-brand {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.brand-logo {
    flex-shrink: 0;
}

.footer-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.brand-description {
    color: #b0b7c3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #1f7fcb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 127, 203, 0.4);
}

/* Contact Section */
.footer-contact h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #1f7fcb;
    border-radius: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(31, 127, 203, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1f7fcb;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: #b0b7c3;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Event Section */
.footer-event {
    text-align: center;
}

.caminata-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-event h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-date {
    color: #1f7fcb;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.event-description {
    color: #b0b7c3;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: #b0b7c3;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #b0b7c3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #1f7fcb;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1f7fcb;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

@media (max-width: 1024px) {
    .video-content {
        top: 20%;
        left: 28%;
    }

    .box-content .box-actividades {
        width: 30%;
        margin: 1rem 1.2%;
    }

    .content-form-caminata form {
        width: 80%
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-event {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    
    .caminata-logo {
        width: 120px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-logo {
        align-self: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-event {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .video-content { left: 20%; }
    .video-content h1 { font-size: 2.5rem; }
    .video-content p { margin-top: 10px; }
    .stat-card h3 { font-size: 1.5rem; }
    .content-flex { display: block; }
    .normativas { text-align: justify; }
    .normativas ul { padding: 0; }
    .box-content .box-actividades { width: 45%; }
    .box-actividades { margin: 1rem 2.5%;} 

}

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-main {
        gap: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        align-items: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .box-content .box-actividades {
        width: 100%;
    }

    .form-inputs {
        display: block; 
    }

    .video-content {
        left: 10%;
        top: 25%;
    }

    .video-content p {
        font-size: 1rem; 
    }

    .stats {
        display: none;
    }

    .btn-primary {
        padding: 10px 30px;
        font-size: 1rem;
    }

    .footer-contact h4 {text-align: center;}

    .footer-contact h4::after {
        width: 40%;
        left: 30%;
    }
}

/* Animaciones suaves */
.modern-footer {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MENÚ RESPONSIVE ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Estado activo del hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Header scrolled - hamburguesa */
.header.scrolled .menu-toggle span {
    background-color: #191f6c;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .menu {
        position: relative;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .content-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #1e2062 0%, #2c3e50 100%);
        transition: all 0.4s ease-in-out;
        z-index: 999;
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .content-menu.active {
        right: 0;
    }

    .content-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .content-menu ul li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .content-menu ul li:last-child {
        border-bottom: none;
    }

    .content-menu ul li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: white !important;
        text-transform: uppercase;
        transition: all 0.3s ease;
        width: 100%;
    }

    .content-menu ul li a:hover {
        color: #1f7fcb !important;
        transform: translateX(10px);
        background: rgba(255, 255, 255, 0.05);
        padding-left: 10px;
    }

    /* Overlay cuando el menú está abierto */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Ajustes del logo en móvil */
    .logo img {
        width: 200px;
    }

    /* Asegurar que el contenido no se desplace cuando el menú está abierto */
    body.menu-open {
        overflow: hidden;
    }
}

/* Para móviles más pequeños */
@media (max-width: 480px) {
    .content-menu {
        width: 85%;
    }

    .logo img {
        width: 180px;
    }

    .content-menu ul li a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    .video-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 425px) {
    .video-content { left: 5%; }
    .content-logo img { width: 300px;} 
    .content-logo { text-align: center; }
    .btn-sucess { font-size:16px; }
}

@media (max-width: 375px) {
    .video-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-top: 1.5rem;
    }

    .video-content p {
        font-size: 0.6rem;
    }

    .video-content {
        left: 15%;
    }
}

/* Ajustes específicos para el header scrolled en móvil */
@media (max-width: 768px) {
    .header.scrolled .content-menu ul li a {
        color: white !important;
    }

    .header.scrolled .content-menu ul li a:hover {
        color: #1f7fcb !important;
    }
}

/* Mejoras visuales para el menú móvil */
@media (max-width: 768px) {
    .content-menu::before {
        content: 'Menú';
        position: absolute;
        top: 30px;
        left: 2rem;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .content-menu ul {
        margin-top: 3rem;
    }

    /* Mejorar la accesibilidad del botón hamburguesa */
    .menu-toggle {
        padding: 5px;
        margin-left: auto;
        margin-top: 1.2rem;
    }

    .menu-toggle:focus {
        outline: 2px solid #1f7fcb;
        outline-offset: 2px;
    }
    .header { z-index: 1000; }
    .box-content .box-actividades { margin: 1rem 2.4%; }
    .header.scrolled .menu-toggle.active span { background-color: #ffffff; }
}

/* Animación suave para los enlaces del menú */
.content-menu ul li a {
    position: relative;
    overflow: hidden;
}

/*.content-menu ul li a::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: -100%;*/
/*    top: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);*/
/*    transition: left 0.5s ease;*/
/*}*/

.content-menu ul li a:hover::before {
    left: 100%;
}