/* ================================== */
/* === ESTILOS GLOBALES Y HEADER === */
/* ================================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.header-bg {
    background-color: #1976d2;
    padding: 10px 40px;
    color: #fff;
}

.header-container-simplified {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.logo {
    flex-shrink: 0;
    margin-right: 2rem;
}

.logo-img {
    height: 100px;
    border-radius: 12px;
    max-width: 180px;
}

.header-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    text-align: center;
}

.logo-nombre {
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 4px #000;
}

.header-subtitle {
    font-size: 1.1em;
    margin-top: 4px;
}

nav {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav .nav-link,
nav .dropdown-toggle {
    color: #fff;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav .nav-link:hover,
nav .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- SOLUCIÓN DE FUERZA BRUTA PARA EL MENÚ --- */
.dropdown {
    position: relative;
    display: flex; 
    align-items: center; 
}


/* === MENÚ DESPLEGABLE COMPATIBLE Y LIMPIO === */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #1976d2;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.dropdown-content.show {
    display: block;
    opacity: 1;
}
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
    }
}

.dropdown-content a {
    display: block;
    color: #fff;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* =========================== */
/* === ESTILOS FLIP CARD === */
/* =========================== */
.flip-card { background-color: transparent; width: 350px; height: 250px; perspective: 1000px; margin: 40px auto; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 15px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-text { position: absolute; background: rgba(0,0,0,0.5); color: #fff; padding: 10px 22px; border-radius: 10px; font-size: 1.1em; white-space: nowrap; }
.flip-card-back { transform: rotateY(180deg); }

/* ======================= */
/* === ESTILOS FOOTER === */
/* ======================= */
.site-footer { background-color: #2c3e50; color: #bdc3c7; padding: 40px 20px; font-size: 0.95em; }
.footer-container { display: flex; justify-content: space-around; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding-bottom: 20px; }
.footer-column { flex: 1; min-width: 280px; margin: 20px; }
.footer-column h3 { color: #ffffff; margin-bottom: 20px; font-size: 1.2em; border-bottom: 2px solid #3498db; padding-bottom: 10px; }
.footer-column p { line-height: 1.6; }
.contact-list, .quick-links { list-style: none; padding: 0; }
.contact-list li, .quick-links li { margin-bottom: 12px; }
.site-footer a:hover { color: #3498db; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #34495e; font-size: 0.9em; }
.credits a { color: #ffffff; font-weight: bold; }

/* =============================== */
/* === BOTÓN FLOTANTE WHATSAPP === */
/* =============================== */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: #25D366; border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 32px; height: 32px; }

/* =========================== */
/* === RESPONSIVE (MÓVIL) === */
/* =========================== */
@media (max-width: 768px) {
    .header-bg { padding: 16px; }
    .header-container-simplified { flex-direction: column; text-align: center; }
    .header-container-simplified > * { margin-bottom: 20px; }
    .logo { margin-right: 0; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
}
/* ======================================= */
/* === NUEVOS ESTILOS PARA LA GALERÍA === */
/* ======================================= */

.gallery-item {
    position: relative; /* Necesario para posicionar el texto superpuesto */
    overflow: hidden; /* Oculta lo que se salga del contenedor */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* shadow-lg */
}

.gallery-image {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover;
    transition: transform 0.4s ease; /* Transición suave para el zoom */
}

/* Efecto de zoom en la imagen al pasar el mouse */
.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); /* Gradiente oscuro */
    padding: 1.5rem 1rem 1rem; /* Espaciado interno */
    opacity: 0; /* Oculto por defecto */
    transform: translateY(100%); /* Lo movemos fuera de la vista */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Muestra el texto al pasar el mouse */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption {
    color: white;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    text-align: center;
}
/* ======================================= */
/* === NUEVOS ESTILOS PARA LA GALERÍA === */
/* ======================================= */

.gallery-item {
    position: relative; /* Necesario para posicionar el texto superpuesto */
    overflow: hidden; /* Oculta lo que se salga del contenedor */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* shadow-lg */
}

.gallery-image {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover;
    transition: transform 0.4s ease; /* Transición suave para el zoom */
}

/* Efecto de zoom en la imagen al pasar el mouse */
.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); /* Gradiente oscuro */
    padding: 1.5rem 1rem 1rem; /* Espaciado interno */
    opacity: 0; /* Oculto por defecto */
    transform: translateY(100%); /* Lo movemos fuera de la vista */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Muestra el texto al pasar el mouse */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption {
    color: white;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    text-align: center;
}