
/* Todas las imágenes dentro del contenido principal */
main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* centra la imagen */
}

/* --- Estilos generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    color: #333;
    background: url("Cerros.jpg") no-repeat center center fixed;
    background-size: cover; /* ocupa toda la pantalla */
}

header {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.header-content img {
    max-height: 100px;
    height: auto;
}

header img {
    position: relative;
    z-index: 1;
    max-height: 50%;
}

header h1 { 
    flex-grow:1; 
    text-align:center; 
    margin:0; 
    font-size:1.8rem; 
    user-select:none; 
}

/* --- Menú --- */
nav { 
    background:#006a92; 
    display:flex; 
    justify-content:center; 
    gap:15px; 
    flex-wrap:wrap; 
    padding:10px 0; 
}

nav a { 
    color:white; 
    text-decoration:none; 
    padding:10px 15px; 
    border-radius:5px; 
    transition:background 0.3s; 
}

nav a:hover { 
    background: rgba(255,255,255,0.2); 
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: #006a92;
    padding: 10px 15px;
    text-align: center;
}

/* --- Contenido principal --- */
main { 
    padding:20px; 
    max-width:1000px; 
    margin:auto; 
}

img.responsive { 
    width:100%; 
    height:auto; 
    border-radius:8px; 
    margin-top:10px; 
}

iframe { 
    width:100%; 
    max-width:560px; 
    height:315px; 
    display:block; 
    margin:auto; 
}

/* --- Secciones generales --- */
section { 
    margin-bottom:40px; 
    padding:20px; 
    border-radius:8px; 
    box-shadow:0 0 10px rgba(0,0,0,0.1); 
}

/* --- Secciones con fondo de color --- */
section.hoteles-section,
section.lugares-section,
section.restaurantes-section,
section.card {
    background-color: #1a1054;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

/* Títulos de secciones */
section.hoteles-section h2,
section.lugares-section h2,
section.restaurantes-section h2,
section.card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

section.card p,
section.card ul,
section.card li {
    color: white;
}

/* --- Hoteles --- */
.hotel-item {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    text-align: center;
}

.hotel-item img {
    width: 90%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hotel-item img:hover {
    transform: scale(1.05);
}

.hotel-datos {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.hotel-datos a {
    color: #ffcc00;
    text-decoration: none;
}

.hotel-datos a:hover {
    text-decoration: underline;
}

/* --- Lugares --- */
.lugar-item {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    text-align: center;
}

.lugar-item img {
    width: 90%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lugar-item img:hover {
    transform: scale(1.05);
}

.lugar-datos {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.lugar-datos a {
    color: #ffcc00;
    text-decoration: none;
}

.lugar-datos a:hover {
    text-decoration: underline;
}

/* --- Restaurantes --- */
.restaurante-item {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    text-align: center;
}

.restaurante-item img {
    width: 90%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.restaurante-item img:hover {
    transform: scale(1.05);
}

.restaurante-datos {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.restaurante-datos a {
    color: #ffcc00;
    text-decoration: none;
}

.restaurante-datos a:hover {
    text-decoration: underline;
}

/* --- Galería --- */
.galeria { 
    display:grid; 
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); 
    gap:20px; 
    padding-top:15px; 
}

.galeria figure { 
    background:#fff; 
    border-radius:10px; 
    overflow:hidden; 
    box-shadow:0 4px 8px rgba(0,0,0,0.1); 
    margin:0; 
    cursor:pointer; 
    transition:transform 0.2s ease; 
}

.galeria figure:hover { 
    transform:scale(1.03); 
}

.galeria img { 
    width:100%; 
    height:200px; 
    object-fit:cover; 
    display:block; 
}

.galeria figcaption { 
    text-align:center; 
    font-size:1rem; 
    padding:10px; 
    background:#f8f8f8; 
    color:#333; 
}

/* --- Lightbox --- */
#lightboxOverlay { 
    position:fixed; 
    top:0; left:0; right:0; bottom:0; 
    background:rgba(0,0,0,0.85); 
    display:none; 
    justify-content:center; 
    align-items:center; 
    z-index:1000; 
    flex-direction:column; 
}

#lightboxOverlay img { 
    max-width:90%; 
    max-height:80vh; 
    border-radius:10px; 
    box-shadow:0 0 20px rgba(255,255,255,0.5); 
    user-select:none; 
}

.lightbox-title { 
    margin-top:10px; 
    color:white; 
    font-size:1.2rem; 
    text-align:center; 
    max-width:90%; 
    user-select:none; 
}

.lightbox-controls { 
    width:100%; 
    max-width:900px; 
    display:flex; 
    justify-content:space-between; 
    margin-top:10px; 
    color:white; 
    font-size:2rem; 
    user-select:none; 
}

.lightbox-controls span { 
    cursor:pointer; 
    padding:5px 15px; 
    background:rgba(0,0,0,0.3); 
    border-radius:5px; 
    transition:background 0.3s; 
}

.lightbox-controls span:hover { 
    background: rgba(255,255,255,0.3); 
}

/* --- Menú hamburguesa responsive --- */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    nav a {
        display: block;
        border-top: 1px solid rgba(255,255,255,0.3);
    }
    .menu-toggle {
        display: block;
    }
    nav.show {
        display: flex;
    }
}
/* Para móviles */
@media (max-width: 768px) {
    header {
        height: 150px; /* header más bajo en móvil */
    }

    header img {
        max-height: 40px; /* limita tamaño de logo / imagen del header */
        width: auto;
    }

    header h1 {
        font-size: 1.2rem; /* reduce tamaño del título */
    }
}
/* Contenedor general de los lugares */
.lugares-list {
    display: flex;
    flex-direction: column;
    gap: 25px; /* espacio entre items */
    margin-top: 20px;
}

/* Cada lugar: imagen izquierda + texto derecha */
.lugar-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 10px;
}

/* Imagen a la izquierda */
.lugar-item img {
    width: 220px;
    height: 160px;
    object-fit: cover; /* mantiene proporción */
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0; /* evita que se reduzca */
}

/* Datos del lugar */
.lugar-datos {
    flex: 1; /* ocupa el resto del ancho */
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* Nombre del lugar */
.lugar-datos strong {
    font-size: 18px;
    color: #002c5f;
}

/* Enlaces */
.lugar-datos a {
    color: #0055aa;
    text-decoration: none;
}
.lugar-datos a:hover {
    text-decoration: underline;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .lugar-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lugar-item img {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        height: auto;
    }
}
