﻿/* * shared-ui.css
 * Componentes visuales reutilizables y correcciones de librerías externas 
 * Normalizado para Pivalan (Dark Mode Default)
 */

/* ===== BOTÓN PRIMARIO CUSTOM ===== */
/* Este botón se usa para acciones CTA (Call to Action) grandes */
.btn-primary-custom {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--palette-carbon); /* Antes text-dark */
    color: var(--palette-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .btn-primary-custom:hover {
        background-color: var(--palette-primary); /* Antes accent-gold */
        color: var(--palette-white);
        transform: translateY(-2px);
    }

/* ===== PÁGINA 404 (NOT FOUND) ===== */
.not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 2rem;
}

.not-found-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--palette-primary);
    line-height: 1;
}

.not-found-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--app-text); /* Adaptado a Dark Mode */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.not-found-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--palette-gray-light); /* Texto secundario */
    max-width: 400px;
    margin-bottom: 2.5rem;
}

/* ===== TARJETA DE MAPA ===== */
.map-card-wrapper {
    max-width: 1100px;
    margin: 3rem auto 0 auto;
    background-color: var(--card-bg); /* Fondo oscuro unificado */
    border-radius: 12px;
    border: 1px solid var(--section-border);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); /* Sombra ajustada para fondo oscuro */
    padding: 1rem;
}

    .map-card-wrapper iframe {
        width: 100%;
        height: 450px;
        border: 0;
        border-radius: 8px;
        filter: grayscale(20%) contrast(1.1); /* Toque sutil para integrar mejor los mapas */
    }

/* ===== GOOGLE MAPS FIX (Autocomplete) ===== */
/* Normalizado para usar las variables de la paleta carbón */
.pac-container {
    background-color: var(--palette-carbon-deep) !important;
    border: 1px solid var(--palette-gray-mid) !important;
    border-radius: 0 0 8px 8px !important;
    font-family: 'Montserrat', sans-serif !important;
    z-index: 9999 !important;
    margin-top: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}

.pac-item {
    border-top: 1px solid var(--palette-dark) !important;
    padding: 12px 16px !important;
    color: var(--palette-gray-light) !important;
    cursor: pointer;
    font-size: 0.9rem !important;
}

    /* Hover State */
    .pac-item-selected, .pac-item:hover {
        background-color: var(--palette-primary) !important;
    }

        /* Text colors on Hover */
        .pac-item-selected, .pac-item-selected .pac-item-query, .pac-item-selected .pac-matched,
        .pac-item:hover, .pac-item:hover .pac-item-query, .pac-item:hover .pac-matched {
            color: var(--palette-black) !important; /* Contraste negro sobre dorado */
        }

.pac-item-query {
    color: var(--palette-white) !important;
}

.pac-icon {
    filter: invert(1) brightness(0.7);
}
