/* Acerosvel — copia del sitio WordPress (tema Flatsome) en CSS propio.
   Los valores salen de medir el sitio en vivo con getComputedStyle a 1366 px (2026-09-26):
   contenedor 1160 px, letra base 17,12 px, azul #2480ff, gris de secciones #f6f6f6. */

@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format("woff2"); }

:root {
  --blue: #2480ff;
  --ink: #0a0a0a;
  --text: #282828;
  --muted: rgba(74, 74, 74, .85);
  --gray: #f6f6f6;
  --green: #70c31d;
  --wa: #25d366;
  --wrap: 1190px;           /* 1160 de contenido + 15 px a cada lado */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17.12px/1.6 Poppins, system-ui, sans-serif; color: var(--text); background: #fff; }
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; }  /* con display:contents, los <source> contaban como celdas de la grilla */
a { color: var(--blue); text-decoration: none; }
a:hover { color: #111; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; margin: 0 0 .5em; line-height: 1.3; }
p { margin: 0 0 1.3em; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- botones (Flatsome: bold, radio 5 px, tracking .03em) */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 2.5em; padding: 0 1.2em;
  background: var(--blue); color: #fff; font-size: 16.6px; font-weight: 700; letter-spacing: .03em; line-height: 1.2;
  border: 1px solid rgba(0,0,0,.05); border-radius: 5px; transition: filter .2s, background .2s; }
.button:hover { color: #fff; filter: brightness(.92); }
.button svg { width: 1em; height: 1em; flex: none; }
.button.lg { font-size: 18.4px; min-height: 46px; padding: 0 22px; }
.button.ghost { background: transparent; border: 2px solid #f1f1f1; color: #f1f1f1; }
.button.ghost:hover { background: #f1f1f1; color: var(--ink); filter: none; }
.button.outline { background: transparent; border: 2px solid #f1f1f1; color: #f1f1f1; font-size: 14.9px; min-height: 37px; padding: 0 18px; }
.button.outline:hover { background: #f1f1f1; color: var(--blue); filter: none; }
.button.wa { background: var(--wa); border-color: var(--wa); }
.button .chev { width: .8em; height: .8em; }

/* ---------- barra superior */
.topbar { background: #000; color: #fff; font-size: 13px; font-weight: 700; text-align: center; height: 33px; display: flex; align-items: center; justify-content: center; }

/* ---------- header (alto 105 px, logo 220 px) */
.header-main { display: flex; align-items: center; gap: 30px; min-height: 105px; }
.logo img { width: 220px; height: auto; }
.search { display: flex; align-items: center; gap: 4px; position: relative; }
.search select, .search input { height: 35px; font: inherit; font-size: 14.1px; color: var(--text); background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.09); border-radius: 99px; }
.search select { width: 55px; padding: 0 20px 0 10px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgba(0,0,0,.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 6px center / 12px; }
.search input { width: 224px; padding: 0 36px 0 11px; }
.search input:focus, .search select:focus { outline: none; border-color: var(--blue); background-color: #fff; }
.search .search-btn { position: absolute; right: 6px; background: none; border: 0; padding: 4px; color: #222; }
.search .search-btn svg { width: 18px; height: 18px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; width: 380px; background: #fff; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 50; max-height: 70vh; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--ink); font-size: 14px; border-bottom: 1px solid #eee; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: #f0f6ff; }
.search-results img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
.search-results small { display: block; color: #777; font-size: 12px; }
.search-results .empty { padding: 14px; font-size: 14px; margin: 0; }
.search-note { font-size: 15px; margin: 0 0 16px; padding: 10px 14px; background: #f0f6ff; border-radius: 8px; }
.contact-box { display: flex; align-items: center; gap: 17px; color: #000; }
.contact-box img { width: 60px; height: auto; }
.contact-box span { display: block; font-size: 20.8px; line-height: 1.1; }
.contact-box h5 { display: block; margin: 0; font-size: 20.8px; line-height: 1.1; font-weight: 700; color: inherit; }
.contact-box.first { margin-left: auto; }
.contact-box:hover { color: var(--blue); }
.menu-btn, .menu-close { display: none; background: none; border: 0; padding: 6px; color: var(--ink); }
.menu-btn svg, .menu-close svg { width: 28px; height: 28px; }

/* ---------- menú (alto 43 px, 15,4 px, activo en negro) */
.main-nav { background: var(--blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > .wrap > ul { display: flex; gap: 26px; }
.main-nav > .wrap > ul > li > a, .sub-toggle { display: flex; align-items: center; gap: 2px; height: 43px; padding: 0; color: #fff; font-size: 15.4px; background: none; border: 0; }
.main-nav > .wrap > ul > li.active > a, .main-nav > .wrap > ul > li.active > .sub-toggle,
.main-nav > .wrap > ul > li > a:hover, .sub-toggle:hover { color: #000; }
.sub-toggle svg { width: 12px; height: 12px; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: -15px; z-index: 40; background: #fff; box-shadow: 1px 1px 15px rgba(0,0,0,.15); padding: 10px 0; width: 280px; max-height: 70vh; overflow: auto; }
.has-sub:hover .sub, .has-sub.open .sub { display: block; }
.sub a { display: block; color: rgba(17,17,17,.85); font-size: 15.4px; padding: 7px 20px; border-bottom: 1px solid #ececec; }
.sub li:last-child a { border-bottom: 0; }
.sub a:hover { color: #000; background: #f7f7f7; }

/* ---------- migas */
.crumbs { font-size: 17.12px; font-weight: 700; color: #222; margin: 20px 0 8px; line-height: 1.2; }
.crumbs a { color: rgba(74,74,74,.8); font-weight: 400; }
.crumbs a:hover { color: #111; }
.crumbs span { margin: 0 5px; font-weight: 300; color: #222; }
.crumbs.big { font-size: 19.7px; margin: 28px 0 30px; }

/* ---------- home: carrusel (544 px, capa 50 %) */
.hero { position: relative; height: 544px; overflow: hidden; background: #1c2b3a; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.slide-text { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px 16px; }
.slide-text h1, .slide-text h2 { color: #fff; text-transform: uppercase; letter-spacing: .05em; font-size: 44.8px; line-height: 1; max-width: 640px; margin-bottom: 48px; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; }
.dots button { width: 24px; height: 24px; border: 0; background: none; padding: 0; position: relative; }
.dots button::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid #fff; background: transparent; }
.dots button[aria-current="true"]::before { background: #fff; }

/* ---------- home: especialistas (112 px arriba y abajo) */
.intro { padding: 112px 0; position: relative; }
.intro-grid { display: grid; grid-template-columns: 366px 1fr; gap: 31px; align-items: center; }
.intro h3 { font-size: 33px; line-height: .95; margin: 0; }
.intro h3 span { display: block; color: var(--blue); font-size: 57.4px; line-height: 1.2; }
.intro-text p { margin: 0; }
.scroll-more { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: var(--text); width: 30px; height: 30px; }

.band { padding: 60px 0; }
.band.gray { background: var(--gray); }
.section-title { text-align: center; font-size: 35.1px; line-height: .75; margin-bottom: 36px; }
.section-title small, .section-title .st-sub { display: block; font-size: 23px; line-height: 1.3; margin-top: 12px; }
/* los niveles de título copian al WordPress (h4 + h2); el aspecto no cambia */
.section-title > h4, .section-title > h2 { font: inherit; color: inherit; margin: 0; }
.section-title > h2.st-sub { font-size: 23px; line-height: 1.3; margin-top: 12px; }

/* ---------- home: tiles (366 x 250, radio 3 %) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px; }
.tile { position: relative; display: block; border-radius: 3%; overflow: hidden; height: 250px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.1); }
.tile .tile-t { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 39.7px; line-height: 1.3; text-shadow: 3px 3px 3px rgba(0,0,0,.4); }

/* ---------- home: destacados con pestañas */
.tabs { background: #fff; box-shadow: 0 3px 6px -4px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23); padding: 0 15px 30px; }
.tablist { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.tablist button { background: none; border: 0; color: var(--muted); font-size: 17.12px; height: 42px; padding: 0 12.8px; border-radius: 99px; }
.tablist button[aria-selected="true"] { background: var(--blue); color: #fff; }
.panel { display: grid; grid-template-columns: 129px 1fr auto; gap: 30px; align-items: center; max-width: 940px; margin: 0 auto; }
.panel img { width: 129px; height: 132px; object-fit: cover; max-width: none; }
.panel h3 { font-size: 22px; margin-bottom: 8px; }
.panel p { margin: 0; }

/* ---------- home: complementarios (465 px, imagen 349 px, caja azul) */
.promos { display: grid; grid-template-columns: repeat(2, 465px); gap: 16px; justify-content: center; }
.promo img { width: 465px; height: 349px; object-fit: cover; }
.promo-box { background: var(--blue); color: #f1f1f1; text-align: center; padding: 46.6px; min-height: 196px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.promo-box h4 { color: #fff; font-size: 24.3px; margin-bottom: 12px; }

/* ---------- listado: tienda y categorías */
.listing { display: grid; grid-template-columns: 267px 1fr; gap: 20px; align-items: start; padding-bottom: 40px; }
.sidebar { background: var(--gray); border-radius: 20px; padding: 15px 15px 25px; }
.sidebar .widget-title { display: block; color: #111; font-size: 17.12px; font-weight: 600; margin: 0; line-height: 1.4; }
.sidebar .widget-title::after { content: ""; display: block; width: 30px; height: 3px; background: rgba(0,0,0,.1); margin: 11px 0 17px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar > ul > li { border-top: 1px solid #ececec; }
.sidebar > ul > li:first-child { border-top: 0; }
.sidebar > ul > li > a, .sidebar summary a { display: block; padding: 6px 0; font-size: 17.12px; }
.sidebar ul ul { padding: 0 0 8px 19px; }
.sidebar ul ul a { display: block; padding: 3px 0; font-size: 15.4px; }
.sidebar summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary::after { content: ""; width: 7px; height: 7px; border: solid #999; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-right: 6px; }
.sidebar details[open] summary::after { transform: rotate(-135deg); }
.sidebar .current > a, .sidebar .current > details > summary > a, .sidebar li.current > a { color: #000; font-weight: 700; }
.grid { display: grid; margin: 0 -10px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; padding: 0 9.8px 19.6px; color: var(--blue); }
.card-img { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.1); }
.card-cat { display: block; font-size: 11.56px; line-height: 1.2; letter-spacing: .05em; color: var(--text); text-transform: uppercase; opacity: .7; margin: 1px 0; }
.card-name { display: block; font-size: 15.4px; line-height: 1.6; margin: 1.5px 0; }
.card:hover .card-name { color: #111; }
.cat-desc { padding-top: 25px; }
.cat-desc h1 { font-size: 29.1px; margin-bottom: 14.5px; }

/* ---------- producto (imagen 465 px, info 664 px) */
.product { display: grid; grid-template-columns: 465px 1fr; gap: 30px; padding-top: 18px; padding-bottom: 20px; }
.product .crumbs { margin: 0 0 8px; }
.product-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
/* galería (Rieles): carrusel + miniaturas, medido en vivo 2026-09-30 */
.gal-main { position: relative; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: start; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 93px; border: 0; background: none; color: #111; opacity: 0; transition: opacity .3s; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.gal-btn svg { width: 22px; height: 22px; }
.gal-btn.prev { left: 17px; }
.gal-btn.next { right: 17px; }
.gal-main:hover .gal-btn { opacity: 1; }
.gal-thumbs { display: flex; gap: 19px; margin-top: 14px; }
.gal-thumb { width: 102px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.gal-thumb img { width: 100px; height: 100px; object-fit: cover; opacity: .5; transition: opacity .3s; }
.gal-thumb[aria-current] { border-color: rgba(0,0,0,.2); }
.gal-thumb[aria-current] img, .gal-thumb:hover img { opacity: 1; }
.product-info h1 { font-size: 29.1px; margin: 0 0 14.55px; }
/* la línea del WordPress es el borde punteado de .product_meta, no un divisor del título */
.product-cats { font-size: 13.7px; padding: 5px 0; margin: 0 0 13.7px; border-top: 1px dotted #ddd; }
.tagged_as { display: none; }
.prose p { margin-bottom: 22.3px; }
.prose h2 { font-size: 27.4px; margin-bottom: 13.7px; }
.prose h3 { font-size: 21.4px; margin-bottom: 10.7px; }
.prose img { margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td, .prose th { border: 1px solid #ececec; padding: 6px 8px; }
.prose .button { margin: 0 16px 16px 0; }
.quote { margin-top: 8px; }
.quote p { font-size: 14px; color: #777; margin: 8px 0 0; }
.faq { padding-top: 7px; padding-bottom: 62px; }
.faq h3 { font-size: 31px; margin-bottom: 15.5px; }
.faq h4 { font-size: 19.26px; margin-bottom: 9.63px; }
/* medido en vivo (metaldeck, 2026-09-30): Flatsome usa interlineado 1.6 en títulos y listas con sangría de 1.3em */
.faq h3, .faq h4 { line-height: 1.6; }
.faq p { margin: 0 0 22.256px; }
.faq ul { list-style: disc; padding-left: 0; margin: 0 0 22.256px; }
.faq li { margin: 0 0 10.272px 22.256px; }
.related { border-top: 1px solid #ececec; padding-bottom: 48px; }
.product + .related { margin-top: 47px; } /* ficha sin preguntas frecuentes */
.related h3 { font-size: 21.4px; text-transform: uppercase; letter-spacing: .05em; padding: 15px 0; margin: 0 0 10.7px; }
/* carrusel de 8 relacionados como Flatsome: 4 visibles, flechas al pasar el mouse */
.rel-wrap { position: relative; }
.related .rel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.related .rel-track::-webkit-scrollbar { display: none; }
.related .rel-track .card { flex: 0 0 25%; scroll-snap-align: start; }
.related .card-name { line-height: 1.3; }
.rel-btn { position: absolute; top: -2px; bottom: 0; width: 30px; border: 0; padding: 0; background: #fff; color: #111; opacity: 0; transition: opacity .3s; z-index: 2; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rel-btn svg { width: 18px; height: 18px; }
.rel-btn.prev { left: -14px; }
.rel-btn.next { right: -14px; }
.rel-wrap:hover .rel-btn { opacity: 1; }
.rel-btn[disabled] { opacity: 0 !important; pointer-events: none; }

/* ---------- páginas internas: banner 319 px, título 56 px */
.page-hero { position: relative; height: 319px; display: flex; align-items: flex-start; justify-content: center; padding-top: 90px; overflow: hidden; background: #333; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.page-hero h1 { position: relative; z-index: 1; color: #fff; font-size: 56px; line-height: 1; margin: 0; }

/* Nosotros: texto a la izquierda, tarjeta de misión/visión montada sobre el banner */
.about { display: grid; grid-template-columns: 1fr 565px; gap: 80px; align-items: start; }
.about-text { padding-top: 58px; }
.about-text img { width: 220px; margin-bottom: 18px; }
.about-text .button { min-width: 234px; font-size: 18.4px; min-height: 42px; }
.mv-card { background: #f1f1f1; border-top: 10px solid var(--blue); margin-top: -142px; position: relative; z-index: 2; padding: 76px 85px 80px; }
.mv-card h3 { font-size: 25px; margin-bottom: 26px; }
.mv-card p { display: flex; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e3e3e3; margin-bottom: 36px; }
.mv-card p svg { width: 16px; height: 16px; flex: none; margin-top: 6px; color: var(--green); }
.mv-card p:last-child { margin-bottom: 0; }
.page-about { padding-bottom: 60px; }

/* Clientes: fondo gris, filas logo + fotos en tarjetas blancas */
.clients { background: var(--gray); padding: 40px 0 30px; }
.client-row { display: grid; grid-template-columns: 275px 1fr; gap: 20px; margin-bottom: 45px; }
.client-logo, .client-photos { background: #fff; border-radius: 20px; }
.client-logo { display: grid; place-items: center; padding: 28px; }
.client-logo img { width: 216px; }
.client-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; }
.client-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.client-photos.tall img { aspect-ratio: 3 / 4; }
.client-photos.wide img { aspect-ratio: 4 / 3; }

/* Sede y Contacto: tarjeta gris montada sobre el banner */
.over-card { background: var(--gray); border-radius: 20px; margin-top: -105px; position: relative; z-index: 2; padding: 66px 58px; }
.sede iframe { display: block; width: 100%; height: 450px; border: 0; }
.page-sede { padding-bottom: 30px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 66px 58px 50px 73px; }
.wa-form h2 { font-size: 27.4px; max-width: 420px; margin-bottom: 40px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 6px; margin-bottom: 20px; }
.fields label { font-size: 15.4px; font-weight: 700; color: #222; display: grid; gap: 8px; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields textarea { font: inherit; font-size: 16.6px; font-weight: 400; color: #333; background: rgba(0,0,0,.03); border: 1px solid #ddd; border-radius: 99px; height: 40px; padding: 0 12px; }
.fields textarea { border-radius: 15px; height: 120px; padding: 11px 12px; resize: vertical; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-note { font-size: 13px; color: #777; margin-top: 10px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 30px; align-content: start; padding-top: 30px; }
.contact-info img { width: 46px; height: 46px; margin-bottom: 17px; }
.contact-info h3 { font-size: 21.4px; margin-bottom: 11px; }
.contact-info h5 { font-size: 17.12px; margin: 0 0 6px; }
.contact-info p { margin-bottom: 14px; }
.contact-info a.plain { color: var(--text); }
.map-full { display: block; width: 100%; height: 450px; border: 0; margin-top: 30px; }
.notfound { text-align: center; padding: 40px 0; }

/* ---------- footer (negro, 4 columnas de 275 px, flechas verdes) */
.site-footer { background: #000; color: #f1f1f1; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 60px; }
.site-footer h4 { color: #fff; font-size: 19.26px; line-height: 1.6; margin: 0 0 9.6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { position: relative; padding: 7px 0 7px 25px; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 15.4px; line-height: 1.6; }
.site-footer li svg { position: absolute; left: 0; top: 11px; width: 12px; height: 12px; color: var(--green); }
.site-footer a { color: #f1f1f1; }
.site-footer a:hover { color: #fff; }
.footer-kw { padding-top: 57px; padding-bottom: 76px; }
.footer-kw::before { content: ""; display: block; height: 2px; background: #fff; margin-bottom: 15px; }
.footer-kw p { font-size: 12.3px; line-height: 1.35; margin: 0; }
.footer-bottom { background: #262626; color: rgba(255,255,255,.8); text-align: center; font-size: 15.4px; padding: 10px 0 15px; }
.footer-bottom strong { color: #fff; }

/* ---------- WhatsApp flotante (como Joinchat: botón verde + etiqueta) */
.wa-float { position: fixed; right: 28px; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 14px; color: var(--wa); }
.wa-float .wa-label { background: #fff; color: rgba(0,0,0,.8); font-size: 16px; line-height: 32px; padding: 0 14px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.wa-float .wa-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 1px 6px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover .wa-btn { transform: scale(1.08); }
.wa-float svg { width: 36px; height: 36px; }

/* ---------- tablet */
@media (max-width: 1180px) {
  .header-main { gap: 18px; }
  .contact-box span, .contact-box h5 { font-size: 16px; }
  .search input { width: 180px; }
  .promos { grid-template-columns: repeat(2, 1fr); }
  .promo img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mv-card { padding: 50px 40px; }
}
@media (max-width: 1000px) {
  .contact-box > span { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .product { grid-template-columns: 1fr 1fr; }
}

/* ---------- móvil (Flatsome pasa a móvil en 849 px) */
@media (max-width: 849px) {
  body { font-size: 16px; }
  .topbar { font-size: 11px; height: auto; padding: 6px 10px; }
  .header-main { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 8px 12px; }
  .menu-btn { display: block; }
  .logo { margin-right: auto; }
  .logo img { width: 160px; }
  .contact-box { order: 2; }
  .contact-box.first { margin-left: 0; }
  .contact-box img { width: 42px; }
  .search { order: 3; flex-basis: 100%; }
  .search input { width: 100%; flex: 1; }
  .search-results { width: 100%; }
  .main-nav { position: fixed; inset: 0 25% 0 0; z-index: 70; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; }
  .main-nav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
  .main-nav > .wrap > ul { flex-direction: column; gap: 0; padding-top: 8px; }
  .main-nav > .wrap > ul > li > a, .sub-toggle { height: auto; font-size: 16px; padding: 12px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.2); }
  .main-nav > .wrap > ul > li.active > a, .main-nav > .wrap > ul > li.active > .sub-toggle { color: #fff; font-weight: 700; }
  .menu-close { display: block; color: #fff; margin: 10px 0 0 auto; }
  .sub { position: static; width: auto; box-shadow: none; margin: 8px 0; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .hero { height: 380px; }
  .slide-text h1, .slide-text h2 { font-size: 28px; margin-bottom: 24px; }
  .button.lg { font-size: 16px; min-height: 40px; }
  .intro { padding: 50px 0 60px; }
  .intro-grid, .about, .listing, .product, .client-row { grid-template-columns: 1fr; }
  .intro h3 { font-size: 26px; }
  .intro h3 span { font-size: 42px; }
  .section-title { font-size: 26px; line-height: 1.1; }
  .section-title small, .section-title > h2.st-sub { font-size: 18px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tile { height: 150px; }
  .tile .tile-t { font-size: 24px; }
  .tabs { padding: 0 10px 20px; }
  .tablist button { font-size: 14px; height: 34px; }
  .panel { grid-template-columns: 1fr; gap: 12px; }
  .panel img { width: 110px; height: 110px; }
  .promos { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { order: 2; }
  .band { padding: 40px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .footer-kw { padding-top: 30px; padding-bottom: 40px; }
  .page-hero { height: 200px; padding-top: 60px; }
  .page-hero h1 { font-size: 36px; }
  .over-card, .mv-card { margin-top: 0; }
  .over-card { padding: 20px; border-radius: 12px; }
  .mv-card { padding: 36px 24px; }
  .about-text { padding-top: 30px; }
  .fields { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .wa-float .wa-label { display: none; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float .wa-btn { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- ajuste fino de alturas contra el sitio en vivo (medido sección por sección) */
.intro h3 { line-height: 1.25; }
.section-title { line-height: 1; margin: 15px 0 55px; }
.section-title.with-sub { line-height: .75; margin-bottom: 28px; }
.section-title small, .section-title > h2.st-sub { margin-top: 5px; }
.tiles { row-gap: 48px; }
.tabs { padding: 0 15px; margin-bottom: 36px; }
.panel { padding: 29px 0 30px; }
.promos { margin-top: -10px; margin-bottom: 30px; }
.footer-kw { padding-bottom: 115px; }
.intro { padding-bottom: 133px; }
.tabs { margin-bottom: 27px; }
.promos { margin-bottom: 16px; }
.site-footer li { font-size: 15.4px; line-height: 27.4px; }
.site-footer li svg { top: 14px; }
.listing { gap: 30px; }
.card { padding-bottom: 31.6px; }
.card { padding-bottom: 35.6px; }
.footer-kw { padding-bottom: 101px; }
.mv-card p { padding-bottom: 4px; margin-bottom: 34px; }
.mv-card p svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5px; }
.wa-form h2 { font-size: 33px; margin-bottom: 47px; }
.page-hero.center { align-items: center; padding-top: 0; }
.clients { padding-top: 51px; }
.client-row { margin-bottom: 60px; }
.footer-cols { padding-top: 88px; }
.footer-kw { padding-bottom: 73px; }
.over-card.sede { padding-bottom: 54px; }
.mv-card { padding: 75px 60px 78px 85px; }
.mv-card h3 { font-size: 25px; line-height: 40px; margin-bottom: 12px; }
.mv-card p { gap: 8px; padding-bottom: 15px; margin-bottom: 22px; }
.mv-card p svg { width: 16px; height: 16px; }

/* ---------- piezas que solo existen en un tamaño */
.tb-mob, .feat-m, .search-m { display: none; }

/* ---------- MÓVIL: copia del layout de Flatsome medido a 390 px (2026-09-26) */
@media (max-width: 849px) {
  .topbar { background: var(--blue); height: 33px; padding: 0; }
  .tb-desk { display: none; }
  .tb-mob { display: flex; gap: 9px; }
  .tb-mob a { color: #fff; font-size: 12px; font-weight: 700; }
  .header-main { flex-wrap: nowrap; min-height: 70px; padding-top: 0; padding-bottom: 0; gap: 0; }
  .logo { order: 1; margin-right: auto; }
  .logo img { width: 221px; }
  .menu-btn { order: 2; display: block; padding: 0; width: 26px; }
  .header-main > .search, .header-main > .contact-box { display: none; }
  .search-m { display: flex; margin: 10px 0 6px; }
  .search-m input { width: 100%; flex: 1; background: #fff; }
  .search-m .search-results { width: 100%; }
  .hero { height: 423px; }
  .slide-text h1, .slide-text h2 { font-size: 44.8px; line-height: 1; margin-bottom: 40px; }
  /* medido en vivo (2026-09-30): el texto arranca arriba, no centrado; la diapositiva 2 usa título más chico */
  .slide-text { justify-content: flex-start; padding-top: 94px; }
  .slide-text h1 { margin-bottom: 46px; }
  .slide-text h2 { font-size: 34.8px; margin-bottom: 43px; }
  .button.lg { font-size: 14.08px; min-height: 36px; padding: 0 16px; }
  .intro { padding: 32px 0 60px; min-height: 425px; }
  .intro-grid { gap: 18px; }
  .intro h3 { font-size: 26.4px; line-height: 1.25; }
  .intro h3 span { font-size: 45.9px; }
  .band { padding: 37px 0 60px; }
  .section-title { font-size: 41.6px; line-height: 1; margin: 0 0 24px; }
  .section-title.with-sub { line-height: 1; margin-bottom: 24px; }
  .section-title small, .section-title > h2.st-sub { font-size: 17.28px; margin-top: 5px; }
  .tiles { grid-template-columns: 1fr; gap: 30px; }
  .tile { height: 250px; }
  .tile .tile-t { font-size: 29.76px; }
  .tabs { display: none; }
  .feat-m { display: block; padding: 0 15px; }
  .feat-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; scrollbar-width: none; }
  .feat-track::-webkit-scrollbar { display: none; }
  .feat-item { flex: 0 0 100%; scroll-snap-align: start; text-align: center; color: var(--text); }
  .feat-item img { width: 220px; height: 220px; object-fit: cover; margin: 0 auto 11px; }
  .feat-item h3 { font-size: 17.6px; margin-bottom: 9px; }
  .feat-item p { margin: 0; }
  .feat-dots { display: flex; justify-content: center; margin-top: 18px; }
  .feat-dots button { width: 22px; height: 22px; border: 0; background: none; padding: 0; position: relative; }
  .feat-dots button::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #ccc; }
  .feat-dots button[aria-current="true"]::before { background: #333; }
  .promos { grid-template-columns: 1fr; gap: 30px; margin-top: 0; }
  .promo img { width: 100%; height: 270px; }
  .promo-box { min-height: 192px; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; padding-top: 60px; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float .wa-btn { width: 60px; height: 60px; }
}
@media (max-width: 849px) {
  .section-title.t-feat { font-size: 36.8px; }
  .section-title.t-boxes { font-size: 27px; line-height: 1.2; }
  .tb-mob a { display: inline-flex; align-items: center; gap: 4px; }
  .tb-mob svg { width: 13px; height: 13px; }
}
@media (max-width: 849px) {
  body { font-size: 17.12px; }
  /* ficha: migas, título, imagen y después el texto (como Flatsome en móvil) */
  .product { display: flex; flex-direction: column; gap: 0; }
  .product-media, .product-info { display: contents; }
  .product .crumbs { display: none; } /* en el WordPress móvil la ficha no muestra migas */
  .product-info h1 { order: 2; font-size: 23.97px; line-height: 1.3; margin: 19px 0 12px; }
  .product-img { order: 3; margin-bottom: 0; }
  .gal-thumbs { gap: 20px; margin-top: 10px; }
  .gal-thumb { width: 75px; }
  .gal-thumb img { width: 73px; height: 73px; }
  .product-cats { order: 4; }
  .product-info .prose { order: 5; }
  .prose h3 { font-size: 17.12px; margin-bottom: 8.6px; }
  .prose h2 { font-size: 20.5px; margin-bottom: 10.3px; }
  .cat-desc h1 { font-size: 23.97px; margin-bottom: 11.98px; }
  .faq h3 { font-size: 24.8px; margin-bottom: 12.4px; }
  .faq h4 { font-size: 17.12px; margin-bottom: 8.6px; }
  .related h3 { font-size: 17.12px; }
  .related { padding-bottom: 14px; }
  .product + .related { margin-top: 0; }
  .faq { padding-bottom: 24px; }
  .related .rel-track .card { flex: 0 0 50%; }
  .related .card-cat { font-size: 10.91px; }
  .related .card-name { font-size: 14.55px; }
  .rel-btn { width: 24px; background: transparent; opacity: .8; }
  .rel-btn.prev { left: -11px; }
  .rel-btn.next { right: -11px; }
}
.filter-btn { display: none; }
@media (max-width: 849px) {
  .crumbs.big { text-align: center; font-size: 17.12px; margin: 25px 0 0; }
  .filter-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto 45px; padding: 15.5px 0; background: none; border: 0; font-size: 14.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
  .filter-btn svg { width: 18px; height: 18px; }
  .listing .sidebar { display: none; order: -1; }
  .listing .sidebar.open { display: block; margin-bottom: 20px; }
}
@media (max-width: 849px) {
  .page-hero { height: 240px; align-items: center; padding-top: 0; }
  .page-hero h1 { font-size: 47px; text-align: center; padding: 0 15px; }
  .over-card, .mv-card { margin-top: 30px; }
  .over-card { padding: 50px 20px 30px; border-radius: 20px; }
  /* medido en vivo a 390 px (getComputedStyle, 2026-09-30) */
  .contact-card { padding: 48px 35px 53px; gap: 20px; }
  .wa-form h2 { font-size: 24.65px; line-height: 1.3; margin-bottom: 37px; }
  .fields { gap: 23px; margin-bottom: 21px; }
  .fields label { gap: 6px; }
  .fields input, .fields textarea { font-size: 16px; }
  .contact-info { padding-top: 25px; gap: 52px; }
  .contact-info img { width: 44px; height: 44px; margin-bottom: 16px; }
  .contact-info h3, .contact-info h5 { font-size: 17.12px; line-height: 1.6; margin: 0 0 9px; }
  .contact-info p { margin-bottom: 0; }
  .contact-info p + h5 { margin-top: 24px; }
  .mv-card h3 { font-size: 20px; }
  .mv-card { padding: 50px 30px; }
}
@media (max-width: 849px) { .about-text { padding-left: 15px; padding-right: 15px; } }

/* ---------- menú del celular: copia del off-canvas de Flatsome (medido 2026-09-30) */
.m-menu { display: none; }
@media (max-width: 849px) {
  .main-nav { display: none; }
  .m-menu { display: block; position: fixed; inset: 0; z-index: 90; visibility: hidden; }
  .m-menu.open { visibility: visible; }
  .m-overlay { position: absolute; inset: 0; background: rgb(10,10,10); opacity: 0; transition: opacity .3s; }
  .m-menu.open .m-overlay { opacity: .6; }
  .m-close { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border: 0; background: none; color: #fff; opacity: 0; padding: 8px; }
  .m-menu.open .m-close { opacity: .6; }
  .m-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 300px; background: rgba(255,255,255,.95); box-shadow: 0 0 10px rgba(0,0,0,.5); transform: translateX(-100%); transition: transform .3s; overflow-y: auto; }
  .m-menu.open .m-drawer { transform: none; }
  .m-panel { list-style: none; margin: 0; padding: 20px 0 0; }
  .m-panel li { position: relative; border-top: 1px solid #ececec; }
  .m-panel li.m-logo, .m-panel li.m-head { border-top: 0; }
  .m-logo { padding: 20px; }
  .m-logo img { width: 200px; height: auto; display: block; }
  .m-panel a { display: block; padding: 15px 20px; font-size: 13.696px; line-height: 1.6; letter-spacing: .02em; color: rgba(74,74,74,.85); }
  .m-sub a { text-transform: uppercase; padding-left: 29px; }
  .m-toggle { position: absolute; right: 5px; top: 5px; width: 45px; height: 42px; border: 0; background: none; color: #555; display: flex; align-items: center; justify-content: center; }
  .m-toggle svg, .m-back svg { width: 22px; height: 22px; }
  .m-head { padding: 15px 0 15px 9px; }
  .m-back { display: flex; align-items: center; gap: 5px; height: 42px; border: 0; background: none; font-size: 16.6px; font-weight: 700; color: #777; padding: 0; }
}

/* ---------- menú amplio "Productos" (escritorio), medido en vivo 2026-09-30 */
@media (min-width: 850px) {
  .main-nav > .wrap { position: relative; }
  .main-nav li.mega-parent { position: static; }
  .sub.mega { left: 15px; right: 15px; width: auto; max-height: none; overflow: visible; padding: 13px 20px 1px; border: 2px solid #ddd; box-shadow: 1px 1px 15px rgba(0,0,0,.15); }
  .has-sub.mega-parent:hover .sub.mega, .has-sub.mega-parent.open .sub.mega { display: grid; grid-template-columns: repeat(4, 1fr); }
  .sub.mega > div { padding: 0 9.8px 19.6px; }
  .sub.mega h4 { font-size: 16.2px; line-height: 1.1; font-weight: 700; color: #0a0a0a; margin: 0 0 8.1px; }
  .sub.mega ul { margin: 0 0 15.84px; padding: 0; list-style: none; }
  .sub.mega ul:last-child { margin-bottom: 0; }
  .sub.mega li { position: relative; padding: 7px 0 7px 25px; border-bottom: 1px solid #ececec; font-size: 14.4px; line-height: 15.84px; }
  .sub.mega li svg { position: absolute; left: 0; top: 10px; width: 12px; height: 12px; color: var(--green); }
  .sub.mega li a { display: inline; padding: 0; border: 0; background: none; font-size: 12.96px; line-height: 14.256px; color: var(--blue); }
  .sub.mega li a:hover { color: #111; background: none; }
}
