/*
 Theme Name:   ARchitect Architecture Child
 Description:  Rediseño 2026 para Bustamante Producciones - Consolidado
 Author:       Facundo Vartorelli
 Template:     architect-architecture
 Version:      1.1.0
*/

/* 1. VARIABLES DINÁMICAS (Core del Dark/Light Mode) */
:root {
    --bg-color: #0F0F0F;
    --text-color: #FFFFFF;
    --card-bg: #1A1A1A;
    --muted-text: #888888;
    --electric-cherry: #FF003F;
    --header-bg: rgba(15, 15, 15, 0.9);
}

/* Sobrescribir variables en Modo Claro */
body.light-mode {
    --bg-color: #F5F5F5;
    --text-color: #0F0F0F;
    --card-bg: #FFFFFF;
    --muted-text: #555555;
    --header-bg: rgba(245, 245, 245, 0.9);
}

/* 2. RESET Y ESTILOS GLOBALES */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    font-family: 'Inter', sans-serif; /* O la que use el tema padre */
}

h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 900;
    color: var(--text-color);
}

.cherry-text {
    color: var(--electric-cherry) !important;
}

/* 3. HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

/* 4. SECCIONES Y CONTENEDORES */
.section-padding {
    padding: 100px 20px;
    background-color: var(--bg-color) !important;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.large-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--muted-text) !important;
}

/* 5. MÉTRICAS DE ÉXITO */
.metrics-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 40px;
}

.metric-item .number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--electric-cherry) !important;
}

.metric-item .plus {
    font-size: 2.5rem;
    font-weight: 900;
}

.metric-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--muted-text) !important;
}

/* 6. TARJETAS DE SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg) !important;
    padding: 30px;
    border-radius: 4px;
    border-left: 0px solid var(--electric-cherry);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-color);
}

.service-card:hover {
    background: var(--electric-cherry) !important;
    border-left: 10px solid #FFFFFF;
    transform: translateY(-5px);
    color: #FFFFFF !important;
}

.service-card:hover p, .service-card:hover h3 {
    color: #FFFFFF !important;
}

/* 7. MURAL DEL NOA */
.mural-container {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 4px;
}

.provincia {
    fill: var(--muted-text);
    transition: all 0.3s ease;
    cursor: pointer;
    stroke: var(--bg-color);
    stroke-width: 2;
}

.provincia:hover {
    fill: var(--electric-cherry);
}

/* 8. MENÚ STICKY */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 30px 0;
    background: transparent;
}

.site-header.sticky-active {
    padding: 15px 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 9. UI ELEMENTS (Cursor, Theme Switcher, WhatsApp) */
#custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--electric-cherry);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.theme-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--electric-cherry) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.icon-sun { display: none; }
.light-mode .icon-sun { display: block; }
.light-mode .icon-moon { display: none; }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white !important;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 10. FORMULARIO FOOTER */
.footer-form-container input, 
.footer-form-container textarea {
    background: var(--card-bg) !important;
    border: 1px solid var(--muted-text) !important;
    color: var(--text-color) !important;
    padding: 12px !important;
    margin-bottom: 15px;
    border-radius: 0px;
}

.wpcf7-submit {
    background-color: var(--electric-cherry) !important;
    color: white !important;
    font-weight: bold;
    border: none;
    padding: 15px 40px !important;
    cursor: pointer;
    width: 100%;
}
/* --- NAVEGACIÓN MINIMALISTA 2026 --- */

/* Contenedor del Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--header-bg);
    transition: all 0.3s ease;
}

/* Logo */
.site-branding img {
    max-height: 50px;
    transition: all 0.3s ease;
}

/* Menú de Navegación */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; /* Espacio entre items */
}

.main-navigation a {
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--electric-cherry);
}

/* Ocultar el botón de búsqueda si no lo quieres (opcional) */
.search-button-container {
    display: none; 
}

