* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f6f9fc;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    padding-top: 0px;
}

/* -------------------------------------------------------------------------------------- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f6f9fc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.splash-logo {
    width: 300px;
    max-width: 80%;
    opacity: 0;
    animation: fadeInLogo 1s forwards;
}

.splash-slogan {
    font-size: 1rem;
    color: #0A2F47;
    text-align: center;
    margin-top: 1.5rem;
    max-width: 80%;
    opacity: 0;
    animation: fadeInText 1s 1.2s forwards;
}

@keyframes fadeInLogo {
    to {
        opacity: 1;
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

.splash-fade-out {
    opacity: 0;
    pointer-events: none;
}

/* -------------------------------------------------------------------------------------- */
#navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 15.9%;
    background: #f6f9fc;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 14px rgba(10, 47, 71, 0.1);
    border-bottom: 1px solid rgba(10, 47, 71, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: transform 0.3s ease, background 0.3s ease;
}

#navbar.hide {
    transform: translateY(-100%);
}

/* Logo con branding fuerte */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.05));
}

/* Menú principal */
nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: #0A2F47;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #46B6CC;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #1F667A;
}

nav a:hover::after {
    width: 100%;
}

/* Botones de acceso */
.auth-buttons a {
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(10, 47, 71, 0.1);
}

.login {
    background: transparent;
    color: #0A2F47;
    border: 1px solid #0A2F47;
}

.login:hover {
    background-color: #EDF2F7;
}

.register {
    background: linear-gradient(135deg, #1F667A, #46B6CC);
    color: white;
    border: none;
}

.register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 102, 122, 0.25);
}

/* -------------------------------------------------------------------------------------- */
.hero {
    width: 100%;
    padding: 6% 5%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 1300px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
    margin-top: 50px;
}

.hero-text {
    width: 55%;
}

.eyebrow {
    color: #1F667A;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: #0A2F47;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: #0A2F47;
    margin-bottom: 2rem;
}

.cta-buttons a {
    margin-right: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary {
    background-color: #0A2F47;
    color: white;
}

.cta-primary:hover {
    background-color: #143b54;
}

.cta-secondary {
    border: 2px solid #0A2F47;
    background-color: white;
    color: #0A2F47;
}

.cta-secondary:hover {
    background-color: #EDF2F7;
}

/* VIDEO AREA */
.hero-video {
    width: 50%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* -------------------------------------------------------------------------------------- */
.cemc-faq {
    padding: 6% 15%;
    text-align: center;
}

.cemc-faq h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    color: #0A2F47;
}

.cemc-faq p {
    color: #0A2F47;
    margin-bottom: 2rem;
    margin-left: 10rem;
    margin-right: 10rem;
    font-size: 1.1rem;
}

.cemc-faq strong {
    color: #1F667A;
}

.faq-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.faq-image img {
    width: 500px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: auto;
    transition: opacity 0.4s ease-in-out;
}

.faq-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    max-height: 360px;
    overflow: hidden;
    justify-content: flex-start;
}

/* FAQ items */
.faq-item {
    text-align: left;
    cursor: pointer;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dce1e6;
    transition: all 0.3s ease;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #0A2F47;
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    font-size: 1rem;
    color: #333;
    margin: 0;
    padding-right: 0.5rem;
}

.faq-item.active p {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.3rem;
}

/* Scroll bonito si se pasa */
.faq-item p::-webkit-scrollbar {
    width: 6px;
}

.faq-item p::-webkit-scrollbar-thumb {
    background-color: rgba(31, 102, 122, 0.4);
    border-radius: 4px;
}

.faq-item.active h3 {
    color: #1F667A;
}

.faq-item.active {
    border-bottom: 2px solid #1F667A;
}

.faq-footer {
    margin-top: 3rem;
    font-weight: 600;
    color: #1F667A;
}

/* -------------------------------------------------------------------------------------- */
.benefits-section {
    padding: 6% 10%;
    text-align: center;
    background-color: #0A2F47;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    line-height: 1.3;
}

.section-title span {
    background: linear-gradient(90deg, #46B6CC, #ADE8F4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #46B6CC;
    display: block;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Cards sobre fondo oscuro */
.benefit-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.benefit-card {
    width: 260px;
    height: 340px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;

}

.benefit-card:hover {
    transform: translateY(-6px);
}

.benefit-card img {
    width: 100%;
    height: 55%;
    object-fit: cover;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.benefit-text h3 {
    font-size: 1.2rem;
    color: #0A2F47;
    margin-bottom: 0.3rem;
}

.benefit-text p {
    font-size: 0.95rem;
    color: #1F667A;
    line-height: 1.4;
}


/* MODAL */
.benefit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 47, 71, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.3s ease;
    position: relative;
}

/* Cabecera del modal */
.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1rem 2rem 0.5rem 2rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #0A2F47;
}

.modal-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.modal-img {
    flex: 1;
    max-width: 50%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: center; Texto del modal centrado a la imagen*/
    justify-content: flex-start;
    /* Texto del modal alineado a la parte superior de la imagen*/
}

.modal-text h3 {
    font-size: 1.6rem;
    color: #0A2F47;
    margin-bottom: 1rem;
}

.modal-text p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    text-align: justify;
}

