/* Logo grande en el hero */
.hero-logo-img {
    display: block;
    margin: 0 auto 18px auto;
    height: var(--hero-logo-height, 120px);
    object-fit: contain;
    object-position: center;
    max-width: 90vw;
    filter: drop-shadow(0 0px 18px rgba(102, 126, 234, 0.13));
    transition: height 0.2s, padding 0.2s;
    /* Fondo blanco cancelado, solo el logo visible */
}

/* Variables personalizables para el logo del hero */
:root {
    --hero-logo-height: 250px;
}

/* Aclaración pequeña debajo de las cifras */
.stats-aclaracion {
    margin-top: 18px;
    font-size: 1.01rem;
    color: #a2a7b8;
    letter-spacing: 0.01em;
    background: rgba(180, 200, 255, 0.08);
    border-radius: 8px;
    padding: 6px 0 4px 0;
    width: 100%;
    text-align: center;
    display: block;
}

/* Variables personalizables para el logo del header */
:root {
    --logo-header-height: 150px;
    /* tamaño base del logo */
    --logo-header-crop-top: -25px;
    /* recorte superior */
    --logo-header-crop-bottom: -25px;
    /* recorte inferior */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #cfd4fa;
    margin: 0;
    padding: 0;
    color: #222;
    line-height: 1.6;
}

/* Animations */

/* Animaciones eliminadas por simplicidad */

/* HERO */
.hero-section {
    background: linear-gradient(120deg, #4f8cff 0%, #eaf1fb 100%);
    color: #fff;
    padding: 110px 0 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.08);
    border-radius: 0 0 40px 40px;
    min-height: 350px;
}



.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

.hero-logo {
    display: none;
    /* El logo del header ahora usa .landing-logo, este se oculta */
}

/* Logo pequeño y en la esquina al hacer scroll */

