/* ==========================================================================
   CONFIGURACIÓN GENERAL Y DEGRADADO DE FONDO (Estilo Mockup Objetivo)
   ========================================================================== */

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748; /* Gris oscuro para tipografía */
    overflow-x: hidden;
    position: relative;
}

/* Fondo general ligeramente grisáceo con toques de Blanco azulado para dar dinamismo y color */
.bg-light-gray {
    background: linear-gradient(135deg, #e3f2f4 0%, #f4f6f9 50%, #e3f2f4 100%) !important;
    min-height: 100vh;
    background-attachment: fixed;
}

.text-dark-blue {
    color: #2d3748 !important; /* Gris oscuro */
}

/* Acapulco gradient from Azul medio (#3b82f6) to Turquesa (#14b8a6) */
.text-primary-accent {
    background: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

/* ==========================================================================
   ONDAS LATERALES DECORATIVAS CON COLORES DE LA PALETA
   ========================================================================== */

.decor-wave {
    position: absolute;
    top: 0;
    width: 400px;
    height: 600px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.95;
}

/* Izquierda: Blanco azulado (#e3f2f4) y Azul medio (#3b82f6) */
.wave-left-decor {
    left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600'%3E%3Cpath d='M0,0 C120,60 200,120 220,240 C240,360 140,420 180,540 C190,570 210,600 210,600 L0,600 Z' fill='rgba(227, 242, 244, 0.85)'/%3E%3Cpath d='M0,0 C90,40 160,90 180,180 C200,270 110,320 140,420 C150,450 170,480 170,480 L0,480 Z' fill='rgba(59, 130, 246, 0.25)'/%3E%3C/svg%3E") no-repeat left top;
    background-size: cover;
}

/* Derecha: Turquesa (#14b8a6) y Verde (#22c55e) */
.wave-right-decor {
    right: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600'%3E%3Cpath d='M400,0 C280,60 200,120 180,240 C160,360 260,420 220,540 C210,570 190,600 190,600 L400,600 Z' fill='rgba(20, 184, 166, 0.16)'/%3E%3Cpath d='M400,0 C310,40 240,90 220,180 C200,270 290,320 260,420 C250,450 230,480 230,480 L400,480 Z' fill='rgba(34, 197, 94, 0.12)'/%3E%3C/svg%3E") no-repeat right top;
    background-size: cover;
}

/* ==========================================================================
   NAVBAR CON PALETA COLORIDA (Gris Oscuro #2d3748 + Azul Medio #3b82f6)
   ========================================================================== */

.custom-navbar {
    background-color: #0B192C !important; /* Mismo color azul oscuro del footer */
    border-bottom: 3px solid #3b82f6; /* Azul medio de borde */
    box-shadow: 0 4px 30px rgba(11, 25, 44, 0.15);
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.25s ease;
}

.custom-navbar .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.custom-navbar .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
    position: relative;
}

.custom-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 8px;
    right: 8px;
    height: 3px;
    background-color: #3b82f6; /* Azul medio */
    border-radius: 2px;
}

.custom-btn-nav-register {
    background-color: #3b82f6 !important; /* Azul medio */
    border-color: #3b82f6 !important;
}

.custom-btn-nav-register:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

/* ==========================================================================
   TARJETAS Y ELEMENTOS DE INTERFAZ
   ========================================================================== */

.card {
    border: none;
    border-radius: 24px;
    background: #ffffff;
}

.shadow-sm {
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04), 0 2px 10px rgba(15, 23, 42, 0.02) !important;
}

.bg-light-card {
    background: linear-gradient(90deg, rgba(254, 242, 242, 0.75) 0%, rgba(254, 249, 195, 0.75) 50%, rgba(240, 253, 244, 0.75) 100%) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.15) !important;
}

