/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Tema hijo de Hello Elementor
Author: TOGA
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =========================
   FUENTE GLOBAL
========================= */
html,
body,
button,
input,
select,
textarea,
a {
    font-family: 'Montserrat', Arial, sans-serif !important;
}

/* =========================
   HEADER
========================= */
.lp-header {
    width: 100%;
    background: #111111;
    position: sticky; 
    top: 0;           
    z-index: 999;    
}

.lp-header__inner {
    display: grid;
    grid-template-columns: 140px max-content 1fr max-content;
    align-items: center;
    gap: 60px;
    padding: 22px 70px;
    background: #111111;
    max-width: 1440px;
    margin: 0 auto;
}

/* Logo */
.lp-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.lp-header__logo-img {
    width: 112px;
    height: auto;
    display: block;
}

/* Botón menú */
.lp-header__menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    background: #ef2b2d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
}

.lp-header__menu-button,
.lp-header__menu-button:focus,
.lp-header__menu-button:active,
.lp-header__menu-button:focus-visible {
    background: #ef2b2d !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.lp-header__menu-icon {
    font-size: 22px;
    line-height: 1;
}

/* =========================
   BUSCADOR FIBOSEARCH
========================= */
.lp-header__search {
    width: 100%;
    max-width: 520px;
}

.lp-header__search .dgwt-wcas-search-wrapp {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.lp-header__search .dgwt-wcas-search-form {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lp-header__search .dgwt-wcas-sf-wrapp {
    position: relative !important;
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #ffffff !important;
    border-radius: 10px !important;
    background: #111111 !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.lp-header__search .dgwt-wcas-search-input {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 40px !important;
    padding: 0 72px 0 18px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    outline: none !important;
    box-shadow: none !important;
}

.lp-header__search .dgwt-wcas-search-input::placeholder {
    color: #ffffff !important;
    opacity: 0.85 !important;
}

.lp-header__search .dgwt-wcas-search-submit {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 58px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 7px 7px 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transform: none !important;
}

.lp-header__search .dgwt-wcas-search-submit svg,
.lp-header__search .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
}

.lp-header__search .dgwt-wcas-search-submit path {
    fill: #000000 !important;
}

/* =========================
   BOTÓN WHATSAPP
========================= */
.lp-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ef2b2d;
    color: #ffffff !important;
    padding: 10px 48px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.lp-header__button:hover,
.lp-header__menu-button:hover {
    opacity: 0.92;
}

.lp-header__wa-icon {
    font-size: 14px;
}

/* =========================
   DROPDOWN MENÚ (ESCRITORIO)
========================= */
.lp-header__dropdown {
    display: none;
    position: absolute;
    left: 230px;
    top: 100%;
    width: 310px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    z-index: 1000;
}

.lp-header__dropdown.is-open {
    display: block;
}

.lp-header__dropdown-inner {
    display: flex;
    flex-direction: column;
    padding: 18px 0;
}

/* Ocultar elementos mobile en escritorio */
.lp-header__mobile-only {
    display: none;
}

.lp-header__dropdown-inner a {
    display: block;
    padding: 9px 28px;
    color: #111111 !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.35;
}

.lp-header__dropdown-inner a:hover {
    color: #ef2b2d !important;
    background: #f7f7f7;
}

/* =========================
   RESPONSIVE (OVERLAY MÓVIL)
========================= */
@media (max-width: 1024px) {
    .lp-header__inner {
        grid-template-columns: 120px auto;
        gap: 16px;
        padding: 18px 20px;
    }

    .lp-header__search {
        grid-column: 1 / -1;
        order: 3;
        max-width: 100%;
    }

    .lp-header__button {
        display: none;
    }

    /* Transformación a menú pantalla completa oscuro */
    .lp-header__dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #111111;
        z-index: 99999;
        overflow-y: auto;
        border-radius: 0;
    }

    .lp-header__dropdown-inner {
        padding: 0 24px 40px 24px;
    }

    /* Activar cabecera móvil con Flexbox */
    .lp-header__mobile-only {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 24px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 15px;
    }

    .lp-header__dropdown-logo {
        display: flex;
        align-items: center;
    }

    .lp-header__dropdown-logo .lp-header__logo-img {
        width: 105px;
        height: auto;
    }

    /* Botón cerrar X */
    .lp-header__close-button {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 28px;
        font-weight: 300;
        cursor: pointer;
        line-height: 1;
        padding: 5px;
    }

    /* Estilos de links oscuros para móviles */
    .lp-header__dropdown-inner a {
        color: #ffffff !important;
        font-size: 17px;
        font-weight: 400;
        padding: 16px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        text-align: left;
    }

    .lp-header__dropdown-inner a:hover {
        color: #ef2b2d !important;
        background: transparent;
    }
}

