/*
 * 🏠 HOME - SISTEMA DE DISEÑO XACOBEOS
 * Estilos específicos para la página de inicio
 */

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                url('../img/catedral-de-santiago.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::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="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-title i {
    margin-right: 0.5rem;
    color: var(--camino-yellow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: var(--white);
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn-primary {
    background: var(--camino-yellow);
    color: var(--gray-900);
    border-color: var(--camino-yellow);
}

.hero-actions .btn-primary:hover {
    background: var(--camino-yellow-dark);
    border-color: var(--camino-yellow-dark);
    color: var(--gray-900);
}

.hero-actions .btn-outline-primary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero-actions .btn-outline-primary:hover {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
}

/* ================================
   FEATURED ROUTES SECTION
   ================================ */
.featured-routes {
    padding: 5rem 0;
    background: linear-gradient(rgba(249, 250, 251, 0.95), rgba(249, 250, 251, 0.95)), 
                url('https://images.unsplash.com/photo-1551632811-561732d1e306?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    position: relative;
}

.featured-routes h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.featured-routes > .container > p {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.featured-routes .cards-grid {
    margin-top: 2rem;
}

.featured-routes .card {
    transition: var(--transition-smooth);
}

.featured-routes .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.featured-routes .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-routes .card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ================================
   FEATURES SECTION
   ================================ */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    position: relative;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.features-section > .container > p {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--camino-blue) 0%, var(--camino-blue-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
}

.grid-item h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.grid-item p {
    text-align: center;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    color: var(--white);
    position: relative;
}

.cta-section h2,
.cta-section h3 {
    color: var(--white);
    text-align: center;
}

.cta-section p {
    color: var(--gray-300);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-section .card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.cta-section .card-body {
    text-align: center;
}

.cta-section .hero-actions {
    justify-content: center;
}

/* ================================
   STATS SECTION
   ================================ */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('https://images.unsplash.com/photo-1551632811-561732d1e306?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--camino-blue);
    margin-bottom: 0.5rem;
    font-family: var(--font-headings);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ================================
   CONTAINER
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 70vh;
    }
    
    .hero-content .container {
        padding: 2rem 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .featured-routes,
    .features-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 60vh;
    }
    
    .hero-content .container {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-routes .cards-grid {
        grid-template-columns: 1fr;
    }
} 