/* CustomerControl — ajustes de marca (carga después del tema) */

/* Hero: sin clase .sec-title — el tema aplica SplitType+GSAP a .sec-title y rompe el texto (i18n, NBSP). */
.seelight-hero-title {
    overflow-wrap: break-word;
    hyphens: manual;
}

/*
 * Subpaginas legales: en header-style2 forzamos cabecera clara para mejor lectura.
 */
body.seelight-subpage .tv-header.header-style2 {
    position: relative;
    background: #fff;
}

body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu a,
body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu > ul > li > a {
    color: var(--dark-color, #0b1220);
}

body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu a:hover,
body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu .active a,
body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu > ul > li > a:hover {
    color: var(--theme-color);
}

body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu > ul > li.menu-item-has-children > a::before,
body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu > ul > li.menu-item-has-children:hover > a::before,
body.seelight-subpage .tv-header.header-style2 .main-wrapper .main-menu > ul > li.menu-item-has-children.active > a::before {
    color: var(--dark-color, #0b1220);
}

/* Hero: el tema pone un ::before con degradado a transparente (azul a la izquierda, imagen cruda/blanca a la derecha) */
#hero.tv-hero-section.style-6.seelight-hero {
    background-color: #050f4f;
}

#hero.tv-hero-section.style-6 .hero-inner .hero-slider-2 .hero-area::before {
    background-image: none;
    background-color: rgba(6, 17, 83, 0.82);
}

@media (max-width: 767px) {
    #hero.tv-hero-section.style-6 .hero-inner .hero-slider-2 .hero-area::before {
        background-image: none;
        background-color: rgba(5, 17, 83, 0.85);
    }
}

/* Evita que la animación pageTurn deje el fondo en opacity:0 al cargar / entre slides */
#hero.tv-hero-section.style-6 .pageTurn .bg.image,
#hero.tv-hero-section.style-6 .pageTurn.swiper-slide-active .bg.image {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/*
 * Hero: el tema oculta .hero-content hasta .swiper-slide-active y añade delays de hasta 1.8s.
 * Hasta que Swiper añade swiper-initialized, el primer slide no tenía clase active → texto invisible (malo para LCP / crawlers).
 */
#hero.seelight-hero .hero-slider-2:not(.swiper-initialized) .swiper-slide:first-child .hero-content > * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition-delay: 0s !important;
}

/* Tras init: animación más breve y sin esperas largas en el slide activo */
#hero.seelight-hero .hero-slider-2.swiper-initialized .swiper-slide-active .hero-content > * {
    transition-duration: 0.35s;
}

#hero.seelight-hero .hero-slider-2.swiper-initialized .swiper-slide-active .hero-content .sub-title,
#hero.seelight-hero .hero-slider-2.swiper-initialized .swiper-slide-active .hero-content .hero-title,
#hero.seelight-hero .hero-slider-2.swiper-initialized .swiper-slide-active .hero-content .text-icon,
#hero.seelight-hero .hero-slider-2.swiper-initialized .swiper-slide-active .hero-content .hero-user {
    transition-delay: 0s !important;
}

/* El tema oculta img:last-child en .header-logo; con UNA sola imagen es :last-child y desaparece en desktop */
.tv-header .menu-area .header-logo.seelight-logo a img:only-child,
.sticky-header .menu-area .header-logo.seelight-logo a img:only-child {
    display: block !important;
}

.seelight-logo img {
    height: 96px !important;
    width: auto !important;
    max-width: min(280px, 52vw);
    object-fit: contain;
}

@media (max-width: 991px) {
    .seelight-logo img {
        height: 70px !important;
        max-width: min(220px, 48vw);
    }
}

/* Logo pie de página (más grande) */
.seelight-footer-logo img {
    height: 120px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 575px) {
    .seelight-footer-logo img {
        height: 100px !important;
    }
}

/* Redes en pie: iconos más grandes */
.footer-section .footer-brand .social-links a.social-icon {
    width: 52px !important;
    height: 52px !important;
    line-height: 52px !important;
    font-size: 1.25rem !important;
}

.footer-section .footer-brand .social-links a.social-icon i {
    font-size: 1.35rem !important;
    line-height: 52px !important;
    vertical-align: middle;
}

