        /* =========================================
   LANDING PAGE STYLES
   ========================================= */

/* --- 1. HERO SECTION (Portada) --- */
.hero-section {
    position: relative;
    height: 90vh; /* Ocupa casi toda la pantalla */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/hero-background.jpg'); 
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 0 20px;
}

/* Capa oscura para que se lea el texto sobre la foto */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(44, 62, 80, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #ff6600; /* Tu naranja */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
}

/* Botones del Hero */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-hero {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero.primary {
    background-color: #ff6600;
    color: #fff;
    border: 2px solid #ff6600;
}

.btn-hero.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.btn-hero.secondary:hover {
    background-color: #fff;
    color: #333;
}

/* --- 2. FEATURES SECTION (Iconos) --- */
.features-section {
    padding: 80px 20px;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.divider {
    height: 4px;
    width: 80px;
    background-color: #ff6600;
    margin: 0 auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s;
    background: #fff;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #ff6600;
}

.icon-box {
    width: 80px;
    height: 80px;
    background-color: #fff3e6; /* Naranja muy suave */
    color: #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* --- 3. CTA SECTION (Final) --- */
.cta-section {
    background: linear-gradient(to right, #2c3e50, #4ca1af); /* Degradado oscuro elegante */
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 30px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.btn-cta:hover {
    background-color: #e65c00;
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE (Móvil) --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-hero { width: 100%; justify-content: center; }
    .features-section { padding: 50px 20px; }
    .cta-content h2 {
    font-size: 1.5rem;
}
}

/* =======================================================
   CORRECCIÓN DE DESBORDAMIENTO (FIX HORIZONTAL SCROLL)
   ======================================================= */

/* 1. LA SOLUCIÓN NUCLEAR:
   Esto le dice al navegador: "Si algo se sale del ancho de la pantalla, ocultalo".
   Esto elimina la barra de desplazamiento horizontal inmediatamente. */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important; /* CLAVE: Corta lo que sobre a los costados */
    margin: 0;
    padding: 0;
}

/* 2. RESETEAR CAJAS:
   Asegura que el padding no engorde los elementos (padding + width = desastre) */
* {
    box-sizing: border-box;
}

/* =======================================================
   RESETEO ESPECÍFICO PARA MÓVILES (NAV Y FOOTER)
   ======================================================= */
@media (max-width: 768px) {
    
    /* Forzamos al Header, al Footer y a los Contenedores a no ser más anchos que el celular */
    .main-header, 
    .header-content, 
    footer,
    .container,
    .hero-section {
        width: 100% !important;
        max-width: 100vw !important; /* 100% del Viewport Width */
        min-width: 0 !important;     /* Anula anchos mínimos fijos viejos */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px;          /* Un padding seguro para que no toque los bordes */
        padding-right: 15px;
    }

    /* Si tienes imágenes que se salen, esto las obliga a entrar */
    img {
        max-width: 100%;
        height: auto;
    }
}