﻿/* ==========================================
   RESET + BASE GLOBAL
========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', serif;
    background-color: #f0f5fa;
    color: #111;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ==========================================
   HEADER – CENTRADO EXACTO EN VIEWPORT
========================================== */
.custom-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #f9f9f9;
    border-bottom: 3px solid #a97c30;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Contenedor general */
.menu-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
}

/* --- LOGO --- */
.menu-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .menu-center .logo {
        font-family: 'Cinzel Decorative', cursive;
        font-size: 2.5rem;
        color: #322203;
        text-decoration: none;
        line-height: 1;
        letter-spacing: 1px;
    }

/* --- MENÚS LATERALES --- */
.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 2.8rem;
}

/* Menú izquierdo */
.menu-left {
    justify-content: flex-end;
    margin-right: 4rem;
}

/* Menú derecho */
.menu-right {
    justify-content: flex-start;
    margin-left: 4rem;
}

    /* --- ENLACES PRINCIPALES --- */
    .menu-left a,
    .menu-right a {
        color: #322203;
        text-decoration: none;
        font-size: 0.96rem;
        font-weight: 500;
        position: relative;
        letter-spacing: 0.4px;
        transition: color 0.3s;
        padding-bottom: 2px;
    }

        .menu-left a:hover,
        .menu-right a:hover {
            color: #a97c30;
        }

        /* Subrayado elegante */
        .menu-left a::after,
        .menu-right a::after {
            content: '';
            display: block;
            width: 0;
            height: 2px;
            background: #a97c30;
            transition: width 0.3s;
            margin-top: 3px;
        }

        .menu-left a:hover::after,
        .menu-right a:hover::after {
            width: 100%;
        }

/* --- SWITCHER DE IDIOMA --- */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

    .language-switcher a {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.85rem;
        color: #322203;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .language-switcher a:hover {
            color: #a97c30;
        }

    .language-switcher img {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
    }

/* ===============================
   DROPDOWN MENÚ
=============================== */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

    .dropdown-menu a {
        color: #322203;
        font-size: 0.9rem;
    }

        .dropdown-menu a:hover {
            background-color: #f5f0e8;
        }

/* ==========================================
   MENÚ MÓVIL
========================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .hamburger span {
        height: 3px;
        background-color: #322203;
        width: 100%;
        border-radius: 2px;
    }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f0f5fa;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6rem;
    gap: 1.5rem;
    z-index: 1000;
    font-family: 'Cinzel', serif;
}

    .mobile-menu a {
        color: #322203;
        font-size: 1.2rem;
        text-decoration: none;
    }

        .mobile-menu a:hover {
            color: #8c6e4a;
        }

    .mobile-menu.activo {
        display: flex;
    }

    .mobile-menu .language-switcher {
        margin-top: 2rem;
    }

/* ===============================
   FOOTER ARQUETYPESMX - AZUL PETRÓLEO + DORADO
=============================== */
.footer-archetypes {
    background-color: #141A26; /* reemplazo del verde por gris oscuro elegante */
    color: #fff;
    font-family: 'Cinzel', serif;
    padding: 0rem 0 0;
    text-align: center;
}

/* --- Bloque principal (logo + redes) --- */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
    margin-bottom: 0.3rem;
    position: relative;
}

/* Logo y redes en la misma línea */
.footer-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

    .footer-left .footer-logo-img {
        height: 120px;
        width: auto;
        display: block;
        margin: 0;
    }

.footer-social {
    display: flex;
    gap: 0.8rem;
}

    .footer-social a {
        color: #fff;
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }

        .footer-social a:hover {
            color: #c2a774;
        }

/* --- Mapa del sitio (una sola línea centrada) --- */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

    .footer-links a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.3s ease;
        position: relative;
        padding: 0 0.6rem;
    }

        .footer-links a::after {
            content: "|";
            color: rgba(255, 255, 255, 0.2);
            position: absolute;
            right: -0.7rem;
        }

        .footer-links a:last-child::after {
            content: "";
        }

        .footer-links a:hover {
            color: #c2a774;
        }

/* --- Franja inferior (derechos reservados) --- */
.footer-bottom {
    background-color: #b9964d; /* dorado suave/bronce */
    color: #fff;
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    width: 100%;
}

    .footer-bottom a {
        color: #fff;
        text-decoration: none;
    }

        .footer-bottom a:hover {
            text-decoration: underline;
        }

/* --- Ajuste del logo SVG --- */
.footer-logo-img {
    height: 110px;
    width: auto;
    display: block;
    margin: 1rem auto 0.8rem;
    filter: brightness(1.3) invert(0.9) sepia(0.4) saturate(1.2) hue-rotate(10deg) drop-shadow(0 3px 3px rgba(169, 124, 48, 0.45));
    opacity: 0.95;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.3s ease;
}

    .footer-logo-img:hover {
        transform: scale(1.27);
        filter: brightness(1.6) invert(1) sepia(0.2) saturate(1.4) hue-rotate(15deg) drop-shadow(0 4px 4px rgba(169, 124, 48, 0.6));
        opacity: 1;
    }

/* ==========================================
   AJUSTES RESPONSIVOS GLOBALES
========================================== */

/* Laptops medianas */
@media (max-width: 1200px) {
    .menu-center .logo {
        font-size: 2.2rem;
    }
}

/* Tablets horizontales */
@media (max-width: 992px) {
    .menu-wrapper {
        grid-template-columns: auto 1fr auto;
        padding: 0 1rem;
    }

    .menu-left,
    .menu-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .menu-center .logo {
        font-size: 2rem;
    }
}

/* Tablets verticales */
@media (max-width: 768px) {
    .menu-center .logo {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-column h4 {
        font-size: 1.1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Smartphones grandes */
@media (max-width: 576px) {
    .menu-center .logo {
        font-size: 1.6rem;
    }

    .mobile-menu a {
        font-size: 1rem;
    }

    .hero {
        height: 70vh;
    }

    .titulo-seccion {
        font-size: 1.8rem;
    }

    .bloque-legal {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
}

/* Smartphones pequeños */
@media (max-width: 400px) {
    .menu-center .logo {
        font-size: 1.4rem;
    }

    .mobile-menu a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* ==========================================
   MENÚ FULLSCREEN - ARCHETYPES
========================================== */
.menu-toggle {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #322203;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
    display: none;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #d6cfbb, #eae7dd);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    text-align: center;
}

    .overlay-menu.active {
        opacity: 1;
        visibility: visible;
    }

.overlay-nav a {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #322203;
    text-decoration: none;
    margin: 0.8rem 0;
    transition: color 0.3s ease;
}

    .overlay-nav a:hover {
        color: #a97c30;
    }

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #322203;
    cursor: pointer;
}

.overlay-language {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

    .overlay-language a {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 1rem;
        color: #322203;
        text-decoration: none;
    }

    .overlay-language img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }

/* ======== Corrección visual: botones ☰ y ✕ ======== */
.menu-toggle {
    opacity: 1;
    transition: opacity 0.3s ease;
}

    .menu-toggle.active {
        opacity: 0;
        pointer-events: none;
    }

.close-menu {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.overlay-menu.active .close-menu {
    opacity: 1;
    transform: scale(1);
}

.menu-toggle,
.close-menu {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
}
