/*
Theme Name: Solintex Theme
Theme URI: https://www.solintexbalear.com
Author: Solintex
Description: Theme propio optimizado para SEO
Version: 1.0
Text Domain: solintex-theme
*/
/* Estilos base */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
    padding-top: 0 !important;
}

a {
    color: #3273dc;
    text-decoration: none;
    transition: color 0.3s;
}

h1, h2, h3 {
    font-weight: 700;
}

/* Header */
.site-header {
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 9999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo a {
    font-weight: bold;
    font-size: 22px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

/* Menú Principal */
.menu-principal ul.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-principal ul.menu > li {
    position: relative;
    padding: 0 15px;
    font-size: 15px;
    white-space: nowrap;
}

.menu-principal ul.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color .3s ease;
}

.menu-principal ul.menu li::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.menu-principal ul.menu li:last-child::before {
    display: none;
}

/* Línea vertical resaltada al hacer hover */
.menu-principal ul.menu li:hover::before,
.menu-principal ul.menu li.current-menu-item::before {
    background-color: #7c5539;
}

/* Línea inferior horizontal desde izquierda hasta 3/4 de ancho */
.menu-principal ul.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #007bff;
    transition: width .3s ease;
}

.menu-principal ul.menu li a:hover::after,
.menu-principal ul.menu li.current-menu-item > a::after {
    width: 65%; /* 3/4 del ancho */
}

/* Temáticas específicas */
.menu-principal ul.menu li.electricidad a::after,
.menu-principal ul.menu li.antenas a::after,
.menu-principal ul.menu li.porteros-automaticos a::after {
    background-color: #dc3545;
}

/* Botón de llamada */
.header-phone .call-button {
    background-color: #7c5539;
    color: #fff;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s ease;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.header-phone .call-button:hover {
    background-color: #5a3f2b;
}

/* Submenús */
.menu-principal ul.sub-menu,
.menu-principal ul.sub-menu li {
    list-style: none !important;
}

.menu-principal ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    min-width: 200px;
    z-index: 1000;
}

.menu-principal ul.menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-principal ul.sub-menu li {
    padding: 5px 15px;
    text-align: left;
    white-space: nowrap;
}

.menu-principal ul.sub-menu li a {
    color: #555;
    padding: 6px;
    display: block;
    transition: background-color 0.3s;
}

.menu-principal ul.sub-menu li a:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Encabezados de página */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.header-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}

.header-description {
    font-size: 18px;
    margin-bottom: 25px;
}

.header-btn {
    background-color: #f89404;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
}

.header-btn:hover {
    background-color: #a57046;
}

/* Plantilla interna personalizada */
.page-content-custom {
    max-width: 1200px;
    margin: 120px auto 50px auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.page-content-custom h1 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 36px;
    position: relative;
}

.page-content-custom .linea-encabezado {
    width: 75%;
    height: 2px;
    background-color: #7c5539;
    margin-bottom: 25px;
}

.page-content-custom .contenido-pagina {
    line-height: 1.8;
    text-align: justify;
}

.page-content-custom .contenido-pagina img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Hero de página interna */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero-description {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Contenedor principal de la página */
.page-content-interno {
    margin-bottom: 60px;
    padding-top: 30px;
}

.page-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Estilos para contenido de texto */
.contenido-pagina {
    margin-bottom: 40px;
    line-height: 1.8;
}

.contenido-pagina h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
}

.contenido-pagina h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 75%;
    height: 2px;
    background-color: #7c5539;
}

.contenido-pagina h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.contenido-pagina h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #7c5539;
}

.contenido-pagina p {
    margin-bottom: 20px;
    text-align: justify;
}

.contenido-pagina ul, 
.contenido-pagina ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.contenido-pagina li {
    margin-bottom: 10px;
}

.contenido-pagina img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contenido-pagina .wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.contenido-pagina .wp-caption-text {
    font-size: 14px;
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 8px;
}

/* Bloques de destacados */
.contenido-pagina blockquote {
    background-color: #f9f9f9;
    border-left: 4px solid #7c5539;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
}

/* Sección CTA */
.cta-section {
    background-color: #f5f5f5;
    padding: 50px 0;
    margin-top: 40px;
}

/* CTA de contacto */
.cta-contacto {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cta-contacto h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.cta-contacto p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #7c5539;
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #5a3f2b;
}

.btn-secondary {
    background-color: #555;
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #333;
}