.footer-section .footer-brand .social-links a.social-icon + a.social-icon {
    margin-left: 14px;
}

/* Menú móvil: redes más visibles */
.mobile-menu-area .social-links li a {
    line-height: 62px !important;
    height: 62px !important;
    font-size: 1.35rem !important;
}

.mobile-menu-area .seelight-mobile-logo img {
    height: 76px !important;
    width: auto !important;
    max-width: 85%;
    object-fit: contain;
}

.seelight-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.brand-item img.client-logo {
    max-height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Selector de idioma en cabecera: estilo visible en tema dark */
.tv-header.header-style2 .lang-switcher .btn-lang,
.sticky-header.fixed-header .lang-switcher .btn-lang {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.25rem;
    cursor: pointer;
}

.tv-header.header-style2 .lang-switcher .btn-lang:hover,
.sticky-header.fixed-header .lang-switcher .btn-lang:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.tv-header.header-style2 .lang-switcher .btn-lang.active,
.sticky-header.fixed-header .lang-switcher .btn-lang.active {
    background: #1053f3;
    color: #fff !important;
    border-color: #1053f3;
}

.sticky-header.fixed-header .lang-switcher .btn-lang {
    color: var(--dark-color, #0b1220);
    border-color: rgba(11, 18, 32, 0.35);
    background: #fff;
}

.sticky-header.fixed-header .lang-switcher .btn-lang:hover {
    background: rgba(16, 83, 243, 0.08);
    border-color: #1053f3;
}

/* Menú móvil (fondo oscuro habitual) */
.mobile-menu-wrapper .lang-switcher .btn-lang {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.25rem;
    cursor: pointer;
}

.mobile-menu-wrapper .lang-switcher .btn-lang.active {
    background: #1053f3;
    color: #fff !important;
    border-color: #1053f3;
}

.mobile-menu-wrapper .lang-switcher .btn-lang:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Carrusel de clientes sobre fondo claro: gradientes laterales suaves */
.seelight-clients-section.tv-brands-section.style-3 .brands-slider-three::before {
    background: linear-gradient(90deg, #f4f6fb 0%, rgba(244, 246, 251, 0) 100%);
}

.seelight-clients-section.tv-brands-section.style-3 .brands-slider-three::after {
    background: linear-gradient(90deg, rgba(244, 246, 251, 0) 0%, #f4f6fb 100%);
}

#contact-status {
    margin-top: 1rem;
    font-weight: 600;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* About: sustituye h6 por párrafo para orden de encabezados (Lighthouse) */
.tv-about-section.style-5 .about-left-box .box-midle .box-midle-title {
    font-size: 18px;
    line-height: 1;
    color: var(--gray-color2);
    font-weight: 500;
    font-family: var(--title-font);
    margin: 10px 0 28px;
}

/* Contacto: Select2 dentro de .contact-form (tarjeta clara) — mismo contraste que inputs */
.tv-contact-section.style-5 .contact-form {
    overflow: visible;
}

.tv-contact-section.style-5 .contact-form .select2-container {
    width: 100% !important;
}

.tv-contact-section.style-5 .contact-form .select2-container--open {
    z-index: 25;
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid var(--bs-border-color8, #d8d8d8) !important;
    border-radius: 10px;
    min-height: 48px;
    padding: 4px 12px;
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-selection--single:focus,
.tv-contact-section.style-5 .contact-form .select2-container--default.select2-container--focus .select2-selection--single {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 83, 243, 0.2);
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--gray-color2, #4a5568) !important;
    line-height: 1.35 !important;
    padding-left: 12px;
    padding-right: 36px;
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--body-color, #6b7280) !important;
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    min-height: 46px;
    right: 10px;
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--gray-color2, #4a5568) transparent transparent transparent !important;
}

.tv-contact-section.style-5 .contact-form .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--gray-color2, #4a5568) transparent !important;
}

/* Lista desplegable anclada al formulario (dropdownParent en seelight.js) */
.tv-contact-section.style-5 .contact-form .select2-dropdown {
    border: 1px solid var(--bs-border-color8, #d8d8d8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11, 18, 32, 0.12);
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 8px;
    border-color: var(--bs-border-color8, #d8d8d8);
    color: var(--dark-color, #0b1220);
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-results__option--selectable {
    color: var(--dark-color, #0b1220);
}

.tv-contact-section.style-5 .contact-form .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #1053f3 !important;
    color: #fff !important;
}

/* reCAPTCHA sobre fondo oscuro */
.seelight-recaptcha {
    display: flex;
    justify-content: flex-start;
}

.seelight-recaptcha .g-recaptcha > div {
    margin: 0;
}

/* Servicios: el tema fija altura del panel (.content) y corta la descripción */
.tv-service-section.style-6 .service-box-six .image-box .content {
    height: auto;
    min-height: 150px;
    max-height: none;
    padding: 24px 28px 20px;
}

.tv-service-section.style-6 .service-box-six:hover .image-box .content,
.tv-service-section.style-6 .service-box-six.current .image-box .content {
    height: auto;
    min-height: 240px;
}

.tv-service-section.style-6 .service-box-six .image-box .content .seelight-service-desc {
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.9rem;
    max-width: 42em;
}

/* Catalogo de productos (home) */
.seelight-product-card {
    display: block;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 1.4rem 1.35rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.seelight-product-card:hover,
.seelight-product-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(16, 83, 243, 0.9);
    background: rgba(16, 83, 243, 0.12);
    color: #fff;
}

.seelight-product-card:focus-visible {
    outline: 2px solid rgba(16, 83, 243, 0.95);
    outline-offset: 3px;
}

.seelight-product-card .seelight-product-area {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.82);
}

.seelight-product-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.seelight-product-card .seelight-product-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.seelight-product-card .seelight-product-title-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
    flex-shrink: 0;
}

.seelight-product-card h4 {
    color: rgba(255, 255, 255, 0.87);
    font-size: 0.96rem;
    margin-bottom: 0.8rem;
}

.seelight-product-card p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

.seelight-product-card .seelight-product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}

/* Pagina de detalle de producto */
.seelight-product-page {
    min-height: 50vh;
}

.seelight-product-card-light,
.seelight-product-meta {
    border: 1px solid rgba(11, 18, 32, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(11, 18, 32, 0.06);
}

.seelight-product-card-light {
    padding: 1.6rem;
}

.seelight-product-card-light .seelight-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #1053f3;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 700;
}

.seelight-product-card-light h1 {
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    margin-bottom: 0.45rem;
    color: var(--dark-color, #0b1220);
}

.seelight-product-card-light h2 {
    font-size: 1.05rem;
    color: #2d3a4d;
    margin-bottom: 1rem;
}

.seelight-product-card-light .seelight-summary {
    color: #36475d;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.seelight-product-modules {
    margin: 0;
    padding-left: 1.2rem;
    color: #33445b;
}

.seelight-product-modules li + li {
    margin-top: 0.45rem;
}

.seelight-product-meta {
    padding: 1.2rem;
}

.seelight-product-meta h3 {
    font-size: 1.02rem;
    color: var(--dark-color, #0b1220);
    margin-bottom: 0.75rem;
}

.seelight-product-meta p {
    margin-bottom: 0.75rem;
    color: #33445b;
}

.seelight-product-meta p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .tv-service-section.style-6 .service-box-six .image-box .content {
        width: 100%;
        border-radius: 0 0 16px 16px;
    }
}

/* About: título del bloque izquierdo — evita apretamiento raro del texto */
.tv-about-section.style-5 .about-left-box .box-midle .box-midle-title {
    line-height: 1.35;
    hyphens: auto;
    overflow-wrap: break-word;
}

.tv-about-section.style-5 .about-left-box .box-midle > p:not(.box-midle-title) {
    line-height: 1.55;
    font-size: 15px;
    color: var(--gray-color2);
}

/* Páginas legales */
.seelight-legal-page {
    min-height: 45vh;
}

.seelight-legal-breadcrumb a {
    color: var(--theme-color, #1053f3);
    text-decoration: none;
    font-weight: 600;
}

.seelight-legal-breadcrumb a:hover {
    text-decoration: underline;
}

.seelight-legal-prose {
    max-width: 48rem;
    color: var(--gray-color2);
    font-size: 1rem;
    line-height: 1.65;
}

.seelight-legal-prose h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color, #0b1220);
}

.seelight-legal-prose p,
.seelight-legal-prose li {
    margin-bottom: 0.75rem;
}

.seelight-legal-prose ul {
    padding-left: 1.25rem;
}

.seelight-legal-table-wrap {
    max-width: 48rem;
}

.seelight-legal-table {
    font-size: 0.9rem;
    vertical-align: top;
    --bs-table-border-color: rgba(11, 18, 32, 0.12);
}

.seelight-legal-table thead th {
    background: rgba(16, 83, 243, 0.08);
    color: var(--dark-color, #0b1220);
    font-weight: 600;
}

.seelight-legal-table td,
.seelight-legal-table th {
    padding: 0.65rem 0.75rem;
}

/* Página 404 */
.seelight-404 {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

.seelight-404-code {
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--theme-color, #1053f3);
    letter-spacing: -0.04em;
    margin-bottom: 0.35rem;
}

.seelight-404 h1 {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    color: var(--dark-color, #0b1220);
    margin-bottom: 0.75rem;
}

.seelight-404 p {
    color: var(--gray-color2);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.seelight-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Modal cookies */
.seelight-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 79, 0.55);
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.seelight-cookie-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.seelight-cookie-modal {
    position: fixed;
    z-index: 10050;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: calc(100% - 2rem);
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.seelight-cookie-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.seelight-cookie-modal h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #0b1220;
}

.seelight-cookie-modal p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3d4a5c;
    margin-bottom: 0.75rem;
}

.seelight-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
}

.seelight-cookie-actions .theme-btn {
    border: none;
    cursor: pointer;
}

@media (max-width: 575px) {
    .seelight-cookie-modal {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: translateY(100%);
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
    }

    .seelight-cookie-modal.is-visible {
        transform: translateY(0);
    }
}

body.seelight-cookie-open {
    overflow: hidden;
}

/*
 * Franja inferior del footer: el tema usa overflow:hidden y los FAB (WhatsApp + scroll-top)
 * quedan fijos en las esquinas y tapaban copyright y enlaces legales.
 */
.footer-section .footer-bottom.seelight-footer-bottom {
    overflow: visible;
    /* Hueco para botón WA (~56px) + scroll-top (~55px) respecto al borde del viewport */
    padding-left: calc(env(safe-area-inset-left, 0px) + 16px + 56px + 14px);
    padding-right: calc(env(safe-area-inset-right, 0px) + 20px + 55px + 14px);
}

@media (max-width: 991px) {
    .footer-section .footer-bottom.seelight-footer-bottom {
        padding-left: calc(env(safe-area-inset-left, 0px) + 14px + 52px + 12px);
        padding-right: calc(env(safe-area-inset-right, 0px) + 20px + 44px + 12px);
    }
}

.footer-section .footer-bottom.seelight-footer-bottom .footer-policy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem 0.35rem;
    row-gap: 0.35rem;
}

.footer-section .footer-bottom.seelight-footer-bottom .footer-policy a {
    margin-right: 0 !important;
    white-space: nowrap;
}

.footer-section .footer-bottom.seelight-footer-bottom .footer-policy a + a::before {
    display: none;
}

@media (min-width: 768px) {
    .footer-section .footer-bottom.seelight-footer-bottom .col-md-4.text-md-end .footer-policy {
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .footer-section .footer-bottom.seelight-footer-bottom .footer-policy {
        justify-content: center;
    }
}

/* Botón fijo WhatsApp: esquina inferior izquierda (scroll-to-top del tema queda a la derecha) */
.seelight-wa-float {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.seelight-wa-float:hover {
    transform: scale(1.06);
    color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.seelight-wa-float:focus-visible {
    outline: 3px solid #1053f3;
    outline-offset: 3px;
}

.seelight-wa-float svg {
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .seelight-wa-float {
        width: 52px;
        height: 52px;
        left: max(14px, env(safe-area-inset-left, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }

    .seelight-wa-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seelight-wa-float {
        transition: none;
    }

    .seelight-wa-float:hover {
        transform: none;
    }
}
