:root {
    --primary-color: #353D8F;
    --secondary-color: #E55339;
    --background-color: #F3F6FB;
    --text-color: #353D8F;
    --border-color: #e5e7eb;
    --hover-bg-color: #a8a8a8;
    --hover-text-color: #1d4ed8;
    --bg-green: #218C00;
}
.Poppins,
* {
    font-family: "Poppins", sans-serif;
}
p, span, div a {
    color: var(--text-color);
    font-size: 14px;
}
/* Estilos base y componentes */
.colorPrimary { color: var(--primary-color); }
.colorSecondary { color: var(--secondary-color); }
.colorText { color: var(--text-color); }

.bgPrimary { background-color: var(--primary-color); }
.bgSecondary { background-color: var(--secondary-color); }
.bgBackground { background-color: var(--background-color); }
.btn.bgGreen { background-color: var(--bg-green); }
.bgHover { background-color: var(--hover-bg-color); }
.textHover { color: var(--hover-text-color); }

.transition-all { transition: all 0.5s ease; }
.transform { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 0.5s; }
.text-base { font-size: 15px !important; }
.borderCustom { border-radius: 30px 0 30px 0 !important; }
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 7px 24px;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
    transition: all .5s ease !important;
}
.btn.bgSecondary {
    background-color: var(--secondary-color);
}
.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
.btn.bgSecondary:hover {
    background-color:  #852d1d;
}
h2 {
    display: inline-block;
    margin: auto;
    border-radius: 6px;
}

.lg\:w-2\/3 {
    width: 64.666667%;
}
.plan-card li.benefiCard {
    border-bottom: 1px dashed var(--secondary-color) !important;
    padding-bottom: 9px;
    text-align: center !important;
    color: var(--primary-color);
}
.plan-card.bgSecondary li.benefiCard {
    border-bottom: 1px dashed #fff !important;
    color: #fff;
}
.plan-card li.benefiCard strong {
    font-size: 13px;
}
.plan-card.bgSecondary li.benefiCard span {
    color: #fff;
}
#conocimientos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}



.sticky-video {
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

.plan-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 30px 0 30px 0 !important;
}

