/* --- 1. CONFIGURACIÓN GLOBAL Y NUEVA IDENTIDAD VISUAL --- */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@500;600;700&family=Inter:wght@400;500&display=swap');

:root {
    /* Nueva Paleta de Colores - Inspirada en el Logo "Luxe" */
    --primary-accent: #2A4B3A;       /* Verde oscuro del logo */
    --primary-accent-hover: #3a6850; /* Un tono más claro para el hover */
    
    /* Colores de Base y Acentos */
    --background: #F5F3ED;       /* Crema del fondo del logo */
    --surface: #FFFFFF;          /* Blanco puro para tarjetas y secciones alternas */
    --text-primary: #1D1D1F;      /* Negro suave para texto */
    --text-secondary: #58585A;    /* Gris secundario */
    --border-color: #EAE8E3;     /* Borde sutil y cálido */

    /* Tipografía Refinada con la fuente del Logo */
    --font-logo: 'Great Vibes', cursive;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variables de Diseño */
    --border-radius-small: 8px;
    --border-radius-medium: 16px;
    --border-radius-large: 24px;
    --transition-speed: 0.3s;
    --container-width: 1120px;
    --section-padding: 7rem 0;
}

/* --- Reseteo y Estilos Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}
body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation; /* <-- Añade esta línea */
}

.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; font-weight: 700; }
p { color: var(--text-secondary); max-width: 65ch; }
img { max-width: 100%; height: auto; display: block; }
section { padding: var(--section-padding); }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header.left-align { text-align: left; margin-left: 0; }
h2 { font-size: 2.8rem; font-weight: 600; letter-spacing: -0.5px; }
.text-highlight { color: var(--primary-accent); }

/* --- 2. COMPONENTES DE UI REUTILIZABLES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary { background-color: var(--primary-accent); color: white; }
.btn-primary:hover { background-color: var(--primary-accent-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(42, 75, 58, 0.3); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }

/* --- 3. NAVEGACIÓN --- */
.navbar {
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.navbar.scrolled {
    background-color: rgba(245, 243, 237, 0.85); /* Fondo crema traslúcido */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-top: 10px;
    padding-bottom: 10px;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { 
    text-decoration: none;
}
.nav-menu ul { list-style: none; display: flex; gap: 2.5rem; }
.nav-menu ul li a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color var(--transition-speed) ease; }
.nav-menu ul li a:hover { color: var(--primary-accent); }
.hamburger-menu { display: none; cursor: pointer; z-index: 1001; }
.hamburger-menu .bar { display: block; width: 25px; height: 2px; margin: 6px auto; background-color: var(--text-primary); transition: all 0.4s ease-in-out; }
.mobile-cta { display: none; }

/* --- 4. SECCIONES --- */

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: var(--background);
    overflow: hidden;
}

#hero .hero-content { 
    max-width: 900px; 
    margin: 0 auto; 
    padding-top: 5rem; 
    position: relative;
    z-index: 2;
}

#hero h1 { 
    font-size: 4.7rem !important; 
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

#hero .subtitle { 
    font-size: 1.15rem; 
    color: var(--text-secondary);
    margin: 1.5rem auto 2.5rem auto; 
}

/* Comparación */
#comparacion { background-color: var(--surface); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.comparison-card {
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
}
.comparison-card.dark { 
    background-color: var(--primary-accent); 
    color: white;
}
.comparison-card.light { background-color: var(--background); border: 1px solid var(--border-color); }
.comparison-card h3 { font-size: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; font-weight: 600; }
.comparison-card.dark h3 { color: white; border-bottom-color: rgba(255,255,255,0.3); }

/* Servicios */
#servicios { background-color: var(--background); }
.services-accordion { max-width: 900px; margin: 0 auto; }
.service-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}
.service-item.active { border-color: var(--primary-accent); box-shadow: 0 4px 15px rgba(42, 75, 58, 0.2); }
.service-header { padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.service-header h3 { font-size: 1.5rem; font-weight: 600; }
.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 2rem;
}
.service-content p { margin-bottom: 1.5rem; }
.service-content ul { list-style-position: inside; padding-left: 0; list-style-type: none; }
.service-content li { margin-bottom: 0.8rem; position: relative; padding-left: 25px; }
.service-content li::before { content: '✓'; color: var(--primary-accent); font-weight: 700; position: absolute; left: 0; }
.service-item.active .service-content { max-height: 500px; padding-bottom: 2rem; }

