/* ========================================
   ESTILOS GLOBALES - UBIKA
   ======================================== */

/* ========================================
   VARIABLES / COLORES
   ======================================== */
:root {
    /* Colores Primarios */
    --primary-50: #e8f0ff;
    --primary-100: #d4e4ff;
    --primary-200: #a9c8ff;
    --primary-300: #7eadff;
    --primary-400: #5391ff;
    --primary-500: #296CFF;
    --primary-600: #2156cc;
    --primary-700: #194199;
    --primary-800: #102b66;
    --primary-900: #081633;
    
    /* Colores Secundarios */
    --secondary-50: #fffdf0;
    --secondary-100: #fffae0;
    --secondary-200: #fff5c2;
    --secondary-300: #ffef99;
    --secondary-400: #ffe366;
    --secondary-500: #FFD633;
    --secondary-600: #ccab29;
    --secondary-700: #99801f;
    --secondary-800: #665614;
    --secondary-900: #332b0a;
    
    /* Grises */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Rojos */
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    
    /* Verdes */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    
    /* Azules */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    /* Púrpuras */
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7e22ce;
    
    /* Ámbar/Naranja */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    
    /* Naranja */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    
    /* Fuentes */
    --font-family: 'Outfit', system-ui, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 0.9rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Bordes */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Container */
    --container-max-width: 90rem;
    --container-padding: 1rem;
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

@media (min-width: 640px) {
    :root {
        --container-padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */
html {
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--gray-900);
    overflow-x: clip;
    max-width: 100%;
}

/* ========================================
   BOTONES
   ======================================== */

/* Botón Primario - Con Fondo */
.btn-primary-solid {
    background-color: #296CFF;
    color: #ffffff;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary-solid:hover {
    background-color: #2156cc;
}

.btn-primary-solid:active {
    background-color: #194199;
}

/* Botón Primario - Con Fondo y Sombra */
.btn-primary-solid-shadow {
    background-color: #296CFF;
    color: #ffffff;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(41, 108, 255, 0.3);
}

.btn-primary-solid-shadow:hover {
    background-color: #2156cc;
    box-shadow: 0 6px 16px rgba(41, 108, 255, 0.4);
}

.btn-primary-solid-shadow:active {
    background-color: #194199;
    box-shadow: 0 2px 8px rgba(41, 108, 255, 0.25);
}

/* Botón Primario - Solo Contorno */
.btn-primary-outline {
    background-color: transparent;
    color: #296CFF;
    border: 2px solid #296CFF;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary-outline:hover {
    background-color: #e8f0ff;
    border-color: #2156cc;
}

.btn-primary-outline:active {
    background-color: #d4e4ff;
}

/* Botón Primario - Solo Contorno y Sombra */
.btn-primary-outline-shadow {
    background-color: transparent;
    color: #296CFF;
    border: 2px solid #296CFF;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(41, 108, 255, 0.2);
}

.btn-primary-outline-shadow:hover {
    background-color: #e8f0ff;
    border-color: #2156cc;
    box-shadow: 0 6px 16px rgba(41, 108, 255, 0.3);
}

.btn-primary-outline-shadow:active {
    background-color: #d4e4ff;
    box-shadow: 0 2px 8px rgba(41, 108, 255, 0.15);
}

/* Botón Secundario - Con Fondo */
.btn-secondary-solid {
    background-color: #FFD633;
    color: #1a1a1a;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-secondary-solid:hover {
    background-color: #ccab29;
}

.btn-secondary-solid:active {
    background-color: #99801f;
}

/* Botón Secundario - Con Fondo y Sombra */
.btn-secondary-solid-shadow {
    background-color: #FFD633;
    color: #1a1a1a;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 214, 51, 0.3);
}

.btn-secondary-solid-shadow:hover {
    background-color: #ccab29;
    box-shadow: 0 6px 16px rgba(255, 214, 51, 0.4);
}

.btn-secondary-solid-shadow:active {
    background-color: #99801f;
    box-shadow: 0 2px 8px rgba(255, 214, 51, 0.25);
}

/* Botón Secundario - Solo Contorno */
.btn-secondary-outline {
    background-color: transparent;
    color: #FFD633;
    border: 2px solid #FFD633;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary-outline:hover {
    background-color: #fffdf0;
    border-color: #ccab29;
}

.btn-secondary-outline:active {
    background-color: #fffae0;
}

/* Botón Secundario - Solo Contorno y Sombra */
.btn-secondary-outline-shadow {
    background-color: transparent;
    color: #FFD633;
    border: 2px solid #FFD633;
    padding: 0.625rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 214, 51, 0.2);
}

.btn-secondary-outline-shadow:hover {
    background-color: #fffdf0;
    border-color: #ccab29;
    box-shadow: 0 6px 16px rgba(255, 214, 51, 0.3);
}

.btn-secondary-outline-shadow:active {
    background-color: #fffae0;
    box-shadow: 0 2px 8px rgba(255, 214, 51, 0.15);
}

/* Utility Classes */
.transition-colors {
    transition-property: background-color, border-color, color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* ========================================
   RESET Y BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   PROMO CARD (Publicidad)
   ======================================== */
.promo-card {
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.promo-card-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.6rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.promo-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   BANNERS DOBLES
   ======================================== */

.banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.promo-card--wide {
    aspect-ratio: 16 / 7;
}

/* ========================================
   SECCIONES COMUNES
   ======================================== */
.section-locations {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-left: calc(4px + 0.75rem);
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background: var(--primary-500);
    border-radius: 2px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-500);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--primary-600);
}

.section-link i {
    transition: transform 0.2s ease;
}

.section-link:hover i {
    transform: translateX(4px);
}

/* Responsive - Section Header (Móvil) */
@media (max-width: 639px) {
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.8125rem;
    }
    
    .section-link {
        font-size: 0.8125rem;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Responsive - Secciones */
@media (min-width: 640px) {
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .section-locations {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .locations-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========================================
   PAGE HEADER (Universal para páginas internas)
   ======================================== */

.page-header {
    padding: 2rem 0 3rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.page-header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.page-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.page-header-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.page-header-breadcrumb a:hover {
    color: white;
}

.page-header-breadcrumb span {
    color: white;
    font-weight: 500;
}

.page-header-content {
    max-width: 700px;
}

.page-header-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.page-header-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.page-header-search {
    display: flex;
    gap: 0;
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.35rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 1.5rem;
}

.page-header-search-input,
.page-header-search-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    flex: 1;
}

.page-header-search-input {
    border-right: 1px solid var(--gray-200);
}

.page-header-search-input i,
.page-header-search-location i {
    color: var(--gray-400);
    font-size: 1.25rem;
}

.page-header-search-input input,
.page-header-search-location input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    color: var(--gray-700);
}

.page-header-search-input input::placeholder,
.page-header-search-location input::placeholder {
    color: var(--gray-400);
}

.page-header-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-500);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.page-header-search-btn:hover {
    background: var(--primary-600);
}

.page-header-stats {
    display: flex;
    gap: 2rem;
}

.page-header-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-header-stat i {
    font-size: 1.1rem;
}

.page-header-stat strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-header {
        min-height: auto;
        padding: 1.5rem 0 2rem;
    }
    
    .page-header-title {
        font-size: 2rem;
    }
    
    .page-header-subtitle {
        font-size: 1rem;
    }
    
    .page-header-search {
        flex-direction: column;
        gap: 0;
    }
    
    .page-header-search-input {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .page-header-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-header-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ========================================
   BOTTOM SHEET Y FILTROS (Bootstrap Sheet)
   ======================================== */

/* Botón cerrar universal */
.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: var(--gray-100);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-close:hover {
    background: var(--gray-200);
}

.btn-close i {
    font-size: 1.25rem;
    color: var(--gray-600);
}

/* FAB Button (Botón flotante filtros) */
.filters-fab {
    display: none;
    position: fixed;
    bottom: calc(70px + 1rem);
    right: 1rem;
    width: 56px;
    height: 56px;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.filters-fab:hover {
    background: var(--primary-600);
}

.filters-fab:active {
    transform: scale(0.95);
}

.filters-fab i {
    font-size: 1.5rem;
}

@media (max-width: 1023px) {
    .filters-fab {
        display: flex;
    }
}

/* Filters sheet común */
.filters-sheet {
    --bs-sheet-bg: white;
    --bs-sheet-max-height: 85vh;
    background-color: white !important;
}

.filters-sheet .sheet-header {
    border-bottom: 1px solid var(--gray-200);
}

.filters-sheet .sheet-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.filters-sheet .sheet-body {
    padding: 0 1rem 1rem;
}

.filters-sheet-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.filters-sheet-section:last-child {
    border-bottom: none;
}

.filters-sheet-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.filters-sheet-label i {
    font-size: 1.1rem;
    color: var(--primary-500);
}

/* Select en bottom sheet */
.filters-sheet-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--gray-700);
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.filters-sheet-select:focus {
    outline: none;
    border-color: var(--primary-500);
    background-color: white;
}

.filters-sheet-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filters-sheet-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filters-sheet-chip input {
    display: none;
}

.filters-sheet-chip i {
    font-size: 1rem;
}

.filters-sheet-chip:has(input:checked) {
    background: var(--primary-500);
    color: white;
}

.filters-sheet-chip:has(input:checked) i {
    color: white;
}

/* Footer botones */
.filters-sheet .sheet-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--gray-100);
}

.filters-sheet-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-sheet-btn--clear {
    background: var(--gray-100);
    color: var(--gray-600);
}

.filters-sheet-btn--clear:hover {
    background: var(--gray-200);
}

.filters-sheet-btn--apply {
    background: var(--primary-500);
    color: white;
}

.filters-sheet-btn--apply:hover {
    background: var(--primary-600);
}