.close-benefit-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: #0A2F47;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.noscroll {
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.8rem;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #0A2F47;
    margin: 0;
    font-weight: 700;
}

.close-benefit-modal {
    background: transparent;
    border: none;
    font-size: 2.3rem;
    color: #0A2F47;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-benefit-modal:hover {
    color: #1F667A;
}

/* -------------------------------------------------------------------------------------- */
.testimonials-section {
    padding: 6% 10%;
    text-align: center;
    background: #f6f9fc;
}

.testimonial-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease;
}

.testimonial-card.active {
    display: flex;
}

.testimonials-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0A2F47;
    margin-bottom: 0.1rem;
    text-align: center;
    line-height: 1.3;
}

.testimonials-section h2 span {
    color: #0A2F47;
}

.testimonials-section h2::after {
    content: "";
    content: none;
    display: block;
    width: 70px;
    height: 3px;
    background-color: #0A2F47;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.testimonial-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #1F667A;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: #0A2F47;
    line-height: 1.6;
    margin: 0 2rem 1.5rem;
    max-width: 600px;
}

.testimonial-author {
    font-weight: 600;
    color: #1F667A;
    font-size: 1rem;
    line-height: 1.4;
}

.testimonial-author span {
    display: block;
    font-weight: normal;
    font-size: 0.9rem;
    color: #555;
}

.testimonial-controls {
    margin-top: 1.5rem;
}

.testimonial-controls button {
    background: none;
    border: none;
    font-size: 2rem;
    color: #1F667A;
    cursor: pointer;
    padding: 0 1rem;
    transition: color 0.3s ease;
}

.testimonial-controls button:hover {
    color: #0A2F47;
}

#testimonial-img {
    transition: all 0.3s ease;
}

#testimonial-text {
    font-style: italic;
}

#testimonial-name {
    font-weight: bold;
}

#testimonial-role {
    font-weight: normal;
    font-size: 0.9rem;
    color: #555;
}

.testimonial-progress {
    width: 200px;
    height: 5px;
    background: #dce1e6;
    margin: 0.8rem auto 2.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.testimonial-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1F667A, #46B6CC);
    transition: width 6s linear;
}

.testimonial-card {
    display: none;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.testimonial-card.active {
    display: flex;
    opacity: 1;
}

.testimonial-card.fade-out {
    opacity: 0;
}

.testimonial-card.fade-in {
    opacity: 1;
}

/* -------------------------------------------------------------------------------------- */
.plan-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.6rem 1.2rem;
    border: 2px solid #1F667A;
    background: white;
    color: #1F667A;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: #1F667A;
    color: white;
}

.plan-boxes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.plan {
    background: #fff;
    border: 2px solid #46B6CC;
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plans .section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0A2F47;
    margin-bottom: 3rem;
}

.plans .section-title span {
    color: #1F667A;
    background: linear-gradient(90deg, #1F667A, #46B6CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan h3 {
    font-size: 1.3rem;
    color: #0A2F47;
    margin-bottom: 0.5rem;
}

.plan p {
    color: #1F667A;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.6;
}

.plan ul li::before {
    content: "\2022";
    color: #46B6CC;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

.cta-secundary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(90deg, #1F667A, #46B6CC);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-secundary:hover {
    background: #0A2F47;
}

.hidden {
    display: none;
}

.plans-cta-container {
    text-align: center;
    margin-top: 2rem;
}

.ver-planes-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
    color: #1F667A;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.ver-planes-link:hover {
    color: #0A2F47;
}



.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 2px solid #1F667A;
    color: #1F667A;
    background: transparent;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #1F667A;
    color: white;
}

/* -------------------------------------------------------------------------------------- */
.fuq-section {
    background-color: #f6f9fc;
    padding: 6% 10%;
    text-align: left;
}

.fuq-section .section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #0A2F47;
    margin-bottom: 2.5rem;
}

.fuq-section .section-title span {
    color: #1F667A;
    background: linear-gradient(90deg, #1F667A, #46B6CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fuq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.fuq-item {
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.fuq-item h3 {
    font-size: 1.1rem;
    color: #0A2F47;
    margin-bottom: 0.5rem;
}

.fuq-item p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin: 0;
}

.fuq-item.active p {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
}

.fuq-item.active h3 {
    color: #1F667A;
}

/* -------------------------------------------------------------------------------------- */
.site-footer {
    background: transparent;
    padding: 3rem 17%;
    font-family: 'Inter', sans-serif;
    color: #0A2F47;
    font-size: 0.95rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
}

.cta-question {
    flex: 1 1 300px;
}

.cta-question p {
    font-weight: 600;
    margin-bottom: 2rem;
    color: #0A2F47;
}

.cta-footer-btn {
    display: inline-block;
    background: #1F667A;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-footer-btn:hover {
    background: #0A2F47;
}

.footer-columns {
    display: flex;
    flex: 2 1 600px;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-columns h4 {
    margin-bottom: 0.8rem;
    color: #1F667A;
    font-weight: bold;
}

.footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-columns li {
    margin-bottom: 0.4rem;
}

.footer-columns a {
    color: #0A2F47;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-columns a:hover {
    color: #1F667A;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #4d687a;
}

.by-efrain {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #4d687a;
}

.footer-author {
    color: #1F667A;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-author:hover {
    color: #0A2F47;
}