/* --- CSS Variables for easy theme management --- */
:root {
    --primary-color: #667eea;
    --primary-color-dark: #764ba2;
    --secondary-color: #2c3e50;
    --secondary-color-light: #34495e;
    --accent-color: #ff6b6b;
    --accent-color-dark: #ee5a24;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #fff;
    --light-gray: #e9ecef;
    --header-height: 70px; /* Reducido para un header más compacto */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: var(--header-height); /* Offset for fixed header */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height); /* Altura fija para el nav */
    padding: 0.5rem 0; /* Padding vertical reducido */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.logo img {
    height: 50px; /* Altura ajustada para el nuevo header. El ancho es automático. */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Helvetica Neue', sans-serif; /* Tipografía más moderna y consistente */
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase; /* Estilo refinado */
    letter-spacing: 0.5px;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color-dark);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the nav panel */
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../images/hero-background.svg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-logo {
    max-width: 250px; /* Tamaño generoso para destacar */
    margin-bottom: 1.5rem; /* Espacio entre el logo y el título */
}

.hero-content h1 {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--light-bg);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: linear-gradient(135deg, var(--light-bg), var(--light-gray));
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Tour Route Section */
.tour-route {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-bg), var(--light-gray));
}

.route-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.route-map .map-placeholder {
    aspect-ratio: 4 / 3;      /* Cambia de 3/2 a 4/3 */
    width: 100%;
    max-width: 600px;         /* O el valor que prefieras */
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.map-placeholder:hover img {
    transform: scale(1.05);
}

.route-map .map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* Muestra la imagen completa, sin recortar */
    border-radius: 12px;
    display: block;
    background: #f5f5f5;      /* Opcional: color de fondo para barras */
}

.route-map .map-placeholder:not(:last-child) {
    margin-bottom: 24px;
}

.route-stops {
    list-style: none;
}

.route-stops li {
    background: var(--white);
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.route-stops li strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

/* Guide Section */
.guide-section {
    padding: 100px 0;
    background: var(--white);
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.guide-image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.guide-info h3 {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.guide-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary-color-light);
}

/* Partnership Section */
.partnership {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-light));
    color: var(--white);
    text-align: center;
}

.partnership-content {
    max-width: 800px;
    margin: 0 auto;
}

.hotel-logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--light-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial p {
    margin-bottom: 20px;
    font-style: italic;
    padding-top: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--text-color);
}

/* Contact Form */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--light-gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-tagline {
    margin-top: 20px;
}

.footer-copyright {
    border-top: 1px solid var(--secondary-color-light);
    padding-top: 20px;
    margin-top: 30px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .route-content,
    .guide-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* --- Hamburger Menu Styles --- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        right: 0; /* Slide in */
    }
    .hamburger-menu {
        display: block; /* Show on mobile */
    }
}

/* --- Confirmation Modal Styles --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: slideIn 0.4s ease-in-out;
}

.close-modal {
    color: var(--light-gray);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-color);
}

#confirmation-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
#confirmation-message ul {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}
#confirmation-message li {
    margin-bottom: 8px;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Accessibility Improvements --- */

/* 
  A general, visible focus style for keyboard users.
  :focus-visible is a modern pseudo-class that shows a focus indicator 
  only when the browser determines it's needed (e.g., keyboard navigation),
  not on mouse clicks.
*/
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Custom focus for rounded buttons to look cleaner */
.cta-button:focus-visible,
.submit-btn:focus-visible {
    outline: none; /* Remove the default outline to use box-shadow instead */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px var(--accent-color);
}

/* Custom focus for form fields inside the glass-effect container */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-color-dark);
}

/* Custom focus for social media links in the dark footer */
.social-links a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
    border-radius: 50%;
}

/* Custom focus for the modal close button */
.close-modal:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Utility Classes --- */
/* 
  Esta clase es añadida por JavaScript (main.js) al body
  cuando el menú móvil o el modal de confirmación están abiertos
  para prevenir el scroll del contenido de fondo.
  'height: 100%' previene problemas de layout en algunos navegadores móviles.
*/
body.no-scroll {
    height: 100%;
    overflow: hidden;
}