@media (max-width: 520px) {
    .lp-header__inner {
        grid-template-columns: 1fr auto;
    }

    .lp-header__logo-img {
        width: 100px;
    }

    .lp-header__menu-button {
        padding: 12px 18px;
        font-size: 14px;
    }

    .lp-header__search .dgwt-wcas-search-input {
        font-size: 13px !important;
    }
}

/* =========================
   FOOTER
========================= */
.lp-footer {
    width: 100%;
    background: #111111;
    color: #ffffff;
    border-radius: 36px 36px 0 0;
    position: relative;
    z-index: 3;
    margin-top: -36px;
    overflow: hidden;
}

.lp-footer__inner {
    margin-left: 70px;
    margin-right: 70px;
    padding: 48px 0 38px;

    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) 0.8fr 1fr;
    gap: 80px;
    align-items: start;
}

/* =========================
   MARCA
========================= */
.lp-footer__brand {
    max-width: 330px;
}

.lp-footer__logo {
    display: inline-flex;
    margin-bottom: 18px;
}

.lp-footer__logo img {
    width: 130px;
    height: auto;
    display: block;
}

.lp-footer__description {
    margin: 0 0 22px;

    color: #ffffff;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 400;
}

/* =========================
   REDES SOCIALES
========================= */
.lp-footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-footer__social a {
    width: 44px;
    height: 44px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;

    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;

    color: #ffffff !important;
    text-decoration: none !important;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* SVG generales */
.lp-footer__social svg {
    width: 21px;
    height: 21px;

    display: block;

    fill: #ffffff !important;
    stroke: none !important;
}

/* Facebook ligeramente más grande */
.lp-footer__social a:nth-child(2) svg {
    width: 24px;
    height: 24px;
}

/* Hover */
.lp-footer__social a:hover,
.lp-footer__social a:focus,
.lp-footer__social a:active {
    background: #ef2b2d !important;
    border-color: #ef2b2d !important;

    color: #ffffff !important;

    transform: translateY(-2px);

    outline: none !important;
    box-shadow: none !important;
}

/* Mantener íconos blancos */
.lp-footer__social a:hover svg,
.lp-footer__social a:focus svg,
.lp-footer__social a:active svg {
    fill: #ffffff !important;
    stroke: none !important;
}

/* =========================
   COLUMNAS
========================= */
.lp-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lp-footer__title {
    margin: 0 0 18px;

    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.lp-footer__column a {
    margin-bottom: 15px;

    color: #d7d7d7 !important;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;

    text-decoration: none !important;
}

.lp-footer__column a:last-child {
    margin-bottom: 0;
}

.lp-footer__column a:hover {
    color: #ef2b2d !important;
}

/* =========================
   PARTE INFERIOR
========================= */
.lp-footer__bottom {
    margin-left: 50px;
    margin-right: 50px;

    padding: 14px 0 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.55);

    text-align: center;
}

.lp-footer__bottom p {
    margin: 0 0 5px;

    color: #c7c7c7;
    font-size: 10px;
    line-height: 1.35;
}

.lp-footer__bottom p:last-child {
    margin-bottom: 0;
}

.lp-footer__bottom a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.lp-footer__bottom a:hover {
    color: #ef2b2d !important;
}

/* =========================
   FOOTER TABLET
========================= */
@media (max-width: 900px) {

    .lp-footer__inner {
        margin-left: 30px;
        margin-right: 30px;

        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 40px;

        padding-top: 42px;
    }
}

/* =========================
   FOOTER MOBILE
========================= */
@media (max-width: 620px) {

    .lp-footer {
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
    }

    .lp-footer__inner {
        margin-left: 24px;
        margin-right: 24px;

        padding: 34px 0 28px;

        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lp-footer__brand {
        max-width: 100%;
    }

    .lp-footer__logo {
        margin-bottom: 17px;
    }

    .lp-footer__logo img {
        width: 125px;
    }

    .lp-footer__description {
        max-width: 300px;

        font-size: 12px;
        line-height: 1.55;

        margin-bottom: 20px;
    }

    /* Redes mobile */
    .lp-footer__social {
        gap: 10px;
    }

    .lp-footer__social a {
        width: 42px;
        height: 42px;
    }

    .lp-footer__social svg {
        width: 20px;
        height: 20px;
    }

    .lp-footer__social a:nth-child(2) svg {
        width: 23px;
        height: 23px;
    }

   .lp-footer__title {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .lp-footer__column a {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .lp-footer__bottom {
        margin-left: 24px;
        margin-right: 24px;

        padding: 13px 0 20px;
    }

    .lp-footer__bottom p {
        font-size: 9px;
    }
}