/* RESET Y VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    
    --primary-color: #FF5722; /* Naranja llamativo */
    --dark-bg: #1A1A1A;
    --text-light: #FFFFFF;
}

body {
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

/* LOGO FLOTANTE */
.logo-flotante {
    position: fixed;
    top: 10px;
    left: 100px;
    z-index: 9999;
    display: block;
    transition: transform 0.3s;
}

.logo-flotante img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.logo-flotante:hover {
    transform: scale(1.1);
}

/* SLIDER HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece la imagen para que el texto resalte */
}

.slide-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    padding: 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* BOTONES */
.btn-primary, .btn-whatsapp {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e64a19;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    margin-top: 15px;
    display: block;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* FLECHAS SLIDER */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5rem;
}
.prev { left: 10px; }
.next { right: 10px; }

/* SECCIÓN RESERVAS */
.reservas {
    padding: 80px 20px;
    text-align: center;
    background: white;
}

.reservas h2, .galeria h2, .registro h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.grid-reservas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.card-reserva {
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.card-reserva:hover {
    transform: translateY(-10px);
}

.card-reserva i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card-reserva h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-reserva p {
    color: #666;
    margin-bottom: 20px;
}

/* GALERÍA */
.galeria {
    padding: 80px 20px;
    text-align: center;
    background: #f9f9f9;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.grid-galeria img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.grid-galeria img:hover {
    transform: scale(1.05);
}

/* REGISTRO */
.registro {
    padding: 80px 20px;
    text-align: center;
    background: var(--dark-bg);
    color: white;
}

.registro h2 {
    color: white;
}

.formulario {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario input {
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.formulario button {
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.formulario button:hover {
    background: #e64a19;
}

/* Contenedor del mapa */
.zonas-mapa {
    padding: 60px 20px;
    background: #1A1A1A;
    color: white;
    text-align: center;
}

.sub-zonas {
    margin-bottom: 30px;
    color: #ccc;
}

.mapa-simulado-contenedor {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid #FF5722;
    background: #111;
}

/* El contenedor que permite el scroll en celular */
.mapa-deslizable {
    width: 100%;
    overflow-x: auto; /* Permite deslizar a los lados */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Suavidad en iOS */
}

/* El interior mantiene la proporción de la imagen */
.mapa-interior {
    position: relative;
    width: 100%;
    min-width: 800px; /* Forza un ancho mínimo para que no se aplaste en celular */
}

/* La imagen del mapa estático */
.mapa-estatico {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1); 
}

/* Capa transparente que contiene los pines */
.capa-pines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite deslizar el mapa con el dedo */
}

/* Estilo para los pines y su tooltip */
.pin-wrapper {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -100%);
    z-index: 10;
    pointer-events: auto; /* Reactiva los clics solo en los pines */
}

.pin-wrapper:hover {
    z-index: 20; 
}

/* Diseño de los Pines estilo Google */
.pin {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: -2px 2px 8px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
    position: relative;
}

/* Animación de pulso en el pin */
.pin::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    top: 0; left: 0;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.pin-wrapper:hover .pin {
    transform: rotate(-45deg) scale(1.3); 
}

/* Colores de los pines */
.google-orange { background: #FF5722; border: 2px solid #fff; }
.google-green  { background: #00C853; border: 2px solid #fff; }
.google-blue   { background: #2962FF; border: 2px solid #fff; }
.google-yellow { background: #FFC107; border: 2px solid #fff; }
.google-purple { background: #9C27B0; border: 2px solid #fff; }
.google-cyan   { background: #00BCD4; border: 2px solid #fff; }
.google-red    { background: #F44336; border: 2px solid #fff; }

/* Diseño del globito (Tooltip) */
.tooltip {
    position: absolute;
    bottom: 35px; 
    left: 50%;
    transform: translateX(-50%) scale(0); 
    background: white;
    color: black;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    width: max-content;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; 
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.pin-wrapper:hover .tooltip {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    bottom: 45px;
}

/* Leyenda de colores */
.leyenda-mapa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.item-leyenda {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
}

.punto {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}
.punto.centro { background-color: #FF5722; }
.punto.salcedo { background-color: #00C853; }
.punto.yanamayo { background-color: #2962FF; }
.punto.alto { background-color: #FFC107; }
.punto.totorani { background-color: #9C27B0; }
.punto.chulluni { background-color: #00BCD4; }
.punto.jayllihuaya { background-color: #F44336; }

/* Ajuste fino para celulares */
@media (max-width: 768px) {
    .mapa-simulado-contenedor {
        border-radius: 10px;
    }
    
    .mapa-interior {
        min-width: 700px; /* Obliga a la imagen a ser ancha para poder deslizarla */
    }

    .zonas-mapa h2 {
        font-size: 2rem !important;
    }
    
    /* Hace que el globito aparezca al tocar el pin en celular */
    .pin-wrapper:active .tooltip {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        bottom: 45px;
    }
}






/* FOOTER */
footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* RESPONSIVE (MÓVILES) */
@media (max-width: 768px) {
    .logo-flotante {
        /*left: 50%;*/
        /*transform: translateX(-50%);*/
        /*top: 120px;*/
        position: fixed;
        right: 26px;
        bottom: 20px; /* Cambia el 200px por 20px para que quede pegado abajo */
        left: auto; /* Esto es necesario para anular el left:100px de arriba */
        top: auto;  /* Esto es necesario para anular el top:10px de arriba */
        transform: none; /* Por si acaso quedó un transform suelto */
        width: 70px; /* Ajusta el ancho a tu gusto */
        z-index: 9999;
    }
    
    .logo-flotante:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .reservas h2, .galeria h2, .registro h2 {
        font-size: 2rem;
    }
}

/* ==========================================
   MENÚ DE NAVEGACIÓN SUPERPUESTO Y SLIDER 100VH
   ========================================== */

/* 1. El menú fijo, transparente y por encima de todo */
.nav {
    position: fixed !important; /* Cambiamos a fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    background: rgba(11, 42, 82, 0.5); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    padding-right: 28px;
    box-sizing: border-box;
}

/* 2. Enlaces del menú */
.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    margin-left: 26px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

/*.nav a:hover {*/
/*    color: #FF5722;*/
/*}*/

/* Enlaces de texto: Amarillo al pasar el ratón Amarillo para Inicio, Clientes y Galería */
.nav a:not(.btn-wa):hover {
    color: #ffb700 !important; 
}

/* Botón de reservas: Fondo naranja por defecto */
.nav a.btn-wa {
    background: #ff6a00;
    padding: 10px 18px;
    border-radius: 30px;
}

/* Botón de reservas: Mantener texto blanco y oscurecer fondo al hacer clic */
.nav a.btn-wa:hover, 
.nav a.btn-wa:focus, 
.nav a.btn-wa:active {
    color: #ffffff !important;
    background: #e65c00 !important; /* Un tono de naranja un poco más oscuro para dar feedback visual */
}

/* Enlaces de texto: Amarillo al hacer clic (móvil) */
.nav a:not(.btn-wa):active {
    color: #ffb700 !important; /* Amarillo en lugar de rojo para que se vea mejor */
}





/* 3. El slider ocupa el 100% de la pantalla, SIN márgenes */
.hero {
    height: 100vh !important;
    margin-top: 0 !important;
    position: relative;
}

/* 4. Ajustes para celulares (Menú más delgado y siempre visible) */
@media (max-width: 768px) {
    .nav {
        justify-content: center; /* Centrado en móvil */
        height: 60px !important; /* Más delgado (antes 88px) */
        padding-top: 0 !important;
        padding-right: 0;
    }
    
    .nav a {
        margin: 0 8px;
        font-size: 0.8rem; /* Letras un poco más pequeñas para que quepan */
    }

    /* Ajustamos el contenido del slider para que no quede tapado por el menú */
    .slide-content {
        margin-top: 60px; 
    }
}