/* =========================================
   STYLE.CSS - PÁGINA PRINCIPAL (MODERNIZADO)
========================================= */

:root {
  --taxi-yellow: #FFC107;
  --taxi-dark: #212121;
  --bg-light: #F9FAFB;
  --text-main: #333333;
  --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- NAV (Igual a la de Servicios) ---------- */
nav {
    background: #333;
    padding: 12px;
    text-align: center;
}

nav ul {
    list-style: none;
    background: var(--taxi-yellow);
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;
}

nav li {
    display: inline-block;
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 10px 18px;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    background: var(--taxi-dark);
    color: var(--taxi-yellow);
}

/* ---------- HEADER ---------- */
header {
    background-color: var(--taxi-yellow);
    color: var(--taxi-dark);
    text-align: center;
    padding: 1.0rem 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

header h2.message {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
}

/* ---------- CONTENIDO PRINCIPAL ---------- */
main {
    width: 95%;
    max-width: 900px;
    margin: 2rem auto;
    text-align: center;
    flex: 1;
}

h3 {
    margin: 2.5rem 0 1.5rem;
    font-size: 1.5rem;
    color: var(--texto);
    text-transform: uppercase;
}

/* ---------- IMÁGENES Y MAPA ---------- */
.lugarPrincipal {
    width: 100%;
    max-width: 650px;
    height: 350px;
    object-fit: cover;
    display: block;
    margin: 0 auto 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

iframe.losPueblos {
    width: 100%;
    max-width: 700px;
    height: 350px;
    margin: 2rem auto;
    display: block;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---------- DATOS (Contenedor Blanco) ---------- */
.container {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    background: var(--fondo);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.container p {
    font-size: 1.1rem;
    margin: 10px 0;
    font-weight: bold;
    color: var(--texto);
}

/* ---------- GALERÍA ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 2rem auto;
}

.image,
.image4 {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.image:hover,
.image4:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* ---------- HISTORIA ---------- */
article {
    width: 100%;
    margin: 3rem auto;
    background: var(--fondo);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    text-align: justify;
    line-height: 1.8;
    transition: background-color 0.3s ease;
}

article h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--texto);
}

article p {
    margin-bottom: 1rem;
    color: var(--texto);
}

/* ---------- FOOTER ---------- */
footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    background: var(--taxi-dark);
    color: white;
    text-align: left;
    padding: 2rem;
    margin-top: auto;
    gap: 80px;
}
.info {
    display: flex;
    flex-direction: column;
}

footer p {
    margin: 8px;
    font-size: 0.95rem;
}
footer a:hover {
    opacity: 0.8;
}
h4{
    font-size: 1.1rem;
    margin-top: 5px;
}
/* ---------- MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar:hover {
    color: var(--taxi-yellow);
}

/* ---------- MÓVIL ---------- */
@media (max-width: 768px) {

    /* Encabezado */
    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 2rem;
        text-align: center;
    }

    header h2 {
        font-size: 1rem;
        text-align: center;
    }

    h3 {
        font-size: 1.3rem;
        text-align: center;
        padding: 0 10px;
    }

    /* Imagen principal y mapa */
    .lugarPrincipal,
    .losPueblos {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    iframe.losPueblos {
        width: 100%;
    }

    /* Información */
    .container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 0 15px;
    }

    .ubicacion,
    .telefono {
        font-size: 0.95rem;
    }

    /* Galería */
    .gallery {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image,
    .image4,
    .image5 {
        width: 100%;
        height: auto;
    }

    /* Artículo */
    article {
        padding: 1.2rem;
    }

    article h2 {
        font-size: 1.3rem;
    }

    article p,
    article li {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: justify;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 30px;
        padding: 1.5rem;
        text-align: center;
    }

    .info {
        max-width: 100%;
    }

    footer h4 {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    /* Evita que enlaces largos rompan el diseño */
    a {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}