/* Tablas informativas */
.contenido-pagina table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.contenido-pagina table th {
    background-color: #7c5539;
    color: #fff;
    text-align: left;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.contenido-pagina table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.contenido-pagina table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Elementor */
body.elementor-page .elementor-section.elementor-section-boxed {
    max-width: 1200px;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0 auto;
}

body.elementor-page .elementor-widget-heading .elementor-heading-title {
    text-align: left !important;
    position: relative !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

body.elementor-page .elementor-widget-heading .elementor-heading-title::after {
    content: '';
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 75% !important;
    height: 2px !important;
    background-color: #7c5539 !important;
}

body.elementor-page p {
    text-align: justify !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

body.elementor-page img {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
}

body.elementor-page .elementor-container {
    max-width: 1200px;
    margin: 0 auto;
}

body.elementor-page .elementor-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

body.elementor-page .elementor-button {
    border-radius: 5px;
    padding: 12px 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

/* Ocultar título superior generado por WordPress */
main > h1, 
.page-content-custom > h1,
.page-content-interno > h1 {
    display: none !important;
}

/* Eliminar espacio superior adicional */
main, 
.page-content-custom,
.page-content-interno,
body.elementor-page .elementor-section.elementor-section-boxed {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.elementor-location-single,
.elementor-location-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Clase para imágenes con efecto */
.img-destacada {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.img-destacada:hover {
    transform: translateY(-5px);
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
}

.btn-servicios:hover {
    background-color: #f5f5f5 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    border: 2px solid #f89404 !important;
    color: #f89404 !important;
}

/* ========== ESTILOS PARA LA HOME - SIN INTERFERIR CON EL FOOTER ========== */

/* Body de la home con flexbox para posicionar footer abajo */
body.home {
    background-color: #222 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Contenido principal de la home */
body.home .site-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    margin-top: 80px !important;
}

body.home .site-main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hero de la home */
body.home .hero-home {
    height: calc(100vh - 160px) !important;
    min-height: 600px !important;
    margin-bottom: 0 !important;
}

/* IMPORTANTE: No tocar el footer desde aquí - se maneja en footer-styles.css */

/* Responsive */
@media (max-width: 1024px) {
    .header-container, .page-content-custom, .page-content-interno {
        padding: 0 30px !important;
    }

    .menu-principal ul.menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    body, html {
        overflow-x: hidden !important;
    }

    .site-header, 
    .header-container, 
    .page-content-custom, 
    .page-content-interno, 
    .elementor-section.elementor-section-boxed, 
    .elementor-container, 
    .elementor-column-gap-default, 
    .contenido-pagina, 
    .page-hero-content {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
    }

    img, .elementor-widget-image img {
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .elementor-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        padding: 10px 0;
        position: relative;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px !important;
    }

    .logo a {
        font-size: 20px;
    }

    .menu-principal ul.menu {
        display: none;
        flex-direction: column;
        position: absolute;
        width: 100%;
        background: #fff;
        top: 60px;
        left: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        z-index: 999;
    }

    .menu-principal ul.menu li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .menu-toggle {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        color: #333;
        z-index: 1000;
    }

    .menu-principal ul.menu.active {
        display: flex !important;
    }

    .header-phone {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    .header-phone .call-button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .page-header h1,
    .page-hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .contenido-pagina, 
    .page-content-custom, 
    .page-content-interno {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    h1, .page-hero h1, .header-content h1, .elementor-heading-title.elementor-size-default {
        font-size: 26px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    h2 {
        font-size: 22px !important;
        line-height: 1.4 !important;
        margin-top: 30px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-top: 25px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .header-phone .call-button, 
    .cta-buttons .btn-primary, 
    .cta-buttons .btn-secondary, 
    .elementor-button {
        width: 100% !important;
        text-align: center !important;
    }

    /* Responsive para la home */
    body.home .site-content {
        margin-top: 60px !important;
    }
    
    body.home .hero-home {
        height: calc(100vh - 120px) !important;
        min-height: 500px !important;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 18px !important;
    }

    .page-hero h1 {
        font-size: 22px !important;
    }

    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .cta-contacto {
        padding: 20px 15px !important;
    }

    body.home .hero-home {
        height: calc(100vh - 100px) !important;
        min-height: 400px !important;
    }
    .site-footer p,
  .site-footer .footer-info p {
    font-size: inherit !important;
    line-height: 1.3 !important;
}
}

/* Ajustes para alineación del logo con el menú */
@media (min-width: 769px) {
    .header-container {
        align-items: flex-end;
    }
    
    .logo img {
        max-height: 60px;
        width: auto;
        display: block;
    }
    
    .menu-principal {
        margin-bottom: 0;
    }
    
    .menu-principal ul.menu {
        margin-bottom: 0;
    }
}
/* Botón CTA de la homepage - texto blanco */
.btn-cta {
    color: #ffffff !important;
}

.btn-cta:hover {
    color: #ffffff !important;
}
/* ====== Servicios – iconos responsive (solo en la sección) ====== */

/* Fuerza mostrar los SVG en esa sección por si otra regla los oculta */
.reformas-servicios .servicio-item .icon-svg { 
  display: block !important; 
}

/* Móvil / tablet pequeña ≤ 767px */
@media (max-width: 767px){
  .reformas-servicios .servicio-item { 
    padding: 18px 10px !important; 
  }
  .reformas-servicios .servicio-icon{
    width: 76px !important;
    height: 76px !important;
    padding: 16px !important;      /* colchón interno del círculo */
  }
  .reformas-servicios .servicio-item .icon-svg{
    width: 36px !important;
    height: 36px !important;
  }
  .reformas-servicios .servicio-item h3{
    font-size: 16px !important;
    margin-top: 6px !important;
    line-height: 1.2 !important;
  }
}

/* Móvil pequeño ≤ 480px (un poco más grandes aún) */
@media (max-width: 480px){
  .reformas-servicios .servicio-icon{
    width: 84px !important;
    height: 84px !important;
    padding: 18px !important;
  }
  .reformas-servicios .servicio-item .icon-svg{
    width: 44px !important;
    height: 44px !important;
  }
  /* Si usabas un fallback, ocúltalo en esta sección */
  .reformas-servicios .icon-fallback{ 
    display: none !important; 
  }
}
/* ====== POR QUÉ CONFIAR – forzar visibilidad de SVG y tamaños en móvil ====== */
.reformas-porque .porque-item .icon-svg{
  display:block !important;                 /* anula el display:none global */
  width:42px !important;
  height:42px !important;
  color:#ee9600 !important;
}

/* circulito de fondo para dar presencia al icono */
.reformas-porque .porque-icon{
  width:68px !important;
  height:68px !important;
  border-radius:50% !important;
  background:rgba(238,150,0,.10) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* por si existiera un fallback */
.reformas-porque .icon-fallback{ display:none !important; }

/* — tablet/móvil ≤ 767px: un pelín más grandes */
@media (max-width:767px){
  .reformas-porque .porque-item{
    gap:12px !important;
  }
  .reformas-porque .porque-icon{
    width:76px !important;
    height:76px !important;
  }
  .reformas-porque .porque-item .icon-svg{
    width:46px !important;
    height:46px !important;
  }
}

/* — móvil pequeño ≤ 480px: más legibles todavía */
@media (max-width:480px){
  .reformas-porque .porque-item{
    flex-direction:row !important;        /* icono + texto en fila */
    align-items:center !important;
    text-align:left !important;
  }
  .reformas-porque .porque-icon{
    width:84px !important;
    height:84px !important;
  }
  .reformas-porque .porque-item .icon-svg{
    width:52px !important;
    height:52px !important;
  }
}
/* ========== FIX UNIVERSAL ICONOS EN PÁGINAS INTERNAS (MÓVIL) ========== */
/* Fuerza que los SVG se muestren en todas las secciones de iconos */
@media (max-width: 767px){
  /* Servicios (cualquier interna) */
  .servicios-iconos-row .icon-svg,
  .servicio-item .icon-svg,
  .reformas-servicios .icon-svg,
  .construcciones-servicios .icon-svg,
  /* Por qué confiar en nosotros */
  .porque-items .icon-svg,
  .porque-item .icon-svg,
  .reformas-porque .icon-svg,
  .construcciones-porque .icon-svg {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
  }

  .servicio-icon,
  .porque-icon {
    width: 76px !important;
    height: 76px !important;
    padding: 16px !important;
  }

  .servicio-item h3,
  .porque-item h3 {
    font-size: 16px !important;
    margin-top: 6px !important;
    line-height: 1.2 !important;
  }
}

/* Móvil pequeño: un poco más grandes para legibilidad */
@media (max-width: 480px){
  .servicios-iconos-row .icon-svg,
  .servicio-item .icon-svg,
  .porque-items .icon-svg,
  .porque-item .icon-svg {
    display: block !important;            /* anula el "display:none" inline */
    width: 44px !important;
    height: 44px !important;
  }

  .servicio-icon,
  .porque-icon {
    width: 84px !important;
    height: 84px !important;
    padding: 18px !important;
  }

  /* Si existiera algún fallback a PNG/texto, que no aparezca en móvil */
  .icon-fallback { display: none !important; }
}
.hidden-seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