.hero-title {
    font-size: 3.7rem;
    font-weight: 900;
    margin-bottom: 18px;
    letter-spacing: 2.5px;
    color: #fff;
    text-shadow: 0 4px 24px rgba(60, 60, 90, 0.18), 0 1.5px 0 rgba(102, 126, 234, 0.13);
    background: linear-gradient(90deg, #fff 60%, #b3d0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px #4f8cff33;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f4f8ff;
    margin-bottom: 38px;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(60, 60, 90, 0.18);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 10px 18px 10px 18px;
    display: inline-block;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
}

.hero-btn:hover,
.hero-btn:focus {
    background: linear-gradient(45deg, #5a6fd8, #6a4c93);
    color: #fff;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

.hero-btn:focus {
    outline: 2px solid #764ba2;
    outline-offset: 2px;
}

/* NAV */
.landing-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px 0 rgba(60, 60, 90, 0.13), 0 1.5px 0 rgba(102, 126, 234, 0.07);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    gap: 0;
}

.header-logo {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
    margin-right: 20px;
    /* El logo queda siempre a la izquierda */
}

.header-login {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.landing-logo {
    height: var(--logo-header-height);
    width: auto;
    display: block;
    margin-left: 12px;
    margin-right: 32px;
    margin-top: var(--logo-header-crop-top);
    margin-bottom: var(--logo-header-crop-bottom);
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
    box-shadow: 0 0 0 0 transparent;
    background: transparent;
    position: static;
    left: 0;
    /* El logo queda pegado a la izquierda y separado visualmente del contenido */
}

/* Asegura que el logo del header siempre sea visible */
.header-logo img.landing-logo {
    display: block !important;
    max-width: 120px;
    height: auto;
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #667eea;
    margin-bottom: 2px;
    letter-spacing: 1px;
    text-align: left;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
    text-align: left;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0 20px;
    padding: 0;
}

.landing-nav a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.landing-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: left 0.3s ease;
    z-index: -1;
}

.landing-nav a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.landing-nav a:hover::before {
    left: 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.landing-desc-section {
    margin: 60px 0 40px 0;
    text-align: center;
    background: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-desc {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 0;
    line-height: 1.8;
    font-weight: 400;
}

.section-title {
    font-size: 2.5rem;
    color: #667eea;
    font-weight: 900;
    margin-bottom: 25px;
    margin-top: 60px;
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Statistics Section */
.stats-section {
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1 1 200px;
    max-width: 250px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-section {
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0;
    justify-content: center;
}

.feature-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 350px;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-item:hover::before {
    opacity: 0.1;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.feature-item>* {
    position: relative;
    z-index: 1;
}

.feature-item i {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 3rem;
    display: block;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    color: #764ba2;
    transform: scale(1.1);
}

.feature-title {
    font-weight: 700;
    color: #343a40;
    margin-bottom: 15px;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.feature-desc {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.why-section {
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.why-list li {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    padding: 25px;
    font-size: 1.1rem;
    color: #495057;
    position: relative;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    flex: 1 1 300px;
    max-width: 350px;
}

.why-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.steps-section {
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.steps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0;
    margin: 40px 0;
    justify-content: center;
}

.step-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1 1 250px;
    max-width: 300px;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.step-item:hover::before {
    opacity: 0.1;
}

.step-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.step-item>* {
    position: relative;
    z-index: 1;
}

.step-item i {
    color: #667eea;
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.step-item:hover i {
    color: #764ba2;
    transform: scale(1.1);
}

.step-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #343a40;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.step-item div:last-child {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Testimonials */
.testimonials-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px 40px;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.testimonial-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    font-style: italic;
    color: #495057;
    line-height: 1.6;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.testimonial-author {
    margin-top: 25px;
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
    font-style: normal;
    letter-spacing: 0.5px;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(248, 249, 250, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    font-weight: 600;
    color: #343a40;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-question.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.faq-question.active::after {
    transform: rotate(45deg);
    color: #764ba2;
}

.faq-answer {
    padding: 0 30px;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding: 20px 30px 25px 30px;
}

.contact-section {
    margin: 60px 0 0 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.contact-content {
    font-size: 1.2rem;
    color: #495057;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.contact-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: #764ba2;
}

.landing-btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin: 0;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
}

.landing-btn:hover,
.landing-btn:focus {
    background: linear-gradient(45deg, #5a6fd8, #6a4c93);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    color: #fff;
}

.landing-btn:focus {
    outline: 2px solid #764ba2;
    outline-offset: 2px;
}

.landing-footer {
    margin-top: 60px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    padding: 40px 0 20px 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 25px 25px;
    border: none;
    box-shadow: 0 -2px 20px rgba(102, 126, 234, 0.07);
    letter-spacing: 0.5px;
}

.landing-footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.landing-footer a:hover {
    color: #e3f2fd;
    text-decoration: underline;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    outline: none;
}

.scroll-to-top:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4c93);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {

    .header-content,
    .landing-nav,
    main,
    .features-list,
    .steps-list,
    .stats-grid,
    .testimonials-list {
        max-width: 95vw;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .header-content,
    .landing-nav,
    main {
        padding: 10px 10px;
    }

    .landing-logo {
        width: 80px;
    }

    .landing-btn {
        font-size: 1rem;
        padding: 8px 18px;
    }

    .landing-nav {
        gap: 12px;
    }
}

.features-list,
.steps-list,
.testimonials-list,
.stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (max-width: 900px) {

    .stats-grid,
    .why-list,
    .steps-list {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat-item,
    .why-list li,
    .step-item {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .features-list {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .feature-item {
        max-width: 100%;
    }
}

.why-list {
    grid-template-columns: 1fr;
}

.hero-section {
    padding: 80px 0 60px 0;
}

.landing-desc-section,
.features-section,
.why-section,
.steps-section,
.testimonials-section,
.faq-section,
.contact-section,
.stats-section {
    margin: 40px 0;
    padding: 40px 20px;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

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

    .hero-logo,
    .landing-logo {
        width: 70px;
    }

    .landing-btn {
        font-size: 0.95rem;
        padding: 7px 12px;
    }

    .landing-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .landing-nav a {
        font-size: 0.95rem;
        padding: 7px 8px;
    }

    .feature-item,
    .step-item,
    .testimonial-item {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .faq-question {
        padding: 20px;
        font-size: 1.1rem;
    }

    .faq-answer {
        padding: 0 20px 20px 20px;
    }
}