/* ========================================
   ESTILOS - PÁGINA HOME
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
}

.hero-image-wrapper {
    display: none;
    position: absolute;
    right: calc((100% - 100vw) / 2);
    top: 40%;
    transform: translateY(-50%);
    width: 50vw;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    transform: scale(1.25) translateX(3rem);
}

.hero-container {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
    z-index: 10;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.hero-title-highlight {
    color: var(--primary-500);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SEARCH BOX
   ======================================== */
.search-box {
    background-color: white;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 20;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper--location {
    position: relative;
}

.search-input-wrapper--location .search-input {
    padding-right: 3.5rem;
}

.search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Botón de geolocalización */
.btn-geolocation {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background-color: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--gray-500);
}

.btn-geolocation:hover {
    background-color: var(--primary-50);
    color: var(--primary-500);
}

.btn-geolocation:active {
    transform: translateY(-50%) scale(0.95);
}

.btn-geolocation:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-geolocation.loading .geolocation-icon-loading {
    animation: spin 1s linear infinite;
}

.geolocation-icon,
.geolocation-icon-loading {
    width: 1.25rem;
    height: 1.25rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Disclaimer de ubicación aproximada */
.location-disclaimer {
    position: absolute;
    bottom: -1.75rem;
    left: 0;
    right: 0;
    font-size: 0.75rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity 0.3s ease;
}

.location-disclaimer i {
    font-size: 0.875rem;
    color: var(--primary-400);
}

.location-disclaimer.fade-out {
    opacity: 0;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    color: var(--gray-700);
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-input:focus {
    background-color: white;
    border-color: var(--primary-300);
    box-shadow: 0 0 0 3px rgba(41, 108, 255, 0.1);
}

.btn-search {
    background-color: var(--secondary-500);
    color: var(--gray-900);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.btn-search:hover {
    background-color: var(--secondary-600);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   WAVE DIVIDER
   ======================================== */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ========================================
   SECTION - BANNER
   ======================================== */

.banner {
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* MOBILE - Estilos específicos para móvil */
@media (max-width: 639px) {
    .hero-section {
        background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
        margin-left: calc(var(--container-padding) * -1);
        margin-right: calc(var(--container-padding) * -1);
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 80%;
        height: 150%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .hero-container {
        padding: 2rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        color: white;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero-title-highlight {
        color: var(--secondary-400);
        display: block;
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 1.5rem;
    }
    
    .search-box {
        border-radius: var(--radius-xl);
        padding: 0.75rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        margin-bottom: 1.25rem;
        max-width: 100%;
    }
    
    .search-input {
        padding: 0.875rem 1rem 0.875rem 2.75rem;
        font-size: 0.9375rem;
    }
    
    .search-icon {
        left: 0.875rem;
    }
    
    .btn-search {
        background-color: var(--primary-500);
        color: white;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-secondary-solid-shadow,
    .hero-buttons .btn-primary-outline {
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
        text-align: center;
    }
    
    .hero-buttons .btn-primary-outline {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
    }
}

@media (min-width: 640px) {
    .hero-container { padding: 6rem 0; }
    .search-form { flex-direction: row; }
    .hero-buttons { flex-direction: row; }
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-image-wrapper { display: block; }
    .hero-container { padding: 8rem 0; }
    .hero-content { 
        width: 60%; 
        text-align: left;
    }
    .hero-title { font-size: 3.75rem; }
    .hero-subtitle { 
        font-size: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }
    .search-box {
        margin-left: 0;
        margin-right: 0;
    }
    .hero-buttons { justify-content: flex-start; }
}

