/* Estilos Generales y Resets */
:root {
    --primary-color: #4CAF50; /* Un verde vibrante para destacar */
    --secondary-color: #2196F3; /* Un azul para complementar */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-dark: #333;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header - Menú Superior Fijo */
.header {
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed; /* Mantiene el header visible */
    top: 0;
    left: 0;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 40px; /* Ajusta el tamaño del logo */
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Espacio para el contenido debajo del header fijo */
main {
    padding-top: 80px; /* Ajusta este valor según la altura de tu header */
}

/* Hero Section */
.hero {
    background: url('/assets/img/fondo.jpg') no-repeat center center/cover;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Capa oscura para mejor contraste del texto */
    padding: 40px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.8em;
    font-weight: 400;
}

/* Welcome Section */
.welcome-section {
    background-color: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 40px;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.welcome-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.welcome-text h3 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome-text p {
    font-size: 1.1em;
    line-height: 1.8;
}

.welcome-images {
    flex: 1;
    min-width: 400px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.welcome-images img {
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease;
}

.welcome-images img:hover {
    transform: translateY(-5px);
}

/* Info Panels Section */
.info-panels {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    padding: 0 20px;
}

.panel {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    overflow: hidden;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.panel:hover {
    transform: translateY(-10px);
}

.panel img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.panel p {
    padding: 20px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.panel p strong {
    color: var(--primary-color);
}

/* Gallery Section */
.gallery-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    margin-top: 40px;
}

.gallery-section h2 {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.gallery-section h3 {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 400;
}

.gallery-images {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.03);
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
    text-align: center;
}

.footer-content > div {
    flex: 1;
    min-width: 280px;
    padding: 20px;
}

.footer-content h4 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-content p, .footer-content a {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content .map iframe {
    border-radius: 8px;
    width: 100%;
    height: 300px; /* Altura fija para el mapa */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero h2 {
        font-size: 1.3em;
    }

    .welcome-content {
        flex-direction: column;
    }

    .welcome-images {
        flex-direction: column;
        align-items: center;
    }

    .info-panels, .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .panel {
        max-width: 90%;
    }

    .gallery-images {
        grid-template-columns: 1fr;
    }

    .footer-content .map {
        order: -1; /* Mueve el mapa arriba en pantallas pequeñas */
    }
}