/* ========================================
   VARIABLES - COINCIDEN CON EL HEADER
   ======================================== */

:root {
    --ersit-deep-blue: #020d1f;
    --ersit-navy: #04132b;
    --ersit-dark-blue: #071c3a;
    --ersit-neon: #00f2ff;
    --ersit-blue: #009dff;
    --white: #ffffff;
    --gradient-header: linear-gradient(90deg, #071c3a 0%, #04132b 50%, #020d1f 100%);
    --gradient-neon: linear-gradient(135deg, #00f2ff 0%, #009dff 100%);
    --shadow-premium: 0 10px 35px rgba(0, 0, 0, 0.55);
    --shadow-neon: 0 6px 18px rgba(0, 242, 255, 0.35);
    --border-radius: 6px;
}

/* ========================================
   HERO SECTION CON IMAGEN FULLSCREEN
   ======================================== */

.hero-fullscreen {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; 
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(2, 13, 31, 0.92) 0%,
        rgba(4, 19, 43, 0.88) 50%,
        rgba(7, 28, 58, 0.92) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--ersit-neon);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.text-gradient-neon {
    background: linear-gradient(135deg, #00f2ff 0%, #009dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-casillero-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-neon);
    color: var(--ersit-deep-blue);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-casillero-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 242, 255, 0.55);
    color: var(--ersit-deep-blue);
}

.btn-casillero-hero i {
    transition: transform 0.3s ease;
}

.btn-casillero-hero:hover i {
    transform: translateX(5px);
}

.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-outline-hero:hover {
    border-color: var(--ersit-neon);
    color: var(--ersit-neon);
    background: rgba(0, 242, 255, 0.05);
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 100px;
}

/* ========================================
   PILARES PREMIUM
   ======================================== */

.section-pilares {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    z-index: 10;
}

.pilar-card-premium {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pilar-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-neon);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-neon);
}

.card-icon-wrapper i {
    font-size: 2rem;
    color: var(--ersit-deep-blue);
}

.pilar-card-premium h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ersit-deep-blue);
    position: relative;
    z-index: 2;
}

.pilar-card-premium p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 242, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pilar-card-premium:hover .card-shine {
    opacity: 1;
}

/* ========================================
   CÓMO FUNCIONA - TIMELINE PREMIUM
   ======================================== */

.section-como-funciona {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: #0044cc; 
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: rgba(0, 106, 255, 0.1);
    padding: 5px 15px;
    border-radius: 100px;
    border: 1px solid rgba(0, 106, 255, 0.2);
}

.section-title-premium {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ersit-deep-blue);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.125rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-premium {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    position: relative;
}

.timeline-item {
    flex: 1 1 180px;
    max-width: 220px;
    min-width: 160px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--ersit-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ersit-neon);
    box-shadow: 0 0 0 5px rgba(0, 242, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    z-index: 3;
}

.timeline-item:hover .timeline-number {
    background: var(--gradient-neon);
    color: var(--ersit-deep-blue);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.timeline-content {
    background: var(--white);
    padding: 25px 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: -10px; /* Para superponer ligeramente con el círculo */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 242, 255, 0.2);
}

.timeline-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ersit-deep-blue);
    padding-top: 5px;
}

.timeline-content p {
    color: #475569;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .timeline-items {
        gap: 20px;
    }
    
    .timeline-item {
        flex: 1 1 160px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .timeline-items {
        gap: 30px;
    }
    
    .timeline-item {
        flex: 0 0 calc(50% - 30px);
        max-width: none;
        min-width: 200px;
    }
    
    .timeline-content {
        min-height: 160px;
    }
}

@media (max-width: 576px) {
    .timeline-item {
        flex: 0 0 100%;
        max-width: 280px;
    }
}
/* ========================================
   NOSOTROS SECTION MEJORADO
   ======================================== */

.section-nosotros {
    padding: 100px 0;
    background: var(--white);
}

.nosotros-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--ersit-deep-blue);
}

.nosotros-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 25px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item i {
    color: var(--ersit-neon);
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.feature-item span {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
}

.nosotros-image-wrapper {
    position: relative;
    padding: 20px;
}

.image-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    animation: morph 8s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.nosotros-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-premium);
    text-align: center;
    z-index: 3;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.3;
}

/* ========================================
   MARCAS DESTACADAS - VERSIÓN ORIGINAL
   ======================================== */

.section-marcas {
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-marcas .row {
    align-items: center;
    justify-content: center;
}

.section-marcas .col-4,
.section-marcas .col-md-2 {
    text-align: center;
}

.section-marcas i {
    color: #475569;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.section-marcas i:hover {
    color: var(--ersit-neon);
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

/* ========================================
   FAQ CON ACORDEÓN
   ======================================== */

.section-faq {
    padding: 100px 0;
    background: var(--white);
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-premium);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--white);
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ersit-deep-blue);
    letter-spacing: 0.5px;
}

.faq-question:hover {
    background: rgba(0, 242, 255, 0.02);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--ersit-neon);
    font-size: 1.1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #475569;
    line-height: 1.7;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 20px 25px;
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.faq-answer li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.faq-answer li:last-child {
    border-bottom: none;
}

.faq-answer li i {
    color: #ef4444;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ========================================
   CTA FINAL PREMIUM
   ======================================== */

.section-cta {
    padding: 60px 0 100px 0;
    background: var(--white);
}

.cta-card {
    background: var(--gradient-header);
    padding: 60px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.cta-card::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" opacity="0.05"><circle cx="50" cy="50" r="40" fill="none" stroke="%2300f2ff" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="%2300f2ff" stroke-width="0.5"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.btn-cta-premium {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-neon);
    color: var(--ersit-deep-blue);
    padding: 16px 40px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-cta-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.5);
    color: var(--ersit-deep-blue);
}

.btn-cta-premium i {
    font-size: 1.2rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .timeline-items {
        gap: 15px;
    }
    
    .timeline-item {
        flex: 0 0 calc(33.333% - 15px);
    }
    
    .feature-list {
        justify-content: flex-start;
    }
    
    .cta-card {
        padding: 40px;
        text-align: center;
    }
    
    .cta-card .text-lg-end {
        text-align: center !important;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title-premium {
        font-size: 2rem;
    }
    
    .timeline-item {
        flex: 0 0 calc(50% - 15px);
    }
    
    .feature-list {
        flex-direction: column;
    }
    
    .nosotros-image-wrapper {
        margin-top: 40px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .btn-cta-premium {
        padding: 14px 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .btn-casillero-hero, 
    .btn-outline-hero {
        width: 100%;
        justify-content: center;
    }
    
    .timeline-item {
        flex: 0 0 100%;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}