/* =====================================================
   LANDING PAGE STYLES - Grupo Inversor H y S
   ===================================================== */

/* Reset para landing */
body.landing-page {
    padding-top: 76px; /* Altura del navbar fixed */
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-landing {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-landing .navbar-brand {
    font-size: 1.25rem;
}

.navbar-landing .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar-landing .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

.navbar-landing .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   HERO CAROUSEL
   ===================================================== */
.hero-carousel {
    margin-top: 0;
}

.hero-carousel .carousel-item {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Hero slides: variantes de azul (viaje / casa / auto) */
.hero-slide {
    background-size: cover;
    background-position: center;
}

/* Viaje: azul cielo → celeste, sensación de horizonte */
.hero-slide-1 {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #1976d2 70%, #42a5f5 100%);
}

/* Remodelar casa: azul medio → azul claro, confiable */
.hero-slide-2 {
    background: linear-gradient(145deg, #0d47a1 0%, #1e88e5 35%, #42a5f5 65%, #64b5f6 100%);
}

/* Auto: azul marino → azul, profesional */
.hero-slide-3 {
    background: linear-gradient(155deg, #0a3d6b 0%, #1565c0 50%, #1976d2 100%);
}

/* Hero icon: más protagonista y legible */
.hero-icon {
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-icon i {
    font-size: 3.75rem;
    color: white;
}

@media (max-width: 575.98px) {
    .hero-icon {
        width: 80px;
        height: 80px;
    }
    .hero-icon i {
        font-size: 2rem;
    }
}

.hero-carousel .carousel-caption {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 100px 0;
    text-align: center;
}

.hero-carousel h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.75rem;
}

.hero-carousel p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.hero-carousel .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-carousel .btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
    background-color: #f8f9fa;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primario, #1a5f2a);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* =====================================================
   CALCULATOR SECTION
   ===================================================== */
.calculator-section {
    background: linear-gradient(135deg, var(--color-primario, #1a5f2a) 0%, var(--color-secundario, #28a745) 100%);
    color: white;
}

.calculator-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.calculator-card .card-header {
    background: var(--color-primario, #1a5f2a);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.calculator-card .card-header h3 {
    margin: 0;
    font-weight: 700;
}

.calculator-card .card-body {
    padding: 2rem;
}

.calculator-card label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.calculator-card .form-control,
.calculator-card .form-select {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

.calculator-card .form-control:focus,
.calculator-card .form-select:focus {
    box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.25);
}

.calculator-result {
    background: linear-gradient(135deg, var(--color-primario, #1a5f2a) 0%, var(--color-secundario, #28a745) 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    color: white;
    margin-top: 1.5rem;
}

.calculator-result .result-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.calculator-result .result-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.calculator-card .btn-solicitar {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   REQUIREMENTS SECTION
   ===================================================== */
.requirements-section {
    background-color: #fff;
}

.requirements-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primario, #1a5f2a);
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

.requirement-item:hover {
    transform: translateX(5px);
}

.requirement-item i {
    font-size: 1.5rem;
    color: var(--color-primario, #1a5f2a);
    margin-right: 1rem;
    min-width: 30px;
}

.requirement-item span {
    font-size: 1.05rem;
    color: #333;
}

/* =====================================================
   BENEFITS SECTION
   ===================================================== */
.benefits-section {
    background-color: #f8f9fa;
}

.benefits-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primario, #1a5f2a);
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primario, #1a5f2a) 0%, var(--color-secundario, #28a745) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card .icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.benefit-card h4 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: #666;
    margin: 0;
}

/* =====================================================
   PROCESS SECTION
   ===================================================== */
.process-section {
    background: linear-gradient(135deg, var(--color-primario, #1a5f2a) 0%, var(--color-secundario, #28a745) 100%);
    color: white;
}

.process-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primario, #1a5f2a);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.process-step h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-step p {
    opacity: 0.9;
}

/* Línea conectora entre pasos */
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -15%;
        width: 30%;
        height: 3px;
        background: rgba(255, 255, 255, 0.3);
    }
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background-color: #333;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section .btn-lg {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
}

/* =====================================================
   FAQ PAGE
   ===================================================== */
.faq-section {
    padding-top: 100px;
}

.faq-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primario, #1a5f2a);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    background-color: white;
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-primario, #1a5f2a);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-primario, #1a5f2a);
}

.accordion-button::after {
    background-size: 1.25rem;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    line-height: 1.7;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .hero-carousel h2 {
        font-size: 2rem;
    }
    
    .hero-carousel p {
        font-size: 1.1rem;
    }
    
    .hero-carousel .carousel-item {
        min-height: 400px;
    }
    
    .calculator-card .card-body {
        padding: 1.5rem;
    }
    
    .calculator-result .result-value {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    body.landing-page {
        padding-top: 66px;
    }
    
    .hero-carousel h2 {
        font-size: 1.5rem;
    }
    
    .hero-carousel p {
        font-size: 1rem;
    }
    
    .hero-carousel .carousel-caption {
        padding: 60px 15px;
    }
    
    .hero-carousel .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .process-step .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Delay classes for staggered animations */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
