/*
Theme Name: Flatsome Child - Instalaciones y Montajes
Description: Tema hijo oficial de Flatsome para Instalaciones y Montajes (UX Builder + SEO/SEM/AEO Dinámico).
Author: Salto Digital SpA
Template: flatsome
Version: 3.16.1
Text Domain: flatsome
*/

/* Garantizar contraste oscuro legible dentro de tarjetas blancas incluso dentro de secciones oscuras/azules */
.col-inner[style*="255, 255, 255"],
.col-inner[style*="255,255,255"],
.col-inner[style*="#fff"],
.col-inner[style*="#ffffff"] {
    color: #334155 !important;
}

.col-inner[style*="255, 255, 255"] h1,
.col-inner[style*="255, 255, 255"] h2,
.col-inner[style*="255, 255, 255"] h3,
.col-inner[style*="255, 255, 255"] h4,
.col-inner[style*="255, 255, 255"] h5,
.col-inner[style*="255, 255, 255"] h6,
.col-inner[style*="255,255,255"] h1,
.col-inner[style*="255,255,255"] h2,
.col-inner[style*="255,255,255"] h3,
.col-inner[style*="255,255,255"] h4,
.col-inner[style*="255,255,255"] h5,
.col-inner[style*="255,255,255"] h6 {
    color: #0f172a !important;
}

.col-inner[style*="255, 255, 255"] p,
.col-inner[style*="255, 255, 255"] li,
.col-inner[style*="255,255,255"] p,
.col-inner[style*="255,255,255"] li {
    color: #334155 !important;
}

/* Mejorar legibilidad de acordeones FAQ en todas las páginas */
.accordion .accordion-title {
    font-weight: 700;
    color: #0f172a;
}
.accordion .accordion-inner {
    color: #334155;
    line-height: 1.65;
}

/* Optimización responsive para móviles (botones apilados, títulos en banners y barra flotante sin tapar textos) */
/* Ocultar íconos de redes sociales vacíos (href="#") en la barra flotante para dejar solo canales reales (WhatsApp/Teléfono) */
.wpsr-follow-icons .sr-fb-icon a[href="#"],
.wpsr-follow-icons a[href=""],
.wpsr-follow-icons a[href="#"] {
    display: none !important;
}

@media (max-width: 768px) {
    .wpsr-follow-icons.sr-fb-rm {
        top: auto !important;
        bottom: 14px !important;
        right: 12px !important;
        transform: none !important;
    }
}

/* Optimización de Hero Banners y botones para evitar cualquier desborde en todas las resoluciones (Desktop, Laptop 1280/1366px, Tablet y Móvil) */
.hero-service-col h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-top: 6px;
    margin-bottom: 14px;
}
.hero-service-col p.lead {
    font-size: 1.12rem;
    line-height: 1.5;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 22px;
}
.hero-service-col .button {
    margin: 6px 8px !important;
}

@media (max-width: 849px) {
    .hero-service-col h1 {
        font-size: 1.75rem !important;
        line-height: 1.22 !important;
    }
    .hero-service-col p.lead {
        font-size: 1rem !important;
    }
}

@media (max-width: 549px) {
    .hero-service-col h1,
    .banner .text-box h1 {
        font-size: 1.38rem !important;
        line-height: 1.25 !important;
    }
    .hero-service-col p.lead,
    .banner .text-box p.lead {
        font-size: 0.92rem !important;
        line-height: 1.42 !important;
    }
    .hero-service-col .button,
    .banner .text-box .button {
        margin: 5px 4px !important;
        font-size: 0.80rem !important;
    }
    .section-content .button {
        margin-bottom: 8px;
    }
}