/* Números */
#numeros { background-color: var(--surface); }
.numeros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.stat-item { padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); }
.stat-item:last-child { border-bottom: none; }
.stat-item h4 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 600; }
.numeros-image img { border-radius: var(--border-radius-large); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

/* Proceso */
#proceso { background-color: var(--background); }
.proceso-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}
.proceso-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step-card {
    position: relative;
    padding: 2rem; 
    padding-left: 3.5rem; 
    border: 1px solid var(--border-color); 
    border-radius: var(--border-radius-medium); 
    background-color: var(--surface);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: all var(--transition-speed) ease;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.step-card span {
    position: absolute;
    left: -20px; 
    top: 50%;
    transform: translateY(-50%); 
    background: var(--primary-accent);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 3px solid var(--background); 
}
.step-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.proceso-image img { border-radius: var(--border-radius-large); }

/* Testimonios */
#testimonios { background-color: var(--surface); }
.testimonial-carousel { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: calc(100% / 3); padding: 0 1rem; }
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius-medium);
    height: 100%;
}
.testimonial-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-medium);
    margin-bottom: 1.5rem;
}
.testimonial-card p {
    flex-grow: 1;
    font-size: 1rem; 
    font-style: italic; 
    color: #333;
}
.author-info {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex; 
    align-items: center; 
    gap: 1rem;
}
.author-info h4 { margin: 0; font-size: 1rem; color: var(--text-primary); }
.author-info span { font-size: 0.9rem; color: var(--text-secondary); }
.slider-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; }
.slider-btn { background: var(--background); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 50%; width: 50px; height: 50px; cursor: pointer; font-size: 1.5rem; transition: all var(--transition-speed) ease; }
.slider-btn:hover { background-color: var(--primary-accent); color: white; border-color: var(--primary-accent); }
.slider-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* FAQ */
#faq { background-color: var(--background); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { width: 100%; background: none; border: none; color: var(--text-primary); padding: 1.8rem 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.2rem; font-family: var(--font-heading); font-weight: 600; text-align: left; }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 1.5rem; color: var(--text-secondary); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 200px; }

/* Formulario de Aplicación */
#application-form {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--surface);
    position: relative;
    overflow: hidden;
}
.form-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--background);
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-primary);
}
input[type="text"], input[type="email"], input[type="url"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--surface); /* Añadido para consistencia */
    transition: all var(--transition-speed) ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(42, 75, 58, 0.2);
}
textarea { resize: vertical; }
.form-container button[type="submit"] { width: 100%; }

