/*
Theme Name: Atticstorage Child
Theme URI: https://atticstorage.co.uk
Template: hello-elementor
Author: We Are PLEH
Author URI: https://wearepleh.com
Description: Child theme for Atticstorage (Rafter Group UK) based on Hello Elementor.
Version: 1.0.2
Updated: 2026-05-26
*/

/* =============================================================
   §-1 RALEWAY VARIABLE — @font-face (canónico Rafter Group)
   ============================================================= */
/* Declarado tanto aquí (style.css externo) como inline en wp_head desde
   functions.php. Razón: en sites con autoptimize activo (storemore prod),
   el inline <style> se filtra fuera del HTML rendered; el bloque CSS de
   archivo externo NO se filtra. Defense-in-depth garantiza que el browser
   tenga la familia Raleway disponible siempre. */
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/wp-content/uploads/2026/03/Raleway-VariableFont_wght.ttf') format('truetype-variations'),
		 url('/wp-content/uploads/2026/03/Raleway-VariableFont_wght.ttf') format('truetype');
}

/* =============================================================
   ATTICSTORAGE CHILD THEME
   =============================================================
   Brand palette (Elementor Global Colors target):
     --e-global-color-primary:        #009999  (Teal)
     --e-global-color-secondary:      #14385F  (Blueberry)
     --e-global-color-text:           #424548  (Gray)
     --e-global-color-accent:         #FF7F32  (Orange)
     --e-global-color-d0d111e:        #FCF3EE  (Cream — background)
     --attic-light-teal:              #A0D1CA  (Light Teal — secondary accent)

   Typography: Raleway Variable (local TTF, mismo enqueue que Storemore).

   Sections:
     §1  Animations (mobile-only — pattern de Storemore)
     §2  Hover/Transform mobile fix
     §3  Typography responsive
     §4  Store Locator (Leaflet map + UK postcode search)
     §5  Opening Hours dropdown (Google Maps style)
     §6  Ubicacion gallery (CSS scroll-snap nativo)
     §7  A11y Swiper pagination (touch target)
   ============================================================= */

/* §1 Animations — disable on mobile only */
@media (max-width: 767px) {
	.elementor-element[data-settings*='_animation'],
	.elementor-element[data-settings*='animation'] {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* §2 Hover/Transform mobile fix */
@media (max-width: 767px) {
	.elementor-element-edit-mode .elementor-widget,
	.elementor-element[class*='e-transform'] {
		transform: none !important;
		transition: none !important;
	}
}

/* §3 Typography responsive */
@media (max-width: 767px) {
	body.single-location h1.elementor-heading-title,
	body.post-type-archive-location h1.elementor-heading-title {
		font-size: 2rem;
		line-height: 1.2;
	}
}

/* =============================================================
   §4 STORE LOCATOR — Leaflet map + UK postcode search
   ============================================================= */

.atticstorage-locator {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 992px) {
	.atticstorage-locator {
		grid-template-columns: 380px 1fr;
	}
	.atticstorage-locator__sidebar {
		max-height: calc(100vh - 200px);
		overflow-y: auto;
	}
	.atticstorage-locator__map {
		position: sticky;
		top: 200px;
		height: calc(100vh - 220px);
		min-height: 500px;
	}
}

.atticstorage-locator__search {
	position: relative;
	margin-bottom: 1rem;
}

.atticstorage-locator__search-input {
	width: 100%;
	padding: 0.75rem 3rem 0.75rem 1rem;
	border: 1px solid #ccc;
	border-radius: 999px;
	font-size: 1rem;
	background: #fff;
}

.atticstorage-locator__search-input:focus {
	outline: 2px solid var(--e-global-color-primary, #009999);
	outline-offset: 2px;
}

.atticstorage-locator__locate-btn {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2rem;
	height: 2rem;
	border: none;
	border-radius: 50%;
	background: var(--e-global-color-primary, #009999);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.atticstorage-locator__suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 0.5rem 0.5rem;
	max-height: 240px;
	overflow-y: auto;
	z-index: 1001;
	display: none;
}

.atticstorage-locator__suggestions.is-open {
	display: block;
}

.atticstorage-locator__suggestion {
	padding: 0.5rem 1rem;
	cursor: pointer;
}

.atticstorage-locator__suggestion:hover,
.atticstorage-locator__suggestion.is-active {
	background: var(--e-global-color-d0d111e, #FCF3EE);
}

/* why isolation: confina los z-index internos de Leaflet (panes 200-700,
   .leaflet-control 1000) en un stacking context propio, evitando que pisen al
   header sticky de Elementor Pro (z-index default 99). Es la recomendación
   canónica de Leaflet para conflictos con headers/modals (FAQ oficial).
   Aplica al wrapper de archive (.atticstorage-locator__map) y al div directo
   de home (#atticstorage-map insertado por el widget HTML). */
.atticstorage-locator__map,
#atticstorage-map {
	isolation: isolate;
}

.atticstorage-locator__map {
	height: 500px;
	min-height: 400px;
	border-radius: 1rem;
	overflow: hidden;
	z-index: 1;
}

.atticstorage-locator__distance-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--e-global-color-primary, #009999);
	font-size: 0.85rem;
	font-weight: 600;
}

.atticstorage-locator__distance-badge::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23009999'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
}

.leaflet-container .leaflet-marker-pane img {
	max-width: none;
}

/* Pin del nearest destacado en el mapa (40x60 vs 32x48 estándar, color accent naranja).
   Animación pulse sutil para llamar la atención. */
@keyframes attic-marker-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.08); }
}
.attic-marker-pin--nearest {
	animation: attic-marker-pulse 1.8s ease-in-out infinite;
	filter: drop-shadow(0 4px 8px rgba(255, 127, 50, 0.45));
	transform-origin: 50% 100%;
}
@media (prefers-reduced-motion: reduce) {
	.attic-marker-pin--nearest { animation: none; }
}

