/* ==========================================================================
   Raquel Blasco · ajustes de móvil (≤767px)
   Archivo propio del tema hijo, cargado después de Elementor (functions.php).
   Escala única de tipografía, cabeceras de página, Home, listados, pie y menú.
   ========================================================================== */
@media (max-width:767px){

/* ── 1. Escala de títulos ──────────────────────────────────────────────── */
body h1{font-size:44px!important;line-height:1.05!important;letter-spacing:-1px!important}
body h2{font-size:34px!important;line-height:1.1!important;letter-spacing:-.6px!important}
body h3.e-heading-base{font-size:26px!important;line-height:1.15!important;letter-spacing:-.4px!important}
/* Títulos de la lista de Servicios y de las tarjetas de proyecto */
body [data-id^="servicio-h2"]{font-size:26px!important;line-height:1.15!important}
body h2[data-id="pl-title"]{font-size:22px!important;line-height:1.1!important}
/* Subtítulo pequeño dentro de algunos H1 */
body h1 .rb-l2{font-size:.62em}

/* ── 2. Texto ──────────────────────────────────────────────────────────── */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li{font-size:16px!important;line-height:1.65!important}
.elementor-widget-text-editor p:last-child{margin-bottom:0}

/* ── 3. Cabeceras de página interiores: sin hueco vacío debajo ────────── */
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner > .e-con{min-height:0!important;height:auto!important}
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner > .e-con{padding-top:120px!important;padding-bottom:40px!important;justify-content:flex-start!important}
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-text-editor,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-text-editor p{font-size:17px!important}
/* La sección que sigue a la cabecera: menos aire arriba */
body:not(.home) [data-elementor-type="wp-page"] > .e-con:nth-child(2){padding-top:0!important}
body:not(.home) [data-elementor-type="wp-page"] > .e-con:nth-child(2) > .e-con,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:nth-child(2) > .e-con-inner{padding-top:30px!important;margin-top:0!important}

/* ── 4. Textos legales, accesibilidad y mapa del sitio ─────────────────── */
body.page-id-1307 .elementor-widget-text-editor,
body.page-id-1324 .elementor-widget-text-editor,
body.page-id-1331 .elementor-widget-text-editor,
body.page-id-1257 .elementor-widget-text-editor,
body.page-id-1337 .elementor-widget-text-editor{padding:0 20px!important;box-sizing:border-box}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor :is(p,li,span,td){font-size:15px!important;line-height:1.65!important}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor :is(h2,h3,h4,h5,h6){font-size:20px!important;line-height:1.25!important;letter-spacing:0!important;margin:28px 0 10px!important}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor a{font-size:inherit!important;word-break:break-word}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor ul{padding-left:20px}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor table{display:block;overflow-x:auto;max-width:100%}

/* Tabla de cookies: cada cookie en un bloque apilado */
body.page-id-1331 [data-elementor-type="wp-page"] table,
body.page-id-1331 [data-elementor-type="wp-page"] tbody,
body.page-id-1331 [data-elementor-type="wp-page"] tr,
body.page-id-1331 [data-elementor-type="wp-page"] td{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box}
body.page-id-1331 [data-elementor-type="wp-page"] thead{display:none!important}
body.page-id-1331 [data-elementor-type="wp-page"] tr{border:1px solid #2a2a2a!important;margin-bottom:10px;padding:10px 12px;max-width:100%!important}
body.page-id-1331 details.cmplz-category{margin-left:20px!important;margin-right:20px!important;width:auto!important}
body.page-id-1331 [data-elementor-type="wp-page"] td{white-space:normal!important;overflow-wrap:anywhere;border:0!important;padding:2px 0!important;font-size:14px!important;line-height:1.5!important}
body.page-id-1331 [data-elementor-type="wp-page"] td:first-child{color:#fff;font-size:15px!important;word-break:break-word}
/* Accesibilidad: el título con margen lateral */
body.page-id-1257 [data-elementor-type="wp-page"] .elementor-widget-heading{padding:0 20px!important;box-sizing:border-box}
/* Mapa del sitio y página de reserva */
body.page-id-1337 [data-elementor-type="wp-page"] .elementor-widget:not(.elementor-widget-heading){padding:0 20px!important;box-sizing:border-box}
body.page-id-1337 [data-elementor-type="wp-page"] .elementor-widget-heading{padding:0 20px!important}
[data-elementor-type="wp-page"] h6.elementor-heading-title{font-size:20px!important;line-height:1.2!important;margin-top:30px!important}

/* ── 5. Home ───────────────────────────────────────────────────────────── */
/* 5.1 Portada: todo centrado, sin el monograma */
.home [data-id="a191114"]{display:none!important}
.home [data-id="65ca3d68"] .e-con{align-items:center!important;justify-content:center!important;padding-left:0!important;padding-right:0!important;height:auto!important;min-height:0!important}
.home [data-id="d063ddb"],.home [data-id="981c732"]{flex-direction:column!important;width:100%!important;gap:0!important}
.home [data-id="14a525f"],.home [data-id="b1e7ee0"]{width:100%!important;max-width:100%!important;position:static!important;margin:0!important;transform:none!important}
.home [data-id="14a525f"] h1,.home [data-id="b1e7ee0"] h1{font-size:40px!important;line-height:1.1!important;text-align:center!important}
.home [data-id="e9e9e02"]{position:static!important;margin:18px auto 0!important;transform:none!important;width:auto!important}
.home [data-id="e9e9e02"] img{max-height:70px;width:auto}
.home [data-id="1463656"]{padding:20px 0 0!important}
.home [data-id="1463656"],.home [data-id="1463656"] p{font-size:17px!important}
/* 5.2 Títulos en dos partes («Ambientes…», «Servicios destacados»…): centrados */
.home .e-con:has(> .elementor-widget-heading h2){align-items:center!important}
.home .elementor-widget-heading:has(h2){width:100%!important;max-width:100%!important}
.home .elementor-widget-heading h2{text-align:center!important}
/* Menos aire entre secciones */
.home [data-id="44139584"],.home [data-id="7578703c"]{display:none!important}
.home [data-id="6f553daa"],.home [data-id="8dc26d8"],.home [data-id="1419d76c"]{min-height:0!important;height:auto!important}
.home [data-id="1419d76c"]{flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;padding-top:150px!important;padding-bottom:90px!important}
.home [data-id="1419d76c"] > .e-con{width:100%!important;max-width:100%!important}
.home [data-id="62101a43"]{flex-direction:column!important;padding-top:24px!important;height:auto!important}
.home [data-id="e4c6408"]{position:static!important;inset:auto!important;transform:none!important;width:100%!important;justify-content:center!important}
.home [data-id="65ca3d68"]{height:auto!important;min-height:0!important}
.home [data-id="29faef37"]{padding-bottom:0!important}
.home [data-id="2b9a7247"] > .e-con-inner{padding-top:60px!important;padding-bottom:30px!important}
.home [data-id="15426483"] > .e-con-inner,.home [data-id="19bac779"] > .e-con-inner{padding-bottom:50px!important}
.home [data-id="73da7f1"]{padding-bottom:30px!important}
.home [data-id="0946908"]{padding-top:50px!important;padding-bottom:40px!important}
.home [data-id="717af80c"]{padding-bottom:50px!important}
.home [data-id="rbfirma1"]{margin:20px 0!important}
.home [data-id="d12aacf"]{min-height:440px!important}
/* 5.3 Texto de presentación */
.home [data-id="23917926"],.home [data-id="23917926"] p,
.home [data-id="8081a88"],.home [data-id="8081a88"] p{font-size:18px!important;line-height:1.6!important}
/* 5.4 Proyectos destacados: dos columnas, en orden 1-6 */
[data-id="717af80c"]{display:grid!important;grid-template-columns:1fr 1fr;column-gap:14px;row-gap:0}
[data-id="528ae01"],[data-id="d36ba85"],[data-id="77d5274"]{display:contents!important}
[data-id="717af80c"] .elementor-widget-image{margin:0!important;width:100%!important}
[data-id="717af80c"] .elementor-widget-image img{width:100%!important;height:auto!important;aspect-ratio:4/5;object-fit:cover}
[data-id="717af80c"] .elementor-widget-heading{margin:8px 0 22px!important;width:100%!important}
[data-id="717af80c"] .elementor-widget-heading :is(p,h5){font-size:16px!important}
[data-id="6d5dcf3"]{order:1!important}[data-id="e3fcfa2"]{order:2!important}
[data-id="9a30be1"]{order:3!important}[data-id="1f11f96"]{order:4!important}
[data-id="8f280a7"]{order:5!important}[data-id="76e661a"]{order:6!important}
[data-id="9255fb6"]{order:7!important}[data-id="c788bf7"]{order:8!important}
[data-id="0b10637"]{order:9!important}[data-id="bef8326"]{order:10!important}
[data-id="e9f93d3"]{order:11!important}[data-id="fe03147"]{order:12!important}

/* ── 6. Listado de proyectos: dos columnas ─────────────────────────────── */
[data-id="pa-grid"] .elementor-grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
[data-id="pa-grid"] .rb-proy-card{min-height:0!important;height:auto!important;aspect-ratio:auto!important}
[data-id="pa-grid"] .rb-proy-media{height:auto!important;min-height:0!important;aspect-ratio:1/1!important}
[data-id="pa-grid"] .rb-proy-img{width:100%!important;height:100%!important;object-fit:cover}
[data-id="pa-grid"] .rb-proy-body{padding:14px 12px!important;gap:4px!important}
[data-id="pa-grid"] .rb-proy-meta{flex-direction:column!important;align-items:flex-start!important;gap:2px!important}
[data-id="pa-grid"] .rb-proy-line,[data-id="pa-grid"] [data-id="pl-lugar"]{display:none!important}
[data-id="pa-grid"] .rb-kicker{font-size:9px!important;letter-spacing:1.5px!important;line-height:1.3!important}
[data-id="pa-grid"] .rb-proy-card :is(.rb-proy-cta,[data-id="pl-cta"],[data-id="pl-link"]){display:none!important}

/* ── 7. Galería de la ficha de proyecto: dos columnas ──────────────────── */
[data-id="galeria-fotos"] .e-gallery-grid{--columns:2!important;--hgap:8px!important;--vgap:8px!important}

/* ── 8. Pie ────────────────────────────────────────────────────────────── */
[data-id="7c0d019b"] > .e-con-inner{padding-top:44px!important;padding-bottom:20px!important}
[data-id="6d71347d"]{margin-top:0!important}
[data-id="8d2e62a"] > .e-con-inner{padding-top:30px!important;padding-bottom:30px!important}
[data-id="52dc750d"]{width:100%!important;margin:0 0 6px!important;text-align:center}
[data-id="52dc750d"] img{display:block!important;margin:0 auto!important;width:250px!important;max-width:80%!important;height:auto!important}
[data-id="420b0b5c"]{align-items:center!important}
[data-id="6e53a73e"] :is(h5,p,a){font-size:17px!important}
[data-id="420b0b5c"]{padding-bottom:36px!important;gap:14px!important}
[data-id="28fbaa91"]{display:grid!important;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:12px;padding:30px 0!important;border-top:1px solid #1d1d1d;border-bottom:1px solid #1d1d1d}
[data-id="28fbaa91"] > .e-con,[data-id="28fbaa91"] .elementor-widget-icon-list,
[data-id="28fbaa91"] .elementor-widget-container,[data-id="28fbaa91"] ul{display:contents!important}
[data-id="28fbaa91"] li{margin:0!important;padding:0!important}
[data-id="28fbaa91"] li a,[data-id="28fbaa91"] li .elementor-icon-list-text{font-size:14px!important;line-height:1.35!important}
[data-id="73d554ca"]{padding-top:0!important}
[data-id="27b10a73"]{padding-top:24px!important;padding-bottom:30px!important}
[data-id="0b5f39a"] :is(p,h1,h2,h3,h4,h5,h6){font-size:12px!important;line-height:1.5!important;text-align:center!important}
[data-id="83c377a"] img{max-width:100%;height:auto}

/* ── 9. Menú desplegable ───────────────────────────────────────────────── */
[data-id="efda086"]{height:100%!important;min-height:0!important;overflow-y:auto!important;justify-content:flex-start!important;padding:28px 30px 34px!important;box-sizing:border-box}
[data-id="cc1c613"]{width:72px!important;margin:0!important}
[data-id="cc1c613"] img{width:72px!important;height:auto!important}
[data-id="1759348"]{height:auto!important;min-height:0!important;flex-grow:0!important;justify-content:flex-start!important;margin-top:40px!important}
[data-id="1759348"] > .e-con-inner{padding:0!important;justify-content:flex-start!important;min-height:0!important;height:auto!important}
[data-id="49416c7"]{position:static!important;transform:none!important;margin:0!important}
[data-id="af316e0"]{position:static!important;inset:auto!important;transform:none!important;margin-top:40px!important;padding:0!important;width:100%!important}
[data-id="50d2091"]{position:static!important}
[data-id="50d2091"] .elementor-social-icon{font-size:22px!important}
[data-id="50d2091"] .elementor-social-icon svg{width:22px!important;height:22px!important}
}

/* Página de cookies (todas las pantallas): las categorías del panel de consentimiento se leen */
body .cmplz-manage-consent-container .cmplz-category,
body.page-id-1331 details.cmplz-category{background:#141414!important;border:1px solid #2a2a2a}
body.page-id-1331 details.cmplz-category .cmplz-category-title{color:#fff!important}
body.page-id-1331 details.cmplz-category .cmplz-always-active{color:#A99687!important}
body.page-id-1331 details.cmplz-category svg{fill:#fff!important}

/* ==========================================================================
   Tablet (768–1024px)
   ========================================================================== */
@media (min-width:768px) and (max-width:1024px){
/* Textos legales, accesibilidad y mapa del sitio */
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) [data-elementor-type="wp-page"] .elementor-widget-text-editor,
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) [data-elementor-type="wp-page"] .elementor-widget-heading,
body.page-id-1337 [data-elementor-type="wp-page"] .elementor-widget{padding:0 40px!important;box-sizing:border-box}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor :is(p,li,span,td){font-size:16px!important;line-height:1.7!important}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor :is(h2,h3,h4,h5,h6){font-size:22px!important;line-height:1.25!important;letter-spacing:0!important;margin:30px 0 10px!important}
body:is(.page-id-1307,.page-id-1324,.page-id-1331,.page-id-1257,.page-id-1337) .elementor-widget-text-editor a{font-size:inherit!important}
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner > .e-con{min-height:0!important;height:auto!important}
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner > .e-con{padding-top:150px!important;padding-bottom:60px!important}
body:not(.home) [data-elementor-type="wp-page"] > .e-con:nth-child(2) > .e-con,
body:not(.home) [data-elementor-type="wp-page"] > .e-con:nth-child(2) > .e-con-inner{padding-top:40px!important}

/* Home: portada centrada, sin el monograma */
.home [data-id="a191114"]{display:none!important}
.home [data-id="1419d76c"]{flex-direction:column!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important}
.home [data-id="1419d76c"] > .e-con{width:100%!important;max-width:100%!important}
.home [data-id="65ca3d68"],.home [data-id="65ca3d68"] .e-con{align-items:center!important;justify-content:center!important;padding-left:0!important;padding-right:0!important;height:auto!important;min-height:0!important}
.home [data-id="65ca3d68"]{flex-direction:column!important;width:100%!important}
.home [data-id="d063ddb"],.home [data-id="981c732"]{flex-direction:column!important;width:100%!important;gap:0!important}
.home [data-id="14a525f"],.home [data-id="b1e7ee0"]{width:100%!important;max-width:100%!important;position:static!important;margin:0!important;transform:none!important}
.home [data-id="14a525f"] h1,.home [data-id="b1e7ee0"] h1{font-size:60px!important;line-height:1.1!important;text-align:center!important;letter-spacing:-1px!important}
.home [data-id="e9e9e02"]{position:static!important;margin:24px auto 0!important;transform:none!important;width:auto!important}
.home [data-id="e9e9e02"] img{max-height:80px;width:auto}
.home [data-id="62101a43"],.home [data-id="e4c6408"]{width:100%!important;max-width:100%!important;align-items:center!important}
.home [data-id="1463656"]{max-width:520px;margin:0 auto!important;padding:24px 0 0!important}
.home [data-id="1463656"],.home [data-id="1463656"] p{text-align:center!important;font-size:19px!important;line-height:1.6!important}
/* Home: servicios destacados en 2 × 2 */
.home [data-id="54b7b0b6"]{flex-wrap:wrap!important;row-gap:50px!important}
.home [data-id="54b7b0b6"] > .e-con{width:calc(50% - 15px)!important;max-width:calc(50% - 15px)!important;flex:0 0 calc(50% - 15px)!important}
.home [data-id="54b7b0b6"] .elementor-widget-text-editor,.home [data-id="54b7b0b6"] .elementor-widget-text-editor p{font-size:16px!important;line-height:1.6!important}

/* Pie: marca centrada y enlaces en tres columnas */
[data-id="6d71347d"]{flex-direction:column!important;align-items:stretch!important}
[data-id="420b0b5c"]{width:100%!important;max-width:100%!important;align-items:center!important;padding-bottom:36px!important;gap:14px!important}
[data-id="420b0b5c"] .elementor-widget{text-align:center!important}
[data-id="420b0b5c"] .elementor-social-icons-wrapper{justify-content:center!important}
[data-id="25acec41"],[data-id="5f573605"],[data-id="73d554ca"]{width:100%!important;max-width:100%!important}
[data-id="28fbaa91"]{display:grid!important;grid-template-columns:repeat(3,1fr);column-gap:24px;row-gap:12px;padding:30px 0!important;border-top:1px solid #1d1d1d;border-bottom:1px solid #1d1d1d;width:100%!important}
[data-id="28fbaa91"] > .e-con,[data-id="28fbaa91"] .elementor-widget-icon-list,
[data-id="28fbaa91"] .elementor-widget-container,[data-id="28fbaa91"] ul{display:contents!important}
[data-id="28fbaa91"] li{margin:0!important;padding:0!important}
[data-id="28fbaa91"] li a,[data-id="28fbaa91"] li .elementor-icon-list-text{font-size:15px!important;line-height:1.35!important}
[data-id="73d554ca"]{padding-top:0!important}
[data-id="27b10a73"]{padding-top:24px!important}
[data-id="0b5f39a"] :is(p,h1,h2,h3,h4,h5,h6){font-size:13px!important;text-align:center!important}

/* Menú desplegable: el menú arriba y las redes a la vista */
[data-id="efda086"]{height:100%!important;overflow-y:auto!important;justify-content:flex-start!important}
[data-id="1759348"]{height:auto!important;min-height:0!important;flex-grow:0!important;margin-top:60px!important}
[data-id="1759348"] > .e-con-inner{padding:0!important;justify-content:flex-start!important;min-height:0!important;height:auto!important}
[data-id="af316e0"]{position:static!important;inset:auto!important;transform:none!important;margin-top:50px!important}
}