/* --- 5. FOOTER --- */
.footer { padding: 6rem 0 2rem 0; background: var(--surface); }
.footer-cta { text-align: center; max-width: 700px; margin: 0 auto 5rem auto; }
.footer-cta h2 { font-size: 3rem; margin-bottom: 1rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.footer-bottom .logo { 
    text-decoration: none; 
    margin-bottom: 1rem; 
    display: inline-block; 
}
.footer-bottom p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.footer-bottom .footer-mail {
    margin-left: auto;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-bottom .footer-mail:hover {
    color: var(--primary-accent);
    text-decoration: underline;
}
.footer-bottom > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-cta .btn{
    margin-top: 10px;
}

/* --- 6. RESPONSIVIDAD --- */
@media (max-width: 992px) {
    /* Reducir tamaño de fuente en responsive */
    h1 {
        font-size: calc(2.8rem - 2px) !important;
    }
    h2 {
        font-size: calc(2.5rem - 2px) !important;
    }
    h3 {
        font-size: calc(1.5rem - 2px) !important;
    }
    p, .section-header p, .service-content p, .comparison-card li span, .footer-bottom p {
        font-size: calc(1rem - 2px) !important;
    }
    #hero h1 {
        font-size: calc(4rem - 2px) !important;
    }
    #thank-you h1 {
        font-size: calc(2.5rem - 2px) !important;
    }
    .footer-bottom > div {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    .footer-bottom .footer-mail {
        margin-left: 0;
    }
    .footer-bottom .logo,
    .footer-bottom p,
    .footer-bottom .footer-mail {
        width: 100%;
        text-align: center;
    }
    h2 { font-size: 2.5rem; }
    #hero h1 { font-size: 4rem !important; }
    .comparison-grid, .numeros-grid, .proceso-grid { 
    grid-template-columns: 1fr;
    gap: 1rem
    }
    .numeros-image { order: -1; margin-bottom: 2rem; }
    .slide { min-width: calc(100% / 2); }

    .mobile-cta a{
        color: white !important;
    }
    
    /* --- CAMBIO: Reglas del menú movidas aquí --- */
    .nav-menu {
        display: block;
        position: fixed;
        top: 0; right: -100%;
        width: 85%; height: 100vh;
        background-color: var(--background);
        padding-top: 6rem;
        transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 1.5rem; }
    .nav-menu li a { font-size: 1.3rem; }
    
    .mobile-cta { display: block; }
    .nav-cta { display: none; }

    .hamburger-menu { display: block; }
    .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


@media (max-width: 768px) {
    section { padding: 4rem 0; }
    h2 { font-size: 2.2rem; }
    #hero h1 { font-size: 2.7rem !important; }
    #hero .subtitle { font-size: 1rem !important; }

    .slide { min-width: 100%; padding: 0;}

    .proceso-image { display: none; }
    .comparison-grid { gap: 1rem; }
    .comparison-card { padding: 1.5rem; }
    .form-container { padding: 0.5rem; }
}

@media (max-width: 480px) {
    #hero h1 { font-size: 2.2rem; }
    .footer-cta h2 { font-size: 2.5rem; }
    .service-header h3, .faq-question { font-size: 1.3rem; }
    .step-card h3 { font-size: 1.3rem; }
}

/* --- 7. PÁGINA DE GRACIAS --- */
#thank-you {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--background);
    padding: 2rem 0;
}
.thank-you-content { max-width: 600px; margin: 0 auto; }
.thank-you-icon { width: 80px; height: 80px; color: var(--primary-accent); margin-bottom: 2rem; }
#thank-you h1 { font-size: 3.5rem; margin-bottom: 1rem; }
#thank-you p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2.5rem; }

@media (max-width: 768px) {
    #thank-you h1 { font-size: 2.5rem; }
    #thank-you p { font-size: 1.1rem; }
    .thank-you-icon { width: 60px; height: 60px; }
}

/* --- ESTILOS CORREGIDOS PARA LA SECCIÓN DE COMPARACIÓN --- */
.comparison-card li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.comparison-card ul { list-style: none; }
.comparison-card li svg {
    flex-shrink: 0;
    margin-top: 5px;
}
.comparison-card li div {
    display: flex;
    flex-direction: column;
}
.comparison-card li strong {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-primary);
}
.comparison-card.dark li strong { color: rgb(255, 255, 255); }
.comparison-card li span {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.comparison-card.dark li span { color: rgba(255, 255, 255, 0.85); }

/* --- AJUSTES FINALES PARA EL LOGO --- */
.navbar .logo img {
    height: 90px;
    width: auto;
    transition: height var(--transition-speed) ease;
}
.navbar.scrolled .logo img {
    height: 70px;
}
.footer-bottom .logo img {
    height: 80px;
    width: auto;
}

.navbar .logo { 
    font-family: var(--font-logo);
    font-size: 2.5rem;
    font-weight: normal; 
    color: var(--text-primary); 
    text-decoration: none;
}

/* --- ESTILOS PARA LA PAGINACIÓN DEL CARRUSEL --- */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.pagination-dot.active {
    background-color: var(--primary-accent);
}

/* --- ESTILOS PARA EL LOGO DEL FOOTER --- */
.footer-bottom .logo {
    font-family: var(--font-logo);
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

/* Formulario de Aplicación */
#application-form {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem 0;
    background-color: var(--surface);
    position: relative;
    overflow: hidden;
}

.logo { 
    font-family: var(--font-logo);
    font-size: 2.5rem;
    font-weight: normal; 
    color: var(--text-primary); 
    text-decoration: none;
}


/* --- 8. ESTILOS ADICIONALES PARA FORMULARIO DE APLICACIÓN --- */

.form-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 1.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.form-fieldset legend {
    padding: 0 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-accent);
    font-size: 1.1rem;
}

.form-group label {
    font-size: 1rem;
    color: var(--text-primary);
}

