/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde: #2e48a0;
    --verde-oscuro: #0d45dd;
    --arena: #f4f1eb;
    --blanco: #ffffff;
    --texto: #010807;
    --gris: #071411;
}

body {
    font-family: Arial, sans-serif;
    color: var(--texto);
    background: var(--arena);
    line-height: 1.5;
}


/* =========================
   PORTADA PRINCIPAL
========================= */

.hero {
    min-height: 100vh;

    background-image:
        linear-gradient(
            rgba(20, 40, 37, 0.35),
            rgba(20, 40, 37, 0.35)
        ),
        url("../images/portada.jpg");

    background-size: cover;

    background-position: center;

    display: flex;

    flex-direction: column;

    color: white;
}


/* =========================
   MENU
========================= */

.menu {
    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 5%;

    gap: 25px;

    color: white;

    position: relative;

    z-index: 2;
}

.menu-interior {
    background: var(--verde-oscuro);
}

.logo a {
    color: white;

    text-decoration: none;

    font-family: Georgia, serif;

    font-size: 23px;

    font-weight: 600;
}

.enlaces {
    display: flex;

    align-items: center;

    gap: 25px;
}

.enlaces a {
    color: rgb(240, 232, 232);

    text-decoration: none;

    font-size: 14px;
}

.enlaces a:hover {
    opacity: 0.75;
}

.enlaces a.activo {
    border-bottom: 2px solid white;

    padding-bottom: 4px;
}


/* =========================
   IDIOMAS
========================= */

.idiomas {
    display: flex;

    gap: 4px;
}

.idioma {
    background: transparent;

    border: 1px solid rgba(255,255,255,0.7);

    color: white;

    padding: 4px 7px;

    font-size: 10px;

    cursor: pointer;

    border-radius: 3px;
}

.idioma.activo {
    background: white;

    color: var(--verde-oscuro);
}


/* =========================
   CONTENIDO DE LA PORTADA
========================= */

.hero-contenido {
    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 40px 20px 80px;
}

.hero-contenido h1 {
    font-family: Georgia, serif;

    font-size: clamp(40px, 6vw, 76px);

    font-weight: 500;

    margin-bottom: 15px;

    text-shadow: 0 3px 15px rgba(0,0,0,0.35);
}

