/* Enhanced Landing Page CSS */

/* Estilos para el header fijo */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Estilos para el contenido principal */
.main-content {
    margin-top: 80px;
}

/* Estilos para las secciones */
.section {
    padding: 4rem 0;
    position: relative;
}

/* Estilo específico para la sección hero */
.section.bg-light:first-of-type {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.section.bg-light:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Estilos para el modal de registro */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 700;
    color: #212529;
}

.form-control {
    border-radius: 12px;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Estilos para el botón de registro destacado */
.btn-register {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-register:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    color: white;
}

/* Estilos para el botón de iniciar sesión */
.btn-login {
    padding: 0.25rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #0d6efd;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
    background-color: #0d6efd;
    color: white;
}

/* Estilos para el footer */
.footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
}

/* Estilos para la sección ¿Qué hacemos? simplificada */
#que-hacemos {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
    position: relative;
}

#que-hacemos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.que-hacemos-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.que-hacemos-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7, #0a58ca);
}

.que-hacemos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.que-hacemos-card .card-body {
    padding: 3rem 2rem;
}

.que-hacemos-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 1.5rem;
    position: relative;
}

.que-hacemos-card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    border-radius: 2px;
}

.que-hacemos-card .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 0;
    font-weight: 400;
}

.que-hacemos-card .text-bold {
    font-weight: 700;
    color: #212529;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilos para la sección Cómo funciona - MODIFICADO CON COLORES ESPECÍFICOS */
.como-funciona-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.como-funciona-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7, #0a58ca);
}

.como-funciona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.como-funciona-card .card-body {
    padding: 3rem 2rem;
}

.como-funciona-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 2rem;
    position: relative;
}

.como-funciona-card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    border-radius: 2px;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0d6efd, #0b5ed7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.step-item p {
    margin: 0;
    color: #212529;
    line-height: 1.6;
    font-size: 1rem;
    padding-top: 0.25rem;
    font-weight: 500;
}

/* Estilos para la sección Beneficios - MODIFICADO CON COLORES ESPECÍFICOS */
.beneficios-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.beneficios-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7, #0a58ca);
}

.beneficios-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.beneficios-card .card-body {
    padding: 3rem 2rem;
}

.beneficios-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 2.5rem;
    position: relative;
}

.beneficios-card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    border-radius: 2px;
}

.beneficios-container {
    max-width: 1000px;
    margin: 0 auto;
}

.beneficio-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.beneficio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0d6efd, #0b5ed7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beneficio-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.beneficio-item:hover::before {
    opacity: 1;
}

.beneficio-item:last-child {
    margin-bottom: 0;
}

.beneficio-item p {
    margin: 0;
    color: #212529;
    line-height: 1.7;
    font-size: 1.05rem;
    text-align: justify;
    font-weight: 500;
}

/* Estilos para el Acróstico de Beneficios - MODIFICADO CON COLORES ESPECÍFICOS */
.acrostic-letter {
    font-weight: 900;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-right: 1.5rem;
    text-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
}

/* Utility class for bold text */
.text-bold {
    font-weight: bold;
}

/* FAQ Styles */
.accordion-item {
    border: none;
    border-radius: 15px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.accordion-button {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    font-weight: 600;
    color: #212529;
    padding: 1.5rem 2rem;
    border-radius: 15px !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.section.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    position: relative;
    overflow: hidden;
}

.section.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.section.bg-primary .container {
    position: relative;
    z-index: 1;
}

.section.bg-primary h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section.bg-primary .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.section.bg-primary .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #0d6efd;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.section.bg-primary .btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section.bg-light:first-of-type {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .que-hacemos-card h2,
    .como-funciona-card h2,
    .beneficios-card h2,
    .section.bg-primary h2 {
        font-size: 2rem;
    }
    
    .que-hacemos-card .card-body,
    .como-funciona-card .card-body,
    .beneficios-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .step-item,
    .beneficio-item {
        padding: 1rem 1.5rem;
    }
    
    .acrostic-letter {
        font-size: 2.5rem;
        margin-right: 1rem;
    }
    
    .accordion-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn-register,
    .btn-login {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .beneficio-item {
        flex-direction: column;
        text-align: center;
    }
    
    .acrostic-letter {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
