/*
Theme Name: Serosense Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Ole Tecnologia SL
Author URI: https://oletecnologia.com/
Version: 3.4.7.1775631550
Updated: 2026-04-08 06:59:10

*/

/* ==========================================================================
   SEROSENSE SUITE - PIXEL PERFECT FIGMA (CABECERA + FOOTER INTEGRADO)
   ========================================================================== */

:root {
    --brand-green: #A4C724;
    --text-green: #617222;
    --text-dark: #212A00;
    --bg-white: #FFFFFF;
    --header-font: 'Neue Einstellung', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
}

/* Forzar ancho completo y anular el de Elementor globalmente */
header.site-header,
footer.custom-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

header.site-header {
    background: var(--bg-white);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 9999;
    font-family: var(--header-font);
}

/* Limpiar subrayados rebeldes del tema globalmente en cabecera y pie */
.site-header a,
.custom-footer a {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Contenedor principal de cabecera con los paddings de Figma */
.header-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 64px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   CABECERA - ESCRITORIO
   ========================================================================== */

/* Fila Superior */
.main-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.logo-area img {
    height: 40px; 
    width: auto;
}

/* Menú Principal Superior */
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.primary-menu li a {
    padding: 8px 12px;
    color: var(--text-green);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Indicador de menú activo dinámico (Hogar vs Empresas) */
.seccion-hogar .primary-menu li:nth-child(1) a::after,
.seccion-empresas .primary-menu li:nth-child(2) a::after,
.primary-menu li.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 2px;
    background: var(--text-green);
    border-radius: 2px;
}

/* Área de Acciones de Cabecera (Lado Derecho) */
.actions-area {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

/* Selector de Idiomas Customizado (Polylang) */
.language-selector {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0px;
    color: var(--text-green);
    font-size: 16px;
    text-transform: uppercase;
}

.dropdown-trigger .icon-arrow {
    color: var(--brand-green);
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.language-selector .dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: var(--bg-white);
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 12px 16px;
    list-style: none !important;
    z-index: 1000;
    min-width: max-content;
}

.language-selector .dropdown-list li { margin: 0; padding: 0; }
.language-selector .dropdown-list li a {
    color: var(--text-green);
    font-size: 16px;
    text-transform: uppercase;
}
.language-selector .dropdown-list li a:hover { color: var(--brand-green); }

.language-selector.active .dropdown-list { display: block; }
.language-selector.active .dropdown-trigger .icon-arrow { transform: rotate(180deg); }

/* Botones Principales de Cabecera */
.phone-button {
    padding: 6px 24px;
    background: var(--bg-white);
    border-radius: 100px;
    outline: 1px solid var(--brand-green);
    outline-offset: -1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-green);
    font-size: 14px;
}
.phone-button .material-symbols-rounded { font-size: 20px; font-weight: 300; }

.client-area-button {
    padding: 6px 24px;
    background: var(--brand-green);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
}
.client-area-button .material-symbols-rounded { font-size: 20px; font-weight: 300; }

.mobile-menu-toggle { display: none; } /* Oculto en PC */

/* Fila Inferior (Submenú de Servicios) */
.submenu-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.secondary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; 
    gap: 16px;
}

.secondary-menu li a {
    padding: 8px 12px;
    color: var(--text-green);
    font-size: 14px;
    display: flex;
    align-items: center; 
    gap: 4px;
    line-height: 1; 
}

/* Resaltar visualmente en qué servicio del submenú está navegando */
.secondary-menu li.current-menu-item > a,
.secondary-menu li.current-menu-ancestor > a {
    color: var(--brand-green);
}

/* Desplegables Flotantes de Escritorio (Dropdowns) */
.secondary-menu > li { position: relative; }

.secondary-menu li ul.sub-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 50%; 
    transform: translateX(-50%); 
    margin-top: 12px; 
    background: var(--bg-white);
    border-radius: 20px; 
    padding: 24px 32px; 
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12); 
    min-width: max-content; 
    z-index: 1000;
    list-style: none !important; 
}

/* Puente invisible anticlierre involuntario */
.secondary-menu li ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -15px; 
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.secondary-menu li:hover > ul.sub-menu { display: flex; flex-direction: column; gap: 16px; }
.secondary-menu li ul.sub-menu li { list-style: none !important; margin: 0; padding: 0; }
.secondary-menu li ul.sub-menu li a {
    padding: 4px 8px;
    justify-content: center; 
    text-align: center;
    font-size: 16px; 
    color: var(--text-green);
}
.secondary-menu li ul.sub-menu li a:hover { color: var(--brand-green); }

/* Animación Flecha del Submenú */
.secondary-menu li.menu-item-has-children > a::after {
    content: '\e313'; 
    font-family: 'Material Symbols Rounded';
    font-size: 20px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s ease; 
}
.secondary-menu li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* ==========================================================================
   FOOTER - PIXEL PERFECT DE FIGMA (ESTILOS GENERALES)
   ========================================================================== */

