/* layout.css - Header, footer, contenedores, navegación */
/* ---------- CORRECCIÓN: Ocultar contenedores vacíos del footer en móviles ---------- */
@media (pointer: coarse) and (max-width: 1366px) {
    .footer-center:empty,
    .footer-right:empty,
    .footer-legal:empty,
    .footer-contact:empty,
    .footer-social:empty {
        display: none;
    }
    
    /* Eliminar márgenes/paddings adicionales que puedan generar huecos */
    .footer-container {
        gap: 0.5rem !important;
    }
    .footer-center, .footer-right {
        flex: none !important;
        width: 100% !important;
    }
}
/* -----------------------------------------------------------------------------
 * PIE DE PÁGINA
 * -----------------------------------------------------------------------------
 */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-tagline {
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
}
/* Footer reorganizado */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 0;
}

.footer-info {
    flex: 1 1 200px;
}

.footer-center {
    flex: 1 1 250px;
    text-align: center;
}

.footer-right {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-visitas {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-contact-item {
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.footer-contact-item:hover {
    color: var(--accent);
}

.footer-banner {
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ajustes para móviles dentro del menú hamburguesa */
@media (pointer: coarse) and (max-width: 1366px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-right {
        align-items: center;
    }
    .footer-contact {
        align-items: center;
        gap: 0.5rem;
    }
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Ajustes para menú en una línea en pantallas anchas */
.main-nav ul {
    gap: 1.2rem;      /* reduce espacio entre elementos (antes 2.5rem) */
}

.main-nav a {
    font-size: 1rem; /* reduce ligeramente el tamaño de la fuente (antes 1rem) */
    white-space: nowrap; /* evita que el texto de cada enlace se parta */
}
/* -----------------------------------------------------------------------------
 * CABECERA Y NAVEGACIÓN
 * -----------------------------------------------------------------------------
 */
.site-header {
    border-bottom: 1px solid var(--border-subtle);
    background-color: rgba(11, 12, 14, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 2.4rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.8rem;
}

.logo-img {
    height: 150px;
    width: auto;
    max-width: 250px;
    margin-right: 10px;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-light);
    border-bottom-color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}
.footer-galeria-link {
    margin-top: 0.5rem;
}
.footer-galeria-link a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-galeria-link a:hover {
    color: var(--accent);
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .main-nav ul {
        justify-content: center;
    }
}
.text-center {
    text-align: center;
}
.btn-outline {
    display: inline-block;

@media (pointer: coarse) and (max-width: 1366px) {
    .logo a {
        font-size: 1.6rem;   /* Ajusta este valor a lo que necesites */
    }
}