/* =============================================================
   §5 OPENING HOURS dropdown
   ============================================================= */

.atticstorage-hours-dropdown {
	display: inline-block;
	position: relative;
	min-width: 240px;
}

.atticstorage-hours-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	cursor: pointer;
	font-size: 0.95rem;
	color: var(--e-global-color-text, #424548);
	width: 100%;
	text-align: left;
}

.atticstorage-hours-toggle[aria-expanded='true'] .atticstorage-hours-chevron {
	transform: rotate(180deg);
}

.atticstorage-hours-chevron {
	transition: transform 0.2s ease;
	margin-left: auto;
}

.atticstorage-hours-status {
	margin-left: auto;
	font-weight: 600;
}

.atticstorage-hours-status.is-open {
	color: var(--e-global-color-primary, #009999);
}

.atticstorage-hours-status.is-closed {
	color: var(--e-global-color-accent, #FF7F32);
}

.atticstorage-hours-table {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 0.25rem;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	padding: 0.5rem;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.atticstorage-hours-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.25rem 0.5rem;
	font-size: 0.9rem;
}

.atticstorage-hours-row.is-today {
	background: var(--e-global-color-d0d111e, #FCF3EE);
	font-weight: 600;
}

/* =============================================================
   §6 UBICACION GALLERY (scroll-snap)
   ============================================================= */

.ubicacion-gallery {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: 1rem;
	padding: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ubicacion-gallery::-webkit-scrollbar {
	display: none;
}

.ubicacion-gallery__slide {
	flex: 0 0 calc(100% / 1.2);
	scroll-snap-align: start;
	border-radius: 1.25rem;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.ubicacion-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (min-width: 768px) {
	.ubicacion-gallery__slide {
		flex: 0 0 calc(100% / 2.2);
	}
}

@media (min-width: 1200px) {
	.ubicacion-gallery__slide {
		flex: 0 0 calc(100% / 3.2);
	}
}

/* =============================================================
   §7 A11y — Swiper pagination touch target
   ============================================================= */

.swiper-pagination-bullet {
	position: relative;
	width: 24px !important;
	height: 24px !important;
	background: transparent !important;
	opacity: 1 !important;
	margin: 0 4px !important;
}

.swiper-pagination-bullet::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 6px;
	height: 6px;
	background: var(--e-global-color-text, #424548);
	border-radius: 50%;
	transition: background 0.2s ease;
}

.swiper-pagination-bullet-active::before {
	background: var(--e-global-color-primary, #009999);
}

/* ============================================
   §8 Header — burger + logo color states (Plan DD, 2026-05-26)
   ============================================
   Mapeo real del template 8572 (_elementor_data inspection):

     #header-bar (330ea856)
       .header-internal (4b42199d)
         container 52cb488d (header visible)
           icon .menu-icon (366785e0)  — burger SVG inline (paths sin fill)
           icon .logo-icon (d5bbd78)   — logo SVG inline TRICOLOR con <style>
                                         interno .cls-1{#099} .cls-2{#14385f}
                                         .cls-3{#0d3c61} (bicolor canon design.md)
         widget/off-canvas (733c9a0e)  — panel oculto
           ... containers ...
             widget/image (52192060)   — <img src="logo-attic-storage_main.svg">
                                         logo del off-canvas (visible solo al abrir)

   El único <img> del header vive DENTRO del off-canvas. NO hay image
   widget visible en el header normal. El logo visible es siempre el
   SVG inline `.logo-icon`. Por eso esta sección NO toca el image
   widget — su <img> muestra colores nativos del SVG file en sandbox
   sin intervención CSS (teal #099 + blueberry #14385f + #0d3c61).

   Modelo 2 estados — alineado con Lockall §1 (canon cross-site):

   DEFAULT (todas las páginas, todos los estados):
     - .menu-icon (burger) → primary teal via fill !important
     - .logo-icon (SVG inline) → respeta <style> interno (bicolor nativo)
     - image widget del off-canvas → intocado (colores nativos)

   OVERRIDE (body.home + no-sticky, sobre hero video oscuro):
     - .menu-icon → blanco
     - .logo-icon .cls-1/2/3 → blanco !important (vence <style> interno)
     - image widget del off-canvas → intocado (off-canvas no es visible
       en estado top sobre hero; al abrirlo el panel tiene su propio
       background y el logo debe mostrar colores nativos).

   Zero hardcode: --e-global-color-primary con fallback hex.

   Nota futura: si Karina añade un image widget visible al header
   normal, NO recibirá el filter blanco automáticamente. El patrón
   canon del header visible es SVG inline (`.logo-icon`).
*/

/* --- Transitions globales --- */
#header-bar .menu-icon svg,
#header-bar .menu-icon svg path,
#header-bar .menu-icon svg polygon,
#header-bar .logo-icon svg .cls-1,
#header-bar .logo-icon svg .cls-2,
#header-bar .logo-icon svg .cls-3 {
	transition: fill 0.3s ease, color 0.3s ease;
}

/* --- DEFAULT: burger teal + logo SVG inline bicolor nativo --- */
/* why !important burger: Elementor inyecta fill al SVG vía CSS per-widget
   con specificity (0,2,0) basada en .elementor-element-XYZ; sin !important
   nuestro selector pierde tras re-save del template. */
#header-bar .menu-icon .elementor-icon,
#header-bar .menu-icon .elementor-icon i,
#header-bar .menu-icon .elementor-icon svg,
#header-bar .menu-icon .elementor-icon svg path,
#header-bar .menu-icon .elementor-icon svg polygon {
	fill: var(--e-global-color-primary, #099) !important;
	color: var(--e-global-color-primary, #099) !important;
}
/* .logo-icon en DEFAULT: NO override. El <style> interno del SVG inline
   define .cls-1{fill:#099} .cls-2{fill:#14385f} .cls-3{fill:#0d3c61} y eso
   produce el bicolor canon que debe verse. */

/* --- OVERRIDE: home + no-sticky → blanco (sobre hero video) --- */
body.home #header-bar:not(.elementor-sticky--effects) .menu-icon .elementor-icon,
body.home #header-bar:not(.elementor-sticky--effects) .menu-icon .elementor-icon i,
body.home #header-bar:not(.elementor-sticky--effects) .menu-icon .elementor-icon svg,
body.home #header-bar:not(.elementor-sticky--effects) .menu-icon .elementor-icon svg path,
body.home #header-bar:not(.elementor-sticky--effects) .menu-icon .elementor-icon svg polygon {
	fill: #ffffff !important;
	color: #ffffff !important;
}
/* why !important: el <style> interno del SVG inline tiene specificity
   (0,1,0) y NO se puede vencer sin !important. */
body.home #header-bar:not(.elementor-sticky--effects) .logo-icon svg .cls-1,
body.home #header-bar:not(.elementor-sticky--effects) .logo-icon svg .cls-2,
body.home #header-bar:not(.elementor-sticky--effects) .logo-icon svg .cls-3 {
	fill: #ffffff !important;
}

/* ============================================
   §0 Brand tokens (canónicos — ver design.md)
   ============================================ */

:root {
	--attic-teal: #099;
	--attic-blueberry: #14385F;
	--attic-orange: #FF7F32;
	--attic-gray: #424548;
	--attic-cream: #FCF3EE;
	--attic-light-teal: #A0D1CA;
	--attic-shadow: 0 20px 40px -15px rgba(20, 56, 95, 0.08);
	--attic-shadow-hover: 0 30px 50px -20px rgba(20, 56, 95, 0.18);
	--attic-radius-card: 12px;
	--attic-radius-hero: 24px;
	--attic-radius-pill: 999px;
	--attic-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	--attic-container-max: 1280px;
	--attic-font: 'Raleway', sans-serif;
}

/* ============================================
   §11 Promo bar header — solo lo no-expressable por Elementor (Plan J)
   ============================================
   Todo el styling estructural (bg, padding, flex layout, gap, typography,
   text color, border-bottom del CTA, hover color) vive en el Style panel
   de cada widget Elementor (container + text-editor + button). Editor del
   cliente queda con Style panel POBLADO en cada widget. Solo el color
   naranja del <strong> permanece aquí porque text-editor widget no
   permite per-tag color. Ver: design.md, rules/wordpress-elementor.md,
   feedback_elementor_settings_first.md. */

.attic-promo-bar strong {
	color: var(--attic-orange);
}

.attic-promo-bar .attic-promo-cta .elementor-button {
	transition: var(--attic-transition);
}

@media (prefers-reduced-motion: reduce) {
	.attic-promo-bar .attic-promo-cta .elementor-button {
		transition: none;
	}
}

/* Defensa contra re-save desde Elementor admin (Plan M+ 2026-05-15):
   El _elementor_data del header puede perder z_index, _element_id y el style
   inline del <p> cuando alguien edita y guarda desde el editor admin (Elementor
   reescribe el JSON desde el state del browser). Estas reglas CSS sobreviven
   a cualquier re-save y garantizan el comportamiento sin depender de los
   settings widget. Causa raíz documentada: header-bar 330ea856 tiene
   --margin-bottom:-117px legacy (template Lockall) que arrastra el hero 117px
   hacia arriba, cubriendo la promo bar sin z-index defensivo. */

.attic-promo-bar {
	position: relative;
	z-index: 100;
}

/* why !important: Elementor genera CSS per-widget text-editor con specificity
   (0,3,0) `.elementor-XX .elementor-element.elementor-element-YY p` que aplica
   margin-bottom default. Sin !important nuestros selectors de clase pierden. */
.attic-promo-bar p,
.attic-tcs p {
	margin: 0 !important;
}

/* Mobile single-line (Plan BB 2026-05-26): ocultar fragmento opcional
   "on selected units" para que la promo bar quepa en una sola línea
   junto al CTA y "T&Cs apply". El <span class="attic-promo-extra">
   envuelve el fragmento desde el setting `editor` del widget
   text-editor 5259dac8 (template 8572). */
@media (max-width: 767px) {
	.attic-promo-bar-text .attic-promo-extra {
		display: none;
	}
}

/* ============================================
   §12 Other locations — Big Yellow style row (sec 11)
   ============================================ */

.atticstorage-locations-grid {
	max-width: var(--attic-container-max);
	margin: 0 auto;
	padding: 48px 24px;
}

.atticstorage-locations-grid h2 {
	color: var(--attic-blueberry);
	margin-bottom: 8px;
}

.atticstorage-locations-grid .locations-sub {
	color: var(--attic-gray);
	margin-bottom: 32px;
}

.atticstorage-locations-grid .locations-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 768px) {
	.atticstorage-locations-grid .locations-list {
		grid-template-columns: 1fr 1fr;
		column-gap: 24px;
	}
}

.atticstorage-locations-grid .location-row {
	border-bottom: 1px solid var(--attic-light-teal);
	transition: var(--attic-transition);
}

.atticstorage-locations-grid .location-row:last-child {
	border-bottom: none;
}

.atticstorage-locations-grid .location-row a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 8px;
	color: var(--attic-blueberry);
	text-decoration: none;
	font-weight: 600;
	transition: var(--attic-transition);
}

.atticstorage-locations-grid .location-row a:hover {
	background: var(--attic-cream);
	transform: translateX(4px);
	padding-left: 16px;
	padding-right: 16px;
}

.atticstorage-locations-grid .location-row .location-postcode {
	color: var(--attic-gray);
	font-weight: 400;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.atticstorage-locations-grid .location-row .location-arrow {
	display: inline-block;
	margin-left: auto;
	color: var(--attic-teal);
	font-weight: 700;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.atticstorage-locations-grid .location-row a:hover .location-arrow {
	transform: translateX(8px);
	color: var(--attic-orange);
}

.atticstorage-locations-grid .location-row a:focus-visible {
	outline: 2px solid var(--attic-orange);
	outline-offset: -2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.atticstorage-locations-grid .location-row,
	.atticstorage-locations-grid .location-row a,
	.atticstorage-locations-grid .location-row .location-arrow {
		transition: none;
	}
	.atticstorage-locations-grid .location-row a:hover {
		transform: none;
	}
}


/* =============================================================
   13. Footer nav-menu stager animation
   -------------------------------------------------------------
   Fade-in con delay por item. NO expressable como setting Elementor
   (Elementor permite entrance animation a nivel widget pero no
   per-child stagger con nth-child). CSS sin !important — los color
   y typography vienen de settings nativos del widget.

   La animación es opt-in via class `.menu-stager` aplicada al widget
   nav-menu desde Style → Advanced → CSS Classes. Quitar la clase
   desactiva la animación sin tocar código.
   ============================================================= */

@keyframes attic-menu-fade-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.menu-stager .elementor-nav-menu--main .menu-item {
	opacity: 0;
	animation: attic-menu-fade-in 0.4s ease forwards;
}

.menu-stager .elementor-nav-menu--main .menu-item:nth-child(1)  { animation-delay: 0.50s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(2)  { animation-delay: 0.58s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(3)  { animation-delay: 0.66s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(4)  { animation-delay: 0.74s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(5)  { animation-delay: 0.82s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(6)  { animation-delay: 0.90s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(7)  { animation-delay: 0.98s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(8)  { animation-delay: 1.06s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(9)  { animation-delay: 1.14s; }
.menu-stager .elementor-nav-menu--main .menu-item:nth-child(10) { animation-delay: 1.22s; }

@media (prefers-reduced-motion: reduce) {
	.menu-stager .elementor-nav-menu--main .menu-item {
		opacity: 1;
		animation: none;
	}
}


/* =============================================================
   13a. Footer — Accordion responsive behavior
   =============================================================
   Port verbatim de lockall-child §6 (canon validado desde 2026-04-16).
   why !important (whole section): Elementor Nested Accordion es un
   <details>/<summary> que togglea visibilidad via [open] + JS inline
   escribiendo display/height. Forzar "siempre abierto en desktop"
   exige vencer (a) defaults del browser para <details>, (b) inline
   styles de Elementor, (c) widget-level CSS con specificity id-based.
   Mobile single-open behavior lo gestiona el snippet 8713 (body_end).
   Clase opt-in `.acordeon-footer` aplicada al widget nested-accordion
   en Style → Advanced → CSS Classes (footer 8574, 4 widgets).
   ============================================================= */

/* Desktop: acordeones siempre abiertos, no interactivos */
@media (min-width: 1025px) {
	.acordeon-footer .e-n-accordion-item-title-icon {
		display: none !important;
	}

	.acordeon-footer .e-n-accordion-item-title {
		cursor: default !important;
		pointer-events: none !important;
	}

	.acordeon-footer .e-n-accordion-item {
		pointer-events: none !important;
	}

	.acordeon-footer .e-n-accordion-item > div {
		pointer-events: auto !important;
	}

	.acordeon-footer .e-n-accordion-item a {
		pointer-events: auto !important;
	}

	/* Border base + transition.
	   why !important: Elementor Nested Accordion ships widget-level CSS con
	   selector id-based (.elementor-PAGE .elementor-element-ID > .e-n-accordion
	   > .e-n-accordion-item > .e-n-accordion-item-title { border-color }) cuya
	   specificity (0,5,0) no se vence con la clase semántica sin !important. */
	.acordeon-footer .e-n-accordion-item-title {
		border-color: var(--e-global-color-primary) !important;
		transition: border-color 0.3s ease !important;
	}

	.acordeon-footer .e-n-accordion-item:hover .e-n-accordion-item-title {
		border-color: var(--e-global-color-accent) !important;
	}

	/* Forzar contenido siempre visible — !important porque Elementor escribe
	   display/height/visibility inline cuando el accordion togglea. */
	.acordeon-footer .e-n-accordion-item .e-con {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.acordeon-footer .e-n-accordion-item[open] > .e-con,
	.acordeon-footer .e-n-accordion-item:not([open]) > .e-con {
		display: block !important;
		height: auto !important;
	}
}

/* Mobile: interactivo, single-open por snippet 8713.
   Specificity: .acordeon-footer + dos clases = (0,3,0), sin !important. */
@media (max-width: 1024px) {
	.acordeon-footer .e-n-accordion-item-title {
		cursor: pointer;
	}
}


/* =============================================================
   13b. Footer — Site-logo widget: hide empty container anchor
   =============================================================
   why: el container 3275e7d ancestro del widget theme-site-logo
   (footer 8574) tiene `html_tag: "a"` + dynamic link site-url. El
   widget theme-site-logo también renderiza su propio <a> con el
   <img>. Resultado: dos <a> hermanos dentro del widget, donde el
   primero (`<a class="e-con-full e-flex e-con e-child">`) es vacío
   y rompe el flex del footer. CSS defensive: ocultar el ancla vacía
   sin tocar BD (root cause real: cambiar html_tag del container a
   "div", pendiente decisión vs riesgo).
   Specificity: .elementor-widget-theme-site-logo + a + class = (0,3,1).
   ============================================================= */

.elementor-widget-theme-site-logo > a.e-con-full {
	display: none;
}


/* =============================================================
   14. RankMath breadcrumbs typography
   -------------------------------------------------------------
   Cuando el shortcode [rank_math_breadcrumb] vive dentro de un
   text-editor widget, el font-size del setting nativo del widget
   afecta al <p> outer pero NO al <a> inner del breadcrumb (vive
   dentro del shortcode, fuera de control del widget). Esto sí lo
   resuelve un selector global sin !important.
   ============================================================= */

.rank-math-breadcrumb a {
	font-size: 0.75rem;
}


/* =============================================================
   15. HubSpot form reset (form id 5345878f-4438-46a1-b0c5-843ffe8be058)
   -------------------------------------------------------------
   HubSpot inyecta su propio CSS con !important. Para layout limpio
   (Raleway, full width, sin padding default, inputs con border canon)
   tenemos que ganar la cascada → !important justificado.

   NOTA: el form_id está hardcoded. Si HubSpot regenera el form,
   actualizar el selector.
   ============================================================= */

/* ========================================
   HUBSPOT FORM - STOREMORE STYLE
   Selector: .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058
   ======================================== */

/* Contenedor del formulario */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 {
  background: transparent !important;
  padding: 0 !important;
  font-family: 'Raleway', sans-serif !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Reset de fieldsets */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Layout de columnas - 2 columnas */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .form-columns-2,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 fieldset.form-columns-2 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 30px !important;
  width: 100% !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .form-columns-2 > .hs-form-field,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 fieldset.form-columns-2 > .hs-form-field {
  flex: 1 !important;
  width: calc(50% - 15px) !important;
  min-width: 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .form-columns-1 {
  width: 100% !important;
}

/* Campos individuales */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-field {
  width: 100% !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .input {
  width: 100% !important;
  border: none !important;
}

/* Ocultar labels */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 label:not(.hs-form-booleancheckbox-display) {
  display: none !important;
}

/* ========================================
   INPUTS Y TEXTAREA
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-input,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="text"],
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="email"],
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="tel"],
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 select,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 textarea {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #202020 !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
  font-family: 'Raleway', sans-serif !important;
  color: #202020 !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

/* Focus state */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-input:focus,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="text"]:focus,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="email"]:focus,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="tel"]:focus,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 select:focus,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 textarea:focus {
  border-bottom-color: #6452E4 !important;
  border-bottom-width: 2px !important;
  box-shadow: none !important;
}

/* Placeholders */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-input::placeholder,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input::placeholder,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 textarea::placeholder {
  color: #202020 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-family: 'Raleway', sans-serif !important;
  
}

/* Select dropdown */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 select {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23202020' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 5px center !important;
  padding-right: 25px !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 select option {
  background-color: #fff !important;
  color: #202020 !important;
  font-family: 'Raleway', sans-serif !important;
}

/* Textarea */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 textarea {
  min-height: 48px !important;
  resize: vertical !important;
  width: 100% !important;
}

/* ========================================
   CAMPO TELÉFONO INTERNACIONAL
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-phone,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs_phone,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-phonenumber {
  border: none !important;
  flex: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-phone .input,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs_phone .input,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-phonenumber .input {
  border: none !important;
  border-bottom: none !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-end !important;
  width: 100% !important;
  border: none !important;
  border-bottom: none !important;
  flex-wrap: nowrap !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone select {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 100px !important;
  max-width: 140px !important;
  border: none !important;
  border-bottom: 1px solid #202020 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone input[type="tel"] {
  flex: 1 !important;
  min-width: 0 !important;
  border: none !important;
  border-bottom: 1px solid #202020 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone input[type="hidden"],
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone input[name="phone"] {
  display: none !important;
  border: none !important;
}

/* ========================================
   ALINEAR EMAIL Y TELÉFONO - Margin negativo
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-phone,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs_phone,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-phonenumber {
  margin-top: -8px !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone {
  margin-top: 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone select,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-fieldtype-intl-phone input[type="tel"] {
  margin-top: 0 !important;
}

/* ========================================
   CHECKBOX Y CONSENTIMIENTO
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .legal-consent-container {
  margin-top: 12px !important;
  width: 100% !important;
  padding: 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-dependent-field,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs_LEGAL_CONSENT\.subscription_type_389747429 {
  padding: 0 !important;
  margin: 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .legal-consent-container .inputs-list {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Ocultar textos originales */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-booleancheckbox-display span p,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-booleancheckbox-display .hs-form-required,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .legal-consent-container .hs-richtext {
  display: none !important;
}

/* Contenedor del checkbox */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-booleancheckbox {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-booleancheckbox-display {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  cursor: pointer !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-family: 'Raleway', sans-serif !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Custom checkbox */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="checkbox"],
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 3px !important;
  background-color: #202020 !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-right: 0.5rem !important;
  flex-shrink: 0 !important;
}

/* Checkbox checked */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="checkbox"]:checked,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-input[type="checkbox"]:checked {
  background-color: #6452E4 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="checkbox"]:checked::after,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-input[type="checkbox"]:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: bold !important;
}

/* Texto legal */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-booleancheckbox-display span {
  display: inline !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 12px !important;
  color: #202020 !important;
}

/* Link */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .legal-consent-container a,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-booleancheckbox-display a {
  color: #6452E4 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .legal-consent-container a:hover,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-booleancheckbox-display a:hover {
  opacity: 0.8 !important;
}

/* ========================================
   OCULTAR RECAPTCHA (sin romper funcionalidad)
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-recaptcha,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .grecaptcha-badge,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .g-recaptcha,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 [class*="recaptcha"] {
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========================================
   MENSAJES DE ERROR
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-error-msgs {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 0 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-error-msgs li {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-error-msgs li::before,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-error-msgs li::marker {
  display: none !important;
  content: none !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-error-msg {
  color: #c0392b !important;
  font-size: 11px !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
}

/* ========================================
   BOTÓN DE ENVÍO
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-submit {
  margin-top: 20px !important;
  text-align: right !important;
  width: 100% !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-submit .actions {
  text-align: right !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-button,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-button.primary,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-button.primary.large,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="submit"],
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .actions input[type="submit"] {
  background: transparent !important;
  border: 1px solid #202020 !important;
  border-radius: 1rem !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  color: #202020 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: lowercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Hover del botón */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-button:hover,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-button.primary:hover,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-button.primary.large:hover,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="submit"]:hover,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .actions input[type="submit"]:hover {
  background-color: #6452E4 !important;
  border-color: #6452E4 !important;
  color: #fff !important;
}

/* ========================================
   OCULTAR ELEMENTOS INNECESARIOS
   ======================================== */
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-field-desc,
.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .checkbox-desc {
  display: none !important;
}

.hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-form-required {
  color: #202020 !important;
  margin-left: 2px !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .form-columns-2,
  .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 fieldset.form-columns-2 {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .form-columns-2 > .hs-form-field,
  .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 fieldset.form-columns-2 > .hs-form-field {
    margin-bottom: 16px !important;
    width: 100% !important;
  }
  
  .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-submit {
    text-align: center !important;
  }
  
  .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 .hs-button,
  .hsForm_5345878f-4438-46a1-b0c5-843ffe8be058 input[type="submit"] {
    width: 100% !important;
  }
}


/* =============================================================
   16. Header sticky transition + icon hover compound
   -------------------------------------------------------------
   Elementor Pro Sticky widget NO expone styling-tras-sticky como
   setting nativo (no hay "background on sticky" en Style panel).
   Los efectos visuales que aparecen al hacer sticky (background
   pill, box-shadow, border-radius) son no-expressable.

   El icon hover compound (per-path scaleX via :nth-child) tampoco
   tiene equivalente settings — Elementor no expone styling por path
   SVG individual.

   El button text hide en mobile evita ocultar el widget entero
   (que tiene icon + text); solo se oculta el text.
   ============================================================= */

#header-bar .header-internal {
	border: 1px solid rgba(0, 0, 0, 0);
}

#header-bar.elementor-sticky--effects .header-internal {
	background: var(--e-global-color-d0d111e); /* #FCF3EE cream */
	border-radius: 0.75rem;
	box-shadow: 0 0 13px 1px rgba(0, 0, 0, 0.2);
}

#header-bar .header-internal,
#header-bar.elementor-sticky--effects .header-internal,
#header-bar .header-internal .sticky-menu-items ul li a,
#header-bar.elementor-sticky--effects .header-internal .header-logo {
	transition: all 0.3s ease-in-out;
}

/* Icon hover compound — per-SVG-path scaleX animation */
.attic-header-icon svg path {
	transition: transform 0.25s ease;
	transform-origin: left center;
}
.attic-header-icon:hover svg path:nth-child(1) { transform: scaleX(0.6); }
.attic-header-icon:hover svg path:nth-child(2) { transform: scaleX(1.15); }
.attic-header-icon:hover svg path:nth-child(3) { transform: scaleX(2); }

/* Call button: hide text on mobile (icon-only en <1024) — Plan BB 2026-05-26.
   Selector canon `.call-button` (clase aplicada al widget id 7423bedb en el
   template 8572 vía Style → CSS Classes). El selector previo .attic-header-button
   no existía en el widget real — patrón fantasma equivalente al de
   .attic-header-icon (hover compound), heredado de Lockall sin verificar. */
.call-button .elementor-button-text {
	display: flex;
}
@media (max-width: 1024px) {
	.call-button .elementor-button-text {
		display: none;
	}
}


/* =============================================================
   17. Cards y resultados (loop items, search dropdown, blog FAQs)
   -------------------------------------------------------------
   Patrones no-expressable: aspect-ratio en post cards, backdrop-filter
   blur en search result cards, hover compound `:has()` en blog FAQs.
   Activos via clase opt-in.
   ============================================================= */

/* Post block aspect ratio */
.attic-post-card-aspect {
	aspect-ratio: 4 / 2;
}

/* Search result card — glass blur effect */
.attic-search-result-card {
	background-color: rgba(255, 255, 255, 0.5);
	-webkit-backdrop-filter: blur(50px);
	backdrop-filter: blur(50px);
	max-height: 5rem;
	overflow: hidden;
	transition: background-color 0.2s ease;
}
.attic-search-result-card:hover {
	background-color: rgba(255, 255, 255, 1);
}

/* Search results dropdown reset (Elementor Pro Search widget) */
.e-search-results-container {
	background-color: transparent;
	padding: 0;
	margin: 0;
	border-width: 0;
}
.e-search-results {
	border-width: 0;
	padding: 0;
	margin: 0;
}
.e-search-input {
	text-align: left;
}

/* Blog FAQs grid — focus-on-hover dim */
@media (hover: hover) and (pointer: fine) {
	.faqs-grid .faq-wrap {
		opacity: 1;
		transition: opacity 0.5s ease;
	}
	.faqs-grid:has(.faq-wrap:hover) .faq-wrap:not(:hover) {
		opacity: 0.2;
	}
}

/* §18 Slider WEP: hide navigation on desktop ----------------
   Complementa al snippet JS `Slider WEP control` (Elementor Snippet 8714)
   que disable touch+slide+autoplay en desktop. Aquí ocultamos las
   bullets/arrows visualmente. */
@media (min-width: 1025px) {
	.slider-wep .swiper-pagination,
	.slider-wep .swiper-button-next,
	.slider-wep .swiper-button-prev,
	.slider-wep .elementor-swiper-button {
		display: none !important;
	}
	.slider-wep .swiper,
	.slider-wep .swiper-wrapper {
		cursor: default !important;
	}
}


/* =============================================================
   19. Attic hero search (autocomplete typeahead) — patrón canon Lockall
   -------------------------------------------------------------
   Layout: form flex row → wrapper (flex 1, posiciona icon + input + geo
   + clear) + submit button (compact icon-only square al lado).
   Estilo: border-radius 12px, border 2px light-teal, suggestions panel
   anclado bajo el wrapper (full-width del form).
   Variables Kit: primary #099, accent #FF7F32, light-teal #A0D1CA,
   secondary #14385F, cream #FCF3EE.
   ============================================================= */

.attic-hero-search {
	--search-h: 54px;
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0;
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.attic-hero-search__wrapper {
	position: relative;
	flex: 1;
	min-width: 0;
}

.attic-hero-search__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
	z-index: 1;
}

/* why !important: Elementor genera reglas per-widget con specificity
   (0,3,1) `.elementor-XX .elementor-element.elementor-element-YY input[type="text"]`
   que pisan cualquier selector de clase (0,1,0). Mismo patrón canon Lockall
   (lockall-child #lockall-cp-search usa ID = (1,0,0) para ganar; aquí
   preferimos clase con !important para reutilizar entre home + archive
   sin requerir IDs únicos por contexto). */
.attic-hero-search__input {
	width: 100% !important;
	height: var(--search-h) !important;
	padding: 0 44px 0 16px !important;
	box-sizing: border-box !important;
	border: 2px solid var(--e-global-color-42597f9, #A0D1CA) !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	font-family: Raleway, sans-serif !important;
	background: #fff !important;
	color: var(--e-global-color-secondary, #14385F) !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	outline: none !important;
}

.attic-hero-search__input:focus {
	border-color: var(--e-global-color-primary, #009999) !important;
	box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.1) !important;
}

.attic-hero-search__input::placeholder {
	color: #999;
}

.attic-hero-search__geo,
.attic-hero-search__clear {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	transition: color 0.2s;
}

/* why !important: reset.css del entorno aplica
   `[type="button"]:hover, button:hover { background-color: #c36; color: #fff; }`
   con specificity (0,2,0) igual a `.attic-hero-search__geo:hover` y cargado
   antes/después según el plugin → gana inconsistente. !important garantiza
   que el geo/clear button mantenga el fondo transparente (deja ver el
   input blanco) y solo cambie el color del icono al primary. */
.attic-hero-search__geo:hover,
.attic-hero-search__geo:focus,
.attic-hero-search__clear:hover,
.attic-hero-search__clear:focus {
	background-color: transparent !important;
	color: var(--e-global-color-primary, #009999) !important;
}

.attic-hero-search__geo.is-loading {
	animation: attic-search-pulse 1s infinite;
}

@keyframes attic-search-pulse {
	0%, 100% { opacity: 0.4; }
	50%      { opacity: 1; }
}

.attic-hero-search__clear {
	display: none;
	font-size: 20px;
	line-height: 1;
}

.attic-hero-search__submit {
	background: var(--e-global-color-primary, #009999);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 0;
	width: var(--search-h);
	height: var(--search-h);
	flex-shrink: 0;
	cursor: pointer;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* why !important: mismo reset.css que ataca buttons en hover/focus —
   garantizar el orange accent en hover sin que #c36 lo pise. */
.attic-hero-search__submit:hover,
.attic-hero-search__submit:focus,
.attic-hero-search__submit:focus-visible {
	background-color: var(--e-global-color-accent, #FF7F32) !important;
	color: #fff !important;
}

.attic-hero-search__submit svg {
	display: block;
}

.attic-hero-search__suggestions {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 1000;
	max-height: 280px;
	overflow-y: auto;
	/* Suggestions panel debe vivir bajo el FORM completo (no solo wrapper) para
	   no quedar oculto por el submit button. Lo logramos posicionando absolute
	   desde el form (no wrapper) — pero como wrapper es flex:1 dentro del form,
	   y .attic-hero-search es flex row, el suggestions está dentro del form
	   con left:0 right:0 → ocupa todo el ancho del form (incluido submit).
	   Si queremos limitarlo al input, dejarlo como está dentro del wrapper. */
}

.attic-hero-search__suggestions.is-open {
	display: block;
}

.attic-hero-search__suggestion {
	padding: 12px 16px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 2px;
	transition: background 0.15s;
}

.attic-hero-search__suggestion:first-child { border-radius: 12px 12px 0 0; }
.attic-hero-search__suggestion:last-child  { border-radius: 0 0 12px 12px; }

.attic-hero-search__suggestion:hover,
.attic-hero-search__suggestion.is-active {
	background: var(--e-global-color-d0d111e, #FCF3EE);
}

.attic-hero-search__suggestion-label {
	font-weight: 600;
	color: var(--e-global-color-secondary, #14385F);
	font-size: 14px;
}

.attic-hero-search__suggestion-distance {
	font-size: 12px;
	color: var(--e-global-color-primary, #009999);
}

.attic-hero-search__suggestion-empty {
	padding: 12px 16px;
	color: #999;
	font-size: 14px;
	text-align: center;
}

/* Distance badge — añadido a cada .e-loop-item del archive tras doSearch */
.attic-distance-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--e-global-color-primary, #009999);
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
}

.attic-distance-badge svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	fill: var(--e-global-color-primary, #009999);
}

.e-loop-item { position: relative; }

/* Nearest center destacado tras doSearch — Plan X + fix carousel-safe noche 2026-05-26.
   - Ring teal vía box-shadow INSET (no se recorta por .swiper{overflow:hidden} del Loop Carousel).
   - Badge "Nearest" pintado sobre el <a> Elementor Container interno (no sobre el slide
     externo) — el <a> tiene display:flex+position:relative+stacking context propio que en
     Elementor Pro 4.1+ pinta el .e-con-inner ENCIMA del ::before del slide, dejando el badge
     oculto si vive en el slide externo. */
.swiper-slide.e-loop-item.attic-nearest,
.e-loop-item.attic-nearest {
	box-shadow: inset 0 0 0 3px var(--e-global-color-primary, #009999),
	            0 8px 24px rgba(0, 153, 153, 0.25);
	border-radius: 1rem;
	z-index: 2;
	transition: box-shadow 0.3s ease;
}

/* El <a> Elementor Container ya viene con position:relative — aseguramos por defensa */
.e-loop-item.attic-nearest > a,
.e-loop-item.attic-nearest > .e-con {
	position: relative;
}

/* Badge "Nearest" colgado del <a>/<.e-con interior para garantizar pintado encima
   del .e-con-inner. Selectores múltiples para cubrir Loop Carousel y Loop Grid. */
.swiper-slide.e-loop-item.attic-nearest > a::after,
.e-loop-item.attic-nearest > a::after,
.e-loop-item.attic-nearest > .e-con::after {
	content: "Nearest";
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--e-global-color-accent, #FF7F32);
	color: #fff;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	font-family: Raleway, sans-serif;
	letter-spacing: 0.04em;
	z-index: 10;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(255, 127, 50, 0.4);
}

/* Map markers + user marker styling (Leaflet DivIcon) */
.attic-marker,
.attic-user-marker {
	background: transparent !important;
	border: none !important;
}

.attic-marker-pin svg,
.attic-user-pin svg {
	width: 24px;
	height: 36px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.attic-tooltip {
	background: var(--e-global-color-secondary, #14385F);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 4px 8px;
	font-family: Raleway, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.attic-hero-search__submit { transition: none; }
	.attic-hero-search__geo.is-loading { animation: none; }
}

@media (max-width: 767px) {
	.attic-hero-search { max-width: 100%; --search-h: 50px; }
	.attic-hero-search__input { font-size: 16px; /* iOS no-zoom */ }
	.attic-distance-badge { font-size: 11px; }
}


/* =============================================================
   §20 Other locations Loop Grid — column-wise flow
   -------------------------------------------------------------
   Home post #9, widget Elementor Loop Grid `a1dc4ea`
   (template_id 8858, listado del CPT `other_location`).

   Elementor renderiza el grid row-wise por defecto. Para una lista
   alfabética larga el escaneo natural del usuario es vertical
   (col1 entera → col2 entera → …). Forzamos column-wise vía CSS
   multi-column. Nº de columnas idéntico al setting nativo del
   widget (4 / 2 / 1) para coherencia y para preservar la a11y del
   `role="list"` inyectado por Elementor.

   Si se recrea el widget el data-id cambiará: asignar la clase
   `attic-other-locations-grid` desde Elementor → Advanced → CSS
   Classes y duplicar el selector aquí.
   ============================================================= */

/* why !important sobre display + column-gap: la CSS per-widget que
   Elementor genera en /wp-content/uploads/elementor/css/post-9.css usa
   selectores con ancestor .elementor-9 (specificity 0,4,0) que pisan
   esta regla sin !important. Diseño firmado (column-wise + 1rem/1rem),
   cliente no debe cambiarlo desde editor. */
.elementor-element-a1dc4ea .elementor-loop-container.elementor-grid {
	display: block !important;
	columns: 4;
	column-gap: 1rem !important;
}

/* Multi-column no soporta row-gap (es propiedad grid/flex). Para emular
   el gap vertical de 1rem aplicamos margin-bottom a cada loop-item. */
.elementor-element-a1dc4ea .elementor-loop-container.elementor-grid > [data-elementor-type="loop-item"] {
	display: block;
	width: 100%;
	margin: 0 0 1rem 0;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

/* Evita margin-bottom huérfano debajo del último item (bottom-right). */
.elementor-element-a1dc4ea .elementor-loop-container.elementor-grid > [data-elementor-type="loop-item"]:last-child {
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.elementor-element-a1dc4ea .elementor-loop-container.elementor-grid {
		columns: 2;
	}
}

@media (max-width: 767px) {
	.elementor-element-a1dc4ea .elementor-loop-container.elementor-grid {
		columns: 1;
	}
}