.hero-contenido p {
    font-size: clamp(18px, 2vw, 25px);

    margin-bottom: 30px;

    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


/* =========================
   CABECERAS INTERIORES
========================= */

.cabecera-pagina {
    padding: 48px 20px 42px;

    text-align: center;

    background: var(--verde);

    color: white;
}

.cabecera-pagina h1 {
    font-family: Georgia, serif;

    font-size: clamp(32px, 4vw, 50px);

    margin-bottom: 8px;
}

.cabecera-pagina p {
    font-size: 17px;

    opacity: 0.9;
}


/* =========================
   SECCIONES
========================= */

.seccion {
    padding: 55px 6%;

    text-align: center;
}

.seccion h2 {
    font-family: Georgia, serif;

    font-size: 34px;

    color: var(--verde-oscuro);

    margin-bottom: 15px;
}

.descripcion {
    max-width: 750px;

    margin: 0 auto 18px;

    color: var(--gris);
}


/* =========================
   CARACTERÍSTICAS
========================= */

.caracteristicas {
    max-width: 1100px;

    margin: 35px auto 0;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.caracteristica {
    padding: 25px 18px;

    background: white;

    border-radius: 8px;

    box-shadow: 0 5px 18px rgba(40,55,50,0.08);
}

.caracteristica span {
    display: block;

    font-size: 32px;

    margin-bottom: 10px;
}

.caracteristica h3 {
    color: var(--verde-oscuro);

    font-family: Georgia, serif;

    font-size: 18px;

    margin-bottom: 8px;
}

.caracteristica p {
    color: var(--gris);

    font-size: 14px;
}


/* =========================
   GALERÍA
========================= */

.galeria-imagenes {
    width: 100%;

    max-width: 1200px;

    margin: 35px auto 0;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.foto-galeria {
    width: 100%;

    overflow: hidden;

    background: white;

    border-radius: 8px;

    box-shadow: 0 5px 18px rgba(40,55,50,0.12);
}

.foto-galeria img {
    display: block;

    width: 100%;

    max-width: 100%;

    height: 320px;

    object-fit: cover;
}

.foto-galeria h3 {
    padding: 15px;

    color: var(--verde-oscuro);

    font-family: Georgia, serif;

    font-size: 20px;
}


/* =========================
   CAMINOS
========================= */

.caminos {
    background: white;

    padding-top: 45px;

    padding-bottom: 45px;
}

.caminos-grid {
    width: 100%;

    max-width: 1200px;

    margin: 28px auto 0;

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.camino-card {
    width: 100%;

    background: var(--arena);

    padding: 13px 16px;

    border-radius: 8px;

    box-shadow: 0 5px 18px rgba(40,55,50,0.08);
}

.camino-card h3 {
    font-family: Georgia, serif;

    font-size: 18px;

    color: var(--verde-oscuro);

    margin-bottom: 10px;

    text-align: left;
}


/* =========================
   RUTAS HORIZONTALES
========================= */

.ruta-vertical {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 3px;
}

.ruta-vertical .etapa {
    flex: 1;

    min-width: 0;

    min-height: 34px;

    padding: 5px 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 3px;

    background: white;

    border-radius: 5px;

    text-align: center;

    box-shadow: 0 2px 7px rgba(40,55,50,0.06);
}

.ruta-vertical .etapa span {
    font-size: 12px;
}

.ruta-vertical .etapa strong {
    font-size: 9px;

    color: var(--verde-oscuro);

    white-space: normal;

    line-height: 1.1;
}

.ruta-vertical .etapa small {
    display: block;

    font-size: 7px;

    line-height: 1.1;

    color: var(--gris);
}

.linea-vertical {
    flex: 0 0 10px;

    width: 10px;

    height: 2px;

    background: var(--verde);
}

.ruta-vertical .etapa-destacada {
    flex: 1.5;

    background: var(--verde);

    color: white;

    box-shadow: 0 5px 13px rgba(35,69,64,0.25);
}

.ruta-vertical .etapa-destacada strong {
    color: white;
}

.ruta-vertical .etapa-destacada small {
    color: rgba(255,255,255,0.85);
}

.ruta-vertical .etapa-final {
    background: var(--verde-oscuro);

    color: white;
}

.ruta-vertical .etapa-final strong {
    color: white;
}


/* =========================
   UBICACIÓN
========================= */

.ubicacion {
    background: var(--arena);

    padding-top: 45px;

    padding-bottom: 45px;
}

.direccion {
    display: flex;

    flex-direction: column;

    gap: 3px;

    margin: 15px auto 20px;

    color: var(--verde);
}

.direccion strong {
    font-size: 17px;
}

.direccion span {
    color: var(--gris);

    font-size: 14px;
}


/* =========================
   MAPA
========================= */

.mapa-contenedor {
    max-width: 750px;

    margin: 20px auto;
}

.mapa {
    width: 100%;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 8px 22px rgba(40,55,50,0.15);
}

.mapa iframe {
    display: block;

    width: 100%;

    height: 280px;
}


/* =========================
   BOTONES
========================= */

.boton {
    display: inline-block;

    padding: 12px 24px;

    background: var(--verde);

    color: white;

    text-decoration: none;

    border-radius: 4px;

    font-size: 14px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.boton:hover {
    background: var(--verde-oscuro);

    transform: translateY(-2px);
}

.boton-oscuro {
    background: var(--verde-oscuro);
}


/* =========================
   RESERVA
========================= */

.reserva {
    background: var(--arena);
}

.contacto-reserva {
    max-width: 850px;

    margin: 30px auto 45px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.contacto-card {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 135px;

    padding: 20px;

    background: white;

    color: var(--texto);

    text-decoration: none;

    border-radius: 8px;

    box-shadow: 0 5px 18px rgba(40,55,50,0.08);

    transition: all 0.3s ease;
}

.contacto-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(40,55,50,0.15);
}

.contacto-icono {
    font-size: 28px;
}

.contacto-card strong {
    color: var(--verde-oscuro);

    font-size: 16px;
}

.contacto-card span:last-child {
    color: var(--gris);

    font-size: 13px;
}


/* =========================
   FORMULARIO
========================= */

.formulario-reserva {
    max-width: 700px;

    margin: 0 auto;

    padding: 30px;

    background: white;

    border-radius: 8px;

    box-shadow: 0 5px 18px rgba(40,55,50,0.08);

    text-align: left;
}

.formulario-reserva h3 {
    margin-bottom: 22px;

    text-align: center;

    font-family: Georgia, serif;

    font-size: 25px;

    color: var(--verde-oscuro);
}

.campo {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-bottom: 17px;
}

.campo label {
    font-size: 13px;

    font-weight: 600;

    color: var(--verde-oscuro);
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d5d9d7;

    border-radius: 4px;

    font-family: Arial, sans-serif;

    font-size: 14px;

    background: #fafafa;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;

    border-color: var(--verde);
}

.campo textarea {
    resize: vertical;
}

.fechas {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.boton-reserva {
    width: 100%;

    border: none;

    cursor: pointer;

    margin-top: 8px;
}


/* =========================
   PEREGRINOS
========================= */

.peregrinos {
    padding: 45px 6%;

    background: var(--verde);

    color: white;

    text-align: center;
}

.peregrinos h2 {
    color: white;
}

.peregrinos p {
    max-width: 650px;

    margin: 0 auto 18px;

    line-height: 1.6;

    opacity: 0.9;
}


/* =========================
   INFORMACIÓN EXTRA
========================= */

.informacion-extra p {
    max-width: 750px;

    margin: 0 auto 25px;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 35px 20px;

    background: var(--verde-oscuro);

    color: white;
}

footer h2 {
    font-family: Georgia, serif;

    font-size: 24px;

    margin-bottom: 8px;
}

footer p {
    margin-top: 4px;

    font-size: 14px;

    opacity: 0.85;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .ruta-vertical .etapa strong {
        font-size: 8px;
    }

    .ruta-vertical .etapa span {
        font-size: 10px;
    }

    .linea-vertical {
        flex-basis: 6px;

        width: 6px;
    }

    .caracteristicas {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 700px) {

    .menu {
        flex-direction: column;
    }

    .enlaces {
        flex-wrap: wrap;

        justify-content: center;

        gap: 14px;
    }

    .seccion {
        padding: 45px 5%;
    }

    .seccion h2 {
        font-size: 29px;
    }

    .cabecera-pagina {
        padding: 42px 20px;
    }

    .ruta-vertical {
        gap: 2px;
    }

    .ruta-vertical .etapa {
        padding: 4px 2px;
    }

    .ruta-vertical .etapa strong {
        font-size: 7px;
    }

    .ruta-vertical .etapa span {
        display: none;
    }

    .linea-vertical {
        flex-basis: 3px;

        width: 3px;
    }

    .caracteristicas {
        grid-template-columns: 1fr;
    }

    .galeria-imagenes {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .foto-galeria img {
        width: 100%;

        max-width: 100%;

        height: auto;

        aspect-ratio: 4 / 3;

        object-fit: cover;
    }

    .contacto-reserva {
        grid-template-columns: 1fr;

        max-width: 350px;
    }

    .formulario-reserva {
        padding: 22px 18px;
    }

    .fechas {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .mapa iframe {
        height: 250px;
    }

}


/* =========================
   SEGURIDAD GENERAL DE IMÁGENES
========================= */

img {
    max-width: 100%;

    height: auto;
}