.custom-footer {
    background-color: #FBFCF7;
    border-top: 1px solid var(--brand-green);
    padding: 64px 80px 40px;
    font-family: var(--header-font);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Marca y Bloques de Información (Izquierda) */
.footer-brand-contact {
    width: 284px;
    min-width: 284px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

/* Redes Sociales */
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a {
    width: 40px; height: 40px;
    background-color: var(--brand-green);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-dark) !important;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover { background-color: var(--text-green); color: var(--bg-white) !important; }

.footer-info-block { display: flex; flex-direction: column; gap: 16px; }
.footer-heading {
    color: #2F2F2E;
    font-size: 14px;
    font-family: 'Roboto', system-ui, sans-serif;
    font-weight: 400;
    margin: 0;
    line-height: 19.6px;
}

.contact-list { list-style: none !important; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-list li {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--text-green); font-size: 16px; line-height: 22.4px;
    list-style: none !important;
}
.contact-list li a, .contact-list li span:last-child { color: var(--text-green); }
.contact-list li a:hover { color: var(--brand-green); }
.contact-list .material-symbols-rounded { font-size: 20px; font-weight: 300; margin-top: 1px; }

/* GRIDS DINÁMICOS DEL FOOTER (Lado Derecho) */
.footer-menus-grid {
    flex: 1 1 0;
    min-width: 240px;
    display: grid;
    gap: 24px;
}

/* Variante Ámbito Hogar: Cuadrícula en 3 Columnas */
.footer-scope-hogar .footer-menus-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

/* Variante Ámbito Empresas: Cuadrícula de Figma en 5 Columnas completas */
.footer-scope-empresas .footer-menus-grid {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.footer-menu-col { display: flex; flex-direction: column; gap: 16px; }
.mt-32 { margin-top: 32px; }

.footer-menu-col ul { list-style: none !important; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-menu-col ul li { list-style: none !important; padding: 0; margin: 0; }
.footer-menu-col ul li a {
    color: var(--text-green); font-size: 14px; line-height: 19.6px;
    display: block; padding: 4px 0; transition: color 0.3s ease;
}
.footer-menu-col ul li a:hover { color: var(--brand-green); }

/* Barra Inferior de Copyright y Enlaces Legales */
.footer-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #2F2F2E;
    font-size: 16px;
    font-family: 'Roboto', system-ui, sans-serif;
    line-height: 25.6px;
    width: 100%;
}

.footer-legal ul { list-style: none !important; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-legal ul li { list-style: none !important; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.footer-legal ul li a { color: var(--text-green); font-family: var(--header-font); transition: color 0.3s ease; }
.footer-legal ul li a:hover { color: var(--brand-green); }

/* Separador "|" dinámico entre enlaces legales */
.footer-legal ul li:not(:last-child)::after {
    content: '|';
    color: #2F2F2E;
    margin-left: 8px;
}

/* ==========================================================================
   VERSION RESPONSIVA (MÓVILES Y TABLETS < 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    
    /* --- CABECERA MÓVIL --- */
    .header-wrapper { padding: 16px 24px; }
    
    .main-row { 
        display: grid;
        grid-template-columns: 1fr auto; 
        grid-template-rows: auto auto;   
        row-gap: 8px;                    
        column-gap: 16px;
    }
    
    .logo-area { grid-column: 1 / 2; grid-row: 1 / 2; display: flex; align-items: center; }
    .actions-area { grid-column: 2 / 3; grid-row: 1 / 2; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
    
    .main-navigation { grid-column: 1 / 2; grid-row: 2 / 3; display: flex; align-items: center; }
    .primary-menu { gap: 16px; } 
    .primary-menu li a { padding: 0; }
    
    /* Botón Hamburguesa e Icono de Cierre (Fijo en color #2F2F2E) */
    .mobile-menu-toggle,
    .mobile-menu-toggle:focus,
    .mobile-menu-toggle:active,
    .mobile-menu-toggle:hover {
        grid-column: 2 / 3; grid-row: 2 / 3;
        display: flex; justify-content: center; align-items: center;
        width: 40px; height: 40px; border: none; cursor: pointer;
        background-color: #2F2F2E !important; color: #FFFFFF !important; 
        border-radius: 50%; padding: 0; justify-self: end; outline: none !important;
    }
    .mobile-menu-toggle .material-symbols-rounded { font-size: 20px; }

    /* Reducción de textos de acciones a botones redondos (40x40) */
    .phone-button, .client-area-button { padding: 0; width: 40px; height: 40px; border-radius: 50%; justify-content: center; align-items: center; box-sizing: border-box; }
    .phone-button span:first-child, .client-area-button span:last-child { display: none; }
    .language-selector .pll-lang-list li a { font-size: 16px; }

    /* Acordeón Móvil (Cajón Desplegable Completo) */
    .submenu-row {
        display: none; position: absolute; top: 100%; left: 0 !important; 
        width: 100vw !important; background: var(--bg-white);
        box-shadow: 0px 10px 30px rgba(0,0,0,0.15); padding: 24px 20px 40px; box-sizing: border-box; z-index: 999;
    }
    .submenu-row.open { display: flex; } 
    .secondary-menu { flex-direction: column; align-items: center; width: 100%; gap: 24px; }
    
    /* Ajustes estructurales de lista en móvil */
    .secondary-menu > li { width: 100%; text-align: center; }
    .secondary-menu li ul.sub-menu { position: static; transform: none; box-shadow: none; padding: 16px 0 0; margin-top: 0; display: none; }
    .secondary-menu li ul.sub-menu::before { display: none; }
    .secondary-menu li:hover > ul.sub-menu { display: none; }
    
    .secondary-menu li.expanded > ul.sub-menu { display: flex; flex-direction: column; gap: 16px; }
    .secondary-menu li.expanded > a::after { transform: rotate(180deg); }

    /* --- FOOTER MÓVIL --- */
    .custom-footer { padding: 40px 24px; gap: 32px; }
    .footer-container { gap: 40px; }
    .footer-brand-contact { width: 100%; min-width: 100%; }
    
    /* Forzar siempre a 1 columna en móviles, sin importar si es hogar o empresas */
    .footer-scope-hogar .footer-menus-grid,
    .footer-scope-empresas .footer-menus-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mt-32 { margin-top: 16px; }
    .footer-bottom-bar { text-align: center; flex-direction: column; gap: 12px; }
    .footer-legal ul { justify-content: center; }
    .footer-legal ul li:not(:last-child)::after { display: none; } /* Ocultar barras en bloque vertical */
}