.radio-group-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.radio-group-container.vertical {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center; /* <-- Esta es la línea que centra el contenido */
    cursor: pointer;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    background-color: var(--surface);
    transition: all var(--transition-speed) ease;
    width: auto;
}

.radio-label:hover {
    background-color: #f7f5f1;
    border-color: #dcd9d1;
}

.radio-label input[type="radio"] {
    display: none; /* Ocultamos el radio button por defecto */
}

.radio-label span {
    font-size: 0.95rem;
    position: relative;
    padding-left: 30px;
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.radio-label span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background-color: #fff;
    transition: all var(--transition-speed) ease;
}

.radio-label span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-accent);
    transition: transform 0.2s ease;
}

/* Estilo cuando el radio está seleccionado */
.radio-label input[type="radio"]:checked + span {
    color: var(--text-primary);
    font-weight: 500;
}

.radio-label input[type="radio"]:checked + span::before {
    border-color: var(--primary-accent);
}

.radio-label input[type="radio"]:checked + span::after {
    /* Mueve el punto -50% de su propio tamaño en ambos ejes */
    transform: translate(20%, -50%) scale(1); 
    
    /* Nota: Esto asume que el pseudo-elemento ::after ya está posicionado 
       con top: 50%; y left: 50%; para llevar su esquina superior izquierda
       al centro del contenedor. */
}

/* Ocultar el último fieldset que es solo para el botón */
#contact-form > fieldset:last-of-type {
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
#contact-form > fieldset:last-of-type > legend{
    font-size: 1.1rem;
    padding-left: 0;
}

/* --- 9. ESTILOS PARA FORMULARIO MULTI-PASO --- */

/* Contenedor del formulario */
.form-container {
    padding: 2rem; /* Reducimos padding para pantallas chicas */
}

/* Ocultar los fieldset, ya no los usamos para la estructura principal */
.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.form-fieldset legend {
    display: none;
}

/* Estilos de los pasos */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.form-step.active {
    display: block;
}

.step-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Barra de Progreso */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 3px;
    width: 100%;
    background-color: var(--border-color);
    z-index: -1;
}
.progress-step {
    width: 40px;
    height: 40px;
    background-color: var(--surface);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
    position: relative;
}
.progress-step.active {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
}
.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 10px);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    width: max-content;
}
.progress-step.active::after {
    color: var(--text-primary);
}


/* Navegación del Formulario */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}
/* Botón secundario para "Anterior" */
.btn-secondary {
    background-color: #EAE8E3; /* Color de fondo sutil */
    color: var(--text-secondary);
    border: none; /* Quitamos el borde */
    padding: 12px 28px; /* Ajustamos padding para alinear con el otro botón */
    transition: background-color 0.3s ease;
}
.btn-secondary:hover {
    background-color: #dcd9d1; /* Un poco más oscuro al pasar el mouse */
    color: var(--text-primary);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    .progress-bar {
        width: 100%;
    }
    .progress-step::after {
        display: none; /* Ocultar títulos en móvil para no saturar */
    }
    .step-title {
        font-size: 1.5rem;
    }
}



/* --- Botón Anterior con Icono --- */
.btn-anterior {
    display: flex; /* Activa Flexbox */
    align-items: center; /* Centra verticalmente el icono y el texto */
    justify-content: center; /* Centra horizontalmente el contenido */
    gap: 8px; /* Espacio entre el icono y el texto */
    
    /* Estilos adicionales para que coincida con tu diseño */
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-anterior:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* --- AJUSTES FINALES PARA EL LOGO --- */
.navbar .logo img {
    height: 45px; /* Altura del logo en la barra de navegación */
    width: auto;
    transition: height 0.3s ease;
}
.navbar.scrolled .logo img {
    height: 40px; /* Altura del logo al hacer scroll */
}
.footer-bottom .logo img {
    height: 40px; /* Altura del logo en el pie de página */
    width: auto;
    margin: 0 auto 1rem auto; /* Centra el logo en el pie de página */
}
/* Estilo para el logo en la página de aplicar */
#application-form .logo img {
    height: 50px;
    width: auto;
    margin: 0 auto;
}

/* --- ESTILOS DEL LOGO --- */
/* Se eliminan los estilos de fuente y se ajusta para la imagen */
.navbar .logo, .footer-bottom .logo { 
    text-decoration: none;
    display: inline-block;
    line-height: 1; /* Asegura que el contenedor no tenga espacio extra */
}