.plan-card:hover {
    transform: translateY(-20px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.plan-card.selected {
    /* border-color: #3b82f6; */
    /* box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); */
    transform: translateY(-20px) !important;
}
.contact-button {
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.operator-tag {
    transition: all 0.3s ease;
}

.operator-tag:hover {
    transform: scale(1.05);
}

/* Estilos para el carrusel de operadores */
.operators-carousel-container {
    margin-bottom: 0 !important;
}

.operators-carousel .owl-stage-outer {
    padding: 1rem 0 0;
}

.operator-slide {
    padding: 0 10px;
}


/* Personalización de controles del carrusel */
.operators-carousel .owl-nav {
    margin-top: 1rem;
    text-align: center;
}

.operators-carousel .owl-nav button {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 10px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.operators-carousel .owl-nav button:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1);
}

.operators-carousel .owl-nav button.owl-prev:before {
    content: '‹' !important;
}

.operators-carousel .owl-nav button.owl-next:before {
    content: '›' !important;
}

/* Personalización de dots */
.operators-carousel .owl-dots {
    text-align: center;
    margin-top: 1rem;
}

.operators-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.operators-carousel .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.operators-carousel .owl-dots .owl-dot.active span,
.operators-carousel .owl-dots .owl-dot:hover span {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
    .operator-card {
        height: 180px;
    }
    
    .operator-logo i {
        font-size: 2.5rem !important;
    }
    
    .operator-slide {
        padding: 0 5px;
    }
}

/* Estilos para el menú sticky */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.sticky-header.scrolled figure img {
    max-width: 110px;
}

/* Ajuste para el contenido debajo del menú fijo */
body {
    padding-top: 80px;
}

/* Animación para el menú móvil */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.mobile-menu.open {
    max-height: 300px;
}

/* Estilos para el contenedor de video */
.video-container {
    min-height: 200px;
    border: 2px solid var(--primary-color);
    border-radius: 20px !important;
}
.owl-carousel .owl-item img {
    max-width: 210px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .w-\[49\%\],
    .lg\:w-2\/3 {
        width: 100% !important;
    }
    .desktop {
        display: none;
    }
    .sticky-video {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    body {
        padding-top: 70px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles para mejor accesibilidad */
.nav-link:focus,
.mobile-nav-link:focus,
.plan-button:focus,
.contact-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.plan-btn:hover {
    background-color: white;
    color: var(--secondary-color);
}
/* Estilos para el acordeón FAQ */
.faq-accordion {
    margin-top: 1rem;
}

.faq-item {
    overflow: hidden;
    margin-bottom: 2px;
}

.faq-question {
    border-radius: 4px;
    padding: 1rem;
    transition: all 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question.active {
    background-color: #f3f4f6;
}

.faq-question i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    overflow: hidden;
    /* background-color: #fafafa; */
    border-radius: 0 0 4px 4px;
    margin: 0 1px;
    padding: 10px 10px 0;
    border-left: 3px solid var(--primary-color);
    border-left-color: transparent;
    transition: border-left-color 0.3s ease;
    text-align: left;
}

.faq-question.active + .faq-answer {
    border-left-color: var(--primary-color);
}

.faq-answer p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Video Sticky Flotante */
.sticky-video-float {
    position: fixed;
    top: 185px;
    left: calc(64.666667% + 2rem);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(35.333333% - 4rem);
    max-width: 350px;
    min-width: 280px;
    cursor: pointer;
}

.sticky-video-container {
    width: 100%;
    transition: all 0.3s ease;
}

/* Animación de entrada suave */
.sticky-video-float.visible {
    opacity: 1;
    transform: translateY(0px) translateX(0);
}

.sticky-video-float.hidden {
    opacity: 0;
    transform: translateY(0px) translateX(100%);
}

/* Extra Large screens (1400px and up) - Container max-width: 1320px */
@media (min-width: 1400px) {
   .sticky-video-float {
        left: calc(50% + (1320px * 0.64666667 / 2 + -8rem));
        width: calc((1320px * 0.353333) - 0rem);
        max-width: 460px;
    }
}

/* Extra Large screens (1200px - 1399px) - Container max-width: 1140px */
@media (min-width: 1200px) and (max-width: 1399px) {
    .sticky-video-float {
        left: calc(50% + (1140px * 0.64666667 / 2) + -7.5rem);
        width: calc((1140px * 0.35333333) - 3rem);
        max-width: 350px;
    }
}

/* Large screens (992px - 1199px) - Container max-width: 960px */
@media (min-width: 992px) and (max-width: 1199px) {
    .sticky-video-float {
        left: calc(50% + (960px * 0.64666667 / 2) + 1.5rem);
        width: calc((960px * 0.35333333) - 3rem);
        max-width: 320px;
        min-width: 260px;
    }
}

/* Medium screens (768px - 991px) - Container max-width: 720px */
@media (min-width: 768px) and (max-width: 991px) {
    .sticky-video-float {
        left: calc(50% + (720px * 0.64666667 / 2) + 1rem);
        width: calc((720px * 0.35333333) - 2rem);
        max-width: 280px;
        min-width: 240px;
    }
}

/* Small screens y menores - Ocultar completamente */
@media (max-width: 767px) {
    .sticky-video-float {
        display: none !important;
    }
}

/* ================================
   MODAL DE REGISTRO
   ================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(39, 59, 143, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-overlay.closing {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #353D8F 0%, #4A52A8 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.modal-overlay.closing .modal-content {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 50px 40px 40px;
}

.modal-title {
    font-size: 23px;
    font-weight: 700;
    width: 100%;
    color: white;
    margin-bottom: 5px;
    text-align: center;
}

.selected-plan-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-align: center;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.form-group label {
    font-size: 12px;
    color: white;
    margin-bottom: 3px;
    font-weight: 200;
}

.form-input {
    width: 100%;
    padding: 8px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.form-input.error {
    border-color: var(--secondary-color);
    background: rgba(255, 68, 68, 0.1);
}

.form-input.success {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.error-message {
    display: inline-block;
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    font-weight: 400;
}
#terminos-error {
    position: absolute;
    left: 26px;
    bottom: -12px;
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Quitar los spinners en Chrome, Safari, Edge */
    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    /* Quitar los spinners en Firefox */
    input[type="number"] {
      -moz-appearance: textfield;
    }

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.form-group-checkbox label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    margin: 0;
}

.form-group-checkbox .error-message {
    width: 100%;
    flex-basis: 100%;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .modal-body {
        padding: 40px 24px 24px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
}

/* ================================
   MODAL DE VIDEO
   ================================ */
.modal-video-content {
    max-width: 900px;
    width: 95%;
    padding: 0;
    background: #000;
}

.modal-body-video {
    padding: 0;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Play button overlay en las imágenes */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.open-video-modal:hover .play-button-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.cursor-pointer {
    cursor: pointer;
}

.open-video-modal {
    position: relative;
    transition: all 0.3s ease;
}

.open-video-modal:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .modal-video-content {
        width: 98%;
        max-width: 100%;
    }
    
    .play-button-overlay {
        font-size: 60px;
    }
}