/**
 * G&C Rent a Car - init.css (Optimizado desde Cero)
 * Base global styles, design tokens, and viewport layout fixing.
 * Developed by: Web Developer Partner
 * Year: 2026
 */

/* ==========================================================================
   0. IMPORTACIÓN DE FUENTES (Optimizado para SEO y Rendimiento)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS (Variables Globales - Manteniendo tus tokens)
   ========================================================================== */
:root {
    --primary-color: #1565C0;       /* Azul Eléctrico - Botones principales, acentos */
    --secondary-color: #E3F2FD;
    --primary-hover: #0b5ed7;       /* Azul más oscuro para estados hover */
    --secondary-hover: #1a252c;     /* Gris Antracita */
    
    /* Colores de Estado (Alertas y Mensajes) */
    --color-info: #0dcaf0;
    --color-success: #198754;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    
    /* Colores de Fondo y Superficie */
    --bg-page: #f8f9fa;
    --bg-dark: #041531;
    --bg-surface: #ffffff;
    --border-color: #e0e0e0;
    
    /* Colores de Texto */
    --text-main: #212529;
    --text-muted: #6c757d;
    --text-white: #ffffff;
    
    /* Fuentes */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Bordes y Sombras */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);

    /* Capa de contraste para imágenes de fondo (Hero Overlay) */
    --overlay-dark: rgba(0, 0, 0, 0.55);

    --border-radius-btn: 25px;
}

/* ==========================================================================
   2. ESTRUCTURA RAÍZ Y ARQUITECTURA DE ALTURAS (Solución al Colapso)
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* Aseguramos que los cimientos de la página ocupen toda la altura visual */
    min-height: 100vh;
    min-height: 100dvh; /* dynamic vh para excelente comportamiento en smartphones */
    box-sizing: border-box;
}

/* Configuración global del modelo de caja */
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: var(--bg-page);
    font-family: var(--font-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll horizontal accidental */
    
    /* El body se vuelve un contenedor flexible vertical */
    display: flex;
    flex-direction: column;
}

/* Contenedor específico del Hero inyectado por JS */
#hero-container-app {
    width: 100%;
    /* Forzamos a que el envoltorio mida el tamaño total de la pantalla inicial */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   3. ELEMENTOS GENÉRICOS Y TIPOGRAFÍA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--secondary-hover);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Elementos de formulario compartidos */
input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
}

button {
    cursor: pointer;
}

/* ==========================================================================
   4. CLASES DE UTILIDAD Y CONTENEDORES (Manteniendo tus estilos)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-grid {
    display: grid;
    gap: 1.5rem;
}

/* ==========================================================================
   5. COMPONENTES GLOBALES DE ESTADO (Alertas de tu archivo original)
   ========================================================================== */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.25);
    color: #055160;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.25);
    color: #0f5132;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.3);
    color: #664d03;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.25);
    color: #842029;
}


/* ==========================================================================
   Botón Neutro Estilo Cuadro de Diálogo (Windows Spec)
   ========================================================================== */
.btn {
    /* Reseteo y Base Estructural */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio perfecto si agregas un icono de FontAwesome (ej: una flecha o un carro) */
    
    /* Tipografía y Legibilidad */
    font-family: inherit; /* Hereda la fuente global del body */
    font-size: 1rem; /* 16px base, ideal para SEO y accesibilidad móvil */
    font-weight: 600; /* Semi-bold para denotar acción */
    line-height: 1.5;
    text-align: center;
    text-decoration: none; /* Por si se aplica a una etiqueta <a> */
    
    /* Dimensiones (Padding amigable para pulgares móviles - Mobile First) */
    padding: 12px 28px;
    min-height: 48px; /* Altura mínima recomendada por Google UX para pantallas táctiles */
    
    /* Comportamiento del Cursor */
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius-btn);
    
    /* Transición suave para rendimiento visual */
    transition: var(--transition-fast);
    user-select: none;
}

.btn-neutral {
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: lightgray ;
    color: black; 
    box-shadow: var(--shadow-btn);
    border: 1.5px solid black;
}
.btn-neutral1 {
    /* Reseteo de estilos nativos del navegador */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: #ADADAD;
    padding: 0;
    margin: 0;
    
    /* Dimensiones estándar de botones de Windows */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 32px;
    padding: 0 16px;
    
    /* Tipografía nativa del sistema para máxima velocidad de carga (SEO/WPO) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
    text-align: center;
    text-decoration: none;
    
    /* Estética Windows: Fondo plano y bordes geométricos limpios */
    background-color: #fbfbfb;
    border: 1px solid #cccccc;
    border-radius: 4px; /* Un radio muy sutil de 4px emula Windows 11; usa 0px para Windows 10 */
    
    /* Transición suave para retención y UX */
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    user-select: none;
}

/* Estado: Hover (Pasar el mouse por encima) */
.btn-neutral:hover {
    background-color: #f5f5f5;
    border-color: #999999;
}

/* Estado: Active / Pressed (Click izquierdo sostenido) */
.btn-neutral:active {
    background-color: #e5e5e5;
    border-color: #888888;
    transform: scale(0.99); /* Sutil compresión táctil moderna */
}

/* Estado: Focus (Navegación por teclado / Accesibilidad) */
.btn-neutral:focus-visible {
    outline: 2px solid #0067b8; /* El clásico azul de enfoque de Microsoft */
    outline-offset: 1px;
}

/* Estado: Disabled (Deshabilitado de forma segura) */
.btn-neutral:disabled {
    background-color: #cccccc;
    border-color: #bbbbbb;
    color: #888888;
    cursor: not-allowed;
    transform: none;
}

/* Estado Específico: Primario */
.btn-primary {
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: var(--primary-color);
    color: white; 
    box-shadow: var(--shadow-btn);
}

/* Estado: Hover (Pasar el mouse) y Focus (Accesibilidad por teclado) */
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    color: var(--text-light);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-2px); /* Efecto micro-interacción: el botón "se eleva" sutilmente */
    outline: none;
}

/* Estado: Active (Cuando el usuario da clic físico) */
.btn-primary:active {
    transform: translateY(0); /* Vuelve a su posición original simulando una pulsación mecánica */
    box-shadow: 0 2px 10px rgba(21, 101, 192, 0.2);
}

/* Estado: Disabled (Útil si los campos de fecha están vacíos o el formulario está enviando) */
.btn-primary:disabled {
    background-color: #BDBDBD;
    color: #757575;
    box-shadow: none;
    cursor: not-allowed;
    transform: translateY(0);
}



/* Contenedor del sistema de rejilla */
.row {
  display: flex;
  flex-wrap: wrap; /* Permite que las columnas bajen a la siguiente línea en móviles */
  margin-right: -15px; /* Compensa el padding de las columnas */
  margin-left: -15px;
}

/* Base para todas las columnas */
.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  width: 100%;
}

/* Columnas con anchos fijos (Basado en un sistema tradicional de 12 columnas) */
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 15px; }
.col-6  { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.col-3  { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }

/* Responsive: En dispositivos móviles menores a 768px, las columnas ocupan el 100% */
@media (max-width: 767px) {
  .col, .col-6, .col-4, .col-3, .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px; /* Espaciado vertical en móvil */
  }
}

.no-show { display: none;}