/* --- ESTADO STICKY (Cuando haces scroll) --- */
.site-header.sticky-active {
    padding: 10px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.site-header.sticky-active .site-branding img {
    max-height: 40px; /* El logo se achica un poco */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .main-navigation {
        display: none; /* Aquí luego podrías implementar un menú hamburguesa */
    }
}


/* Resaltar el último item del menú (Contacto) */
.main-navigation ul li:last-child a {
    background-color: var(--electric-cherry);
    color: white !important;
    padding: 10px 20px;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.main-navigation ul li:last-child a:hover {
    transform: scale(1.05);
    background-color: #d40035;
}
/* Quitar botón de búsqueda y decoraciones antiguas */
.search-button-container, 
.site-header .search-toggle,
.main-navigation .search-form {
    display: none !important;
}

/* Limpiar links y subrayados */
.main-navigation a, 
.site-branding a {
    text-decoration: none !important;
    border: none !important;
}

/* Alineación del menú */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
}

/* Estilo del switch dentro del menú */
.theme-switch-item a {
    display: flex;
    align-items: center;
    padding: 0 10px !important;
    transition: transform 0.3s ease;
}

.theme-switch-item a:hover {
    transform: rotate(15deg);
}

/* Ocultamos el botón flotante viejo si todavía existe */
.theme-switcher-btn {
    display: none !important;
}

/* Resaltar CONTACTO como botón (Punto 4 de tu estrategia) */
.main-navigation ul li:nth-last-child(2) a { /* El penúltimo, ya que el último es el switch */
    background: var(--electric-cherry);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 2px;
    font-weight: bold;
}
/* 1. Eliminar físicamente el buscador y su contenedor */
.col-lg-1.col-md-2.col-2.align-self-center, 
.search-box, 
.serach_outer {
    display: none !important;
}

/* 2. Expandir el menú para que use el espacio del buscador */
.col-lg-6.col-md-2.col-3.align-self-center {
    width: 75% !important; /* Aumentamos el ancho de la columna del menú */
    flex: 0 0 75% !important;
    max-width: 75% !important;
}

/* 3. Estilo para el switch dentro del menú */
.theme-switch-item a {
    font-size: 20px !important;
    padding: 10px !important;
    display: inline-block;
    vertical-align: middle;
}

/* 4. Limpieza de links azules (visto en tu imagen anterior) */
#menu-principal li a {
    text-decoration: none !important;
    color: var(--text-color) !important;
}
.site-title.mb-0 {
    display: none !important; /* Oculta el texto "BUSTAMANTE Comunicación" si ya tienes el logo */
}

.custom-logo {
    height: auto !important; /* Deja que la imagen mande */
    width: 60px !important;
}
/* --- CABECERA RESPONSIVA (CELU Y TABLET) --- */
@media (max-width: 991px) {
    /* Forzamos a que la fila del header mantenga sus columnas alineadas */
    .main-header .container > .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Ajuste de la columna del LOGO */
    .main-header .col-lg-3.col-md-4 {
        width: auto !important;
        flex: 0 0 auto !important;
        padding-bottom: 0 !important; /* Quitamos el espacio que traen por defecto */
    }

    /* Ajuste de la columna del MENÚ (Hamburguesa) */
    .main-header .col-lg-6.col-md-2 {
        width: auto !important;
        flex: 0 0 auto !important;
        margin-left: auto !important; /* Empuja el botón a la derecha */
    }

    /* Limpieza de estilos internos del tema */
    .site-logo, .logo {
        text-align: left !important;
        padding: 0 !important;
    }

    .site-title {
        display: none !important; /* Ocultamos el texto para que solo quede el icono del logo */
    }

    .toggle-nav {
        text-align: right !important;
    }

    /* Ajuste del botón de menú para que no sea gigante */
    .responsivetoggle {
        padding: 10px !important;
        background: transparent !important;
        border: none !important;
    }
}
/* --- FIX MENÚ MÓVIL DESPLEGABLE --- */

/* Forzar que la lista sea vertical */
#mySidenav .main-menu ul {
    display: flex !important;
    flex-direction: column !important; /* De horizontal a vertical */
    align-items: flex-start !important;
    padding: 60px 30px !important; /* Espacio para que no choque con la X */
    gap: 20px !important;
    background: var(--bg-color) !important;
    height: 100vh;
}

/* Ajustar los items del menú */
#mySidenav .main-menu ul li {
    width: 100% !important;
    margin: 0 !important;
}

#mySidenav .main-menu ul li a {
    font-size: 1.5rem !important; /* Más grande para que sea fácil tocar con el dedo */
    color: var(--text-color) !important;
    display: block !important;
    text-align: left !important;
}

/* Fix para el botón "Contacto" en móvil (que no sea un bloque gigante) */
#mySidenav .main-menu ul li:nth-last-child(2) a {
    background: var(--electric-cherry) !important;
    color: white !important;
    padding: 10px 20px !important;
    display: inline-block !important; /* No ocupa todo el ancho */
    border-radius: 4px;
}

/* Icono de hamburguesa (las tres rayitas) visible */
.responsivetoggle i {
    color: var(--text-color) !important; /* Para que se vea en modo claro/oscuro */
    font-size: 24px !important;
}

/* El botón de cerrar (X) */
.closebtn {
    color: var(--text-color) !important;
    font-size: 35px !important;
    top: 20px !important;
    right: 25px !important;
}
/* Eliminar el botón flotante duplicado */
#theme-switcher, .theme-switcher-btn {
    display: none !important;
}
body.light-mode .main-header {
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
}