/* ==========================================================================
   1. VARIABLES DE MARCA Y CONFIGURACIÓN GENERAL (HERO)
   ========================================================================== */
:root {
    --primary-color: #0000bf;       /* Azul distintivo corporativo */
    --primary-hover: #000099;
    --text-light: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. SECCIÓN HERO Y CAPA FILTRO DE CONTRASTE
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100vw;
    min-height: 85vh;
    height: 100vh;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
    
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    align-items: center;

    
    padding: 40px 40px;
    box-sizing: border-box;
    overflow: hidden;
}
/* Ajuste para evitar que la barra se esconda detrás del navbar */
.hero-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.2));
    z-index: 1; /* Fondo oscuro controlado */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2; /* Obliga al contenido y botones a estar por encima del filtro */
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: white;
    margin-bottom: 40px;
    max-width: 600px;
}

/* ==========================================================================
   3. BARRA HORIZONTAL / CONTENEDOR DE RANGOS DE FECHAS
   ========================================================================== */
.date-range-box {
    background: transparent;
    
}

/* Bloque contenedor individual de fechas (Recogida / Entrega) */
.date-content {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 12px;
    /*gap: 12px;*/
    
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "title title title" "icon date-link time-link";
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.date-content:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}


.date-link {
    grid-area: date-link;

    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: auto 1fr auto;

    grid-column-gap: 10px;

    padding: 16px 8px;
    border-radius: 16px;

}
.time-link {
    grid-area: time-link;

    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr auto;

    grid-column-gap: 10px;

    padding: 16px;
    border-radius: 16px;
}

.time-link:hover, .date-link:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

/* Iconografía (Iconos principales e interactivos) */
.date-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.date-button  {
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.time-button {
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.date-button:hover {
    color: var(--text-dark);
}

/* Estructura interna de textos de las fechas */
.date-label {
    grid-area: title;
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.date-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.time-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Botón principal de Envío / Confirmación */
.hero-content button, .reservation-bar-container button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.hero-content button:hover {
    background-color: var(--primary-hover);
}

.hero-content button:active {
    transform: scale(0.98);
}


/* ==========================================================================
   4. MEDIA QUERIES (ADAPTABILIDAD RESPONSIVE)
   ========================================================================== */

/* Ajustes para pantallas Medianas en adelante (Tablets horizontales / Escritorio) */
@media (min-width: 992px) {
    
    .hero-section {
        justify-content: center;  
    }
    .hero-title {
        font-size: 3.5rem;         /* Tipografía robusta e impactante */
        margin-bottom: 16px;
    }
    .hero-subtitle {
        font-size: 1.35rem;
        margin-bottom: 48px;
    }
    .hero-content button {
        border-radius: 100px;     /* Mantiene simetría con la barra redondeada */
        padding: 14px 36px;
    }
}