/* ==========================================================================
   DISEÑO DE ESTADÍSTICAS INTEGRADAS
   ========================================================================== */

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-danger-subtle { background-color: #fef2f2; }
.bg-warning-subtle { background-color: #fef9c3; }
.bg-success-subtle { background-color: #f0fdf4; }

.border-end-custom {
    border-end: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .border-end-custom {
        border-right: 1px solid #e2e8f0;
    }
}

.font-xs {
    font-size: 0.78rem;
}

/* ==========================================================================
   MAPA Y LEYENDA
   ========================================================================== */

#map {
    width: 100%;
    height: 520px;
    border-radius: 20px;
    z-index: 1;
}

.map-legend {
    z-index: 10;
    border-color: #e2e8f0 !important;
}

/* ==========================================================================
   BOTONES Y INTERACCIONES
   ========================================================================== */

.btn {
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ==========================================================================
   COMPONENTES ADICIONALES
   ========================================================================== */

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08) !important;
}

.gallery-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.review-item {
    transition: all 0.25s ease;
}

.review-item:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   FOOTER OBSCURO PROFESIONAL
   ========================================================================== */

footer {
    background-color: #0B192C;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #5c42ec !important;
}

/* ==========================================================================
   RESPONSIVIDAD ADAPTATIVA
   ========================================================================== */

@media (max-width: 992px) {
    .display-3 { font-size: 2.6rem; }
    #map { height: 420px; }
}

@media (max-width: 768px) {
    .display-3 { font-size: 2.2rem; }
    #map { height: 350px; }
    .map-legend {
        position: static !important;
        margin-bottom: 15px;
        display: flex !important;
        justify-content: center;
    }
    .border-end-custom {
        border-right: none !important;
    }
    .stat-item-mobile {
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        padding-bottom: 12px;
        margin-bottom: 4px;
    }
    .stat-item-mobile:last-child {
        border-bottom: none !important;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .display-3 { font-size: 1.8rem; }
    #map { height: 290px; }
    .hero-buttons-wrap {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 10px;
    }
    .hero-btn-main,
    .hero-btn-sub {
        width: 100% !important;
        white-space: nowrap !important;
        border-radius: 50px !important;
        padding: 14px 20px !important;
    }
}

/* ==========================================================================
   ESTILOS DE BOTONES HERO Y PALETA DE COLOR PROFESIONAL
   ========================================================================== */

.py-2-5 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Botón Principal: Turquesa (#14b8a6) para contraste magnético */
.btn-primary {
    background-color: #14b8a6 !important;
    border-color: #14b8a6 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #0f9f8f !important;
    border-color: #0f9f8f !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3) !important;
}

/* Botón Secundario: Azul medio (#3b82f6) */
.btn-outline-primary {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.btn-outline-primary:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2) !important;
}

.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(227, 242, 244, 0.7) 100%) !important;
    border-radius: 32px;
    padding: 4.5rem 2rem !important;
    box-shadow: 0 20px 40px rgba(45, 55, 72, 0.04), inset 0 0 30px rgba(227, 242, 244, 0.6) !important;
    border: 1px solid rgba(59, 130, 246, 0.12);
    margin-top: 1rem;
    margin-bottom: 3.5rem !important;
}

.hero-section h1 {
    color: #2d3748 !important; /* Gris oscuro */
    letter-spacing: -0.025em;
    font-weight: 800;
}

.hero-desc {
    color: #718096 !important; /* Azul medio grisáceo */
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustes de iconos en los badges de pasos */
.bg-primary.bg-opacity-10 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.text-primary {
    color: #3b82f6 !important; /* Azul medio */
}

/* ==========================================================================
   CLASES DE UTILIDAD PARA PALETA DE COLORES PERSONALIZADA
   ========================================================================== */

.bg-palette-blue { background-color: #3b82f6 !important; color: white !important; }
.bg-palette-mustard { background-color: #f59e0b !important; color: white !important; }
.bg-palette-teal { background-color: #14b8a6 !important; color: white !important; }
.bg-palette-green { background-color: #22c55e !important; color: white !important; }

.text-palette-blue { color: #3b82f6 !important; }
.text-palette-mustard { color: #f59e0b !important; }
.text-palette-teal { color: #14b8a6 !important; }
.text-palette-green { color: #22c55e !important; }
.text-palette-red { color: #ef4444 !important; }
.text-palette-dark { color: #2d3748 !important; }
.text-palette-gray { color: #718096 !important; }