/* ==========================================================================
   MathrA by Canteras — estilos del tema
   Mobile-first. Medidas de referencia tomadas del diseño a 1440 px.
   ========================================================================== */

/* ---- Fuentes locales ---------------------------------------------------- */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/poppins-300i.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-var.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 700; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-italic-var.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Now Cn"; font-weight: 300; font-display: swap; src: url("../fonts/helveticanow-cn-300.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Now Cn"; font-weight: 400; font-display: swap; src: url("../fonts/helveticanow-cn-400.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Now Cn"; font-weight: 500; font-display: swap; src: url("../fonts/helveticanow-cn-500.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Now Cn"; font-weight: 700; font-display: swap; src: url("../fonts/helveticanow-cn-700.woff2") format("woff2"); }

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --brown: #7a6e67;        /* títulos, footer, marca */
  --brown-dark: #5c524b;   /* centro del degradé institucional */
  --brown-deep: #6c615a;   /* tab activo */
  --brown-light: #988c84;
  --taupe: #ada6a0;        /* cuerpo de texto claro, íconos */
  --taupe-light: #c9c2bb;
  --sand: #e3dcd7;         /* extremo cálido del hero */
  --sand-light: #f3f1ef;
  --hero-claim: #dad6d4;
  --copper: #b26734;
  --copper-light: #b27449; /* claim sobre by Canteras */
  --copper-deep: #6c4326;
  --white: #fff;
  --ink: #3f3732;

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-cn: "Helvetica Now Cn", "Helvetica Neue", Arial, sans-serif;

  --container: 1080px;
  --gutter: clamp(20px, 5vw, 60px);
  --header-h: 92px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}
@media (min-width: 1024px) { :root { --header-h: 130px; } }

/* ---- Reset mínimo ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--brown); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 8px 12px; background: var(--white); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { max-width: 760px; }
[id] { scroll-margin-top: calc(var(--header-h) - 30px); }

.icon { width: 1em; height: 1em; }
.link-underline { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid currentColor; transition: color .2s var(--ease), border-color .2s var(--ease); }
.link-underline:hover { color: var(--copper); }

/* Prosa editable (ACF wysiwyg) */
.prose p + p { margin-top: 1.5em; }
.prose strong { font-weight: 500; }
.prose--light { color: var(--white); }

/* Fondos low-poly: los degradés base son CSS; la malla de facetas del diseño va como SVG posicionado (bg-*.svg)
   en una capa ::before con una deriva muy lenta (escala/desplazamiento de unos pocos px). */
/* La malla, más ancha que la sección, se desplaza de un lado al otro (≈ 15 % del ancho) y respira en escala;
   un haz de luz suave la recorre de izquierda a derecha cada pocos segundos. */
 }

/* ---- Animaciones sutiles ------------------------------------------------ */
/* Aparición al scrollear (main.js agrega .is-visible con IntersectionObserver) */
.reveal { opacity: 0; transition: opacity 1s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; }
.reveal--mask { opacity: 0; transition: opacity 1s var(--ease); }
.reveal--mask.is-visible { opacity: 1; }
.no-js .reveal { opacity: 1; transform: none; }
/* Claim del hero: línea por línea */
.hero__claim .line, .canteras__claim .line { display: inline-block; opacity: 0; animation: line-in 1.2s var(--ease) forwards; }
.hero__claim .line:nth-child(2) { animation-delay: .12s; } .hero__claim .line:nth-child(3) { animation-delay: .24s; } .hero__claim .line:nth-child(4) { animation-delay: .36s; }
.canteras__claim .line { animation-play-state: paused; } .canteras__claim.is-visible .line { animation-play-state: running; } .canteras__claim .line:nth-child(2) { animation-delay: .18s; }
@keyframes line-in { to { opacity: 1; } }
/* Botones y formulario */
.btn, .mgar__btn { transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.contact-form__status { opacity: 0; transition: opacity .4s var(--ease); }
.contact-form__status.is-success, .contact-form__status.is-error { opacity: 1; }
/* Pestaña cobre: respiración muy leve */
@media (prefers-reduced-motion: reduce) { .hero::before, .nosotros::before, .canteras::before, .colecciones::before, .atributos::before, .contacto::before, .site-footer::before { animation: none !important; } .tab-copper svg, .hero__claim .line, .canteras__claim .line, .video img, .site-header__logo, .site-nav__list li, .site-nav__aside, .site-header__tools { animation: none !important; } .hero__claim .line, .canteras__claim .line, .reveal, .reveal--mask, .nosotros__text p, .catalogo__info > *, .site-footer__col, .nosotros__watermark { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; animation: none !important; }  .catalogo__fig img { transform: none !important; } .video__play circle { stroke-dashoffset: 0 !important; transition: none !important; } }

/* Pestaña cobre que une secciones (hero → nosotros, contacto → footer) */
.tab-copper { position: absolute; left: 50%; bottom: 0; width: clamp(56px, 6.4vw, 92px); transform: translateX(-50%); line-height: 0; color: var(--copper); }
.tab-copper svg { width: 100%; height: auto; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); transition: height .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s; }
.site-header.is-scrolled { height: 72px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 rgba(122, 110, 103, .1); }
.site-header.is-scrolled .site-header__logo { width: 112px; }
.site-header__logo .logo { transition: width .4s var(--ease); }
/* entrada del header al cargar */
.site-header__logo, .site-nav__list li, .site-nav__aside, .site-header__tools { animation: head-in .9s var(--ease) both; }
.site-nav__list li:nth-child(1) { animation-delay: .15s; } .site-nav__list li:nth-child(2) { animation-delay: .22s; } .site-nav__list li:nth-child(3) { animation-delay: .29s; } .site-nav__list li:nth-child(4) { animation-delay: .36s; }
.site-nav__aside { animation-delay: .45s; } .site-header__tools { animation-delay: .5s; }
@keyframes head-in { from { opacity: 0; } to { opacity: 1; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.site-header__logo { color: var(--brown); display: block; width: clamp(110px, 10.4vw, 150px); }
.site-header__logo .logo { width: 100%; height: auto; }

.site-nav__list { display: flex; gap: clamp(24px, 3.6vw, 52px); }
.site-nav__list a { font-weight: 400; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); transition: color .2s var(--ease); }
.site-nav__list a .lc { text-transform: none; }
.site-nav__list a:hover { color: var(--copper); }
.site-nav__aside { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 8px; font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--taupe); }
.lang-switch li + li::before { content: "·"; margin-right: 8px; }
.lang-switch a { transition: color .2s var(--ease); }
.lang-switch a.is-active, .lang-switch a:hover { color: var(--brown); }

.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 24px; height: 24px; color: var(--brown); transition: color .2s var(--ease); }
.social a:hover { color: var(--copper); }
.social .icon { width: 16px; height: 16px; }

.site-header__tools { display: flex; align-items: center; gap: 14px; }
.search-toggle { display: grid; place-items: center; width: 40px; height: 40px; color: var(--brown); }
.search-toggle .icon { width: 18px; height: 18px; }
.nav-toggle { position: relative; width: 40px; height: 40px; display: grid; place-items: center; gap: 0; }
.nav-toggle__bar { display: block; width: 22px; height: 1.5px; background: var(--brown); position: absolute; left: 9px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bar:nth-child(1) { top: 13px; }
.nav-toggle__bar:nth-child(2) { top: 19px; }
.nav-toggle__bar:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop: nav inline con separadores verticales como el diseño */
@media (min-width: 1024px) {
  .site-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
  .site-nav__aside { padding-left: 28px; border-left: 1px solid var(--taupe-light); height: 40px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  .site-header__tools { padding-left: 20px; border-left: 1px solid var(--taupe-light); height: 40px; }
  .nav-toggle { display: none; }
}
/* Mobile: drawer a pantalla completa */
@media (max-width: 1023.98px) {
  .site-nav { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: var(--header-h) var(--gutter) 40px; background: linear-gradient(160deg, #f8f8f8, var(--sand)); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .site-nav__list li, .site-nav__aside { animation: none; opacity: 0; transition: opacity .5s var(--ease); }
  .site-nav.is-open .site-nav__list li, .site-nav.is-open .site-nav__aside { opacity: 1; }
  .site-nav.is-open .site-nav__list li:nth-child(1) { transition-delay: .15s; } .site-nav.is-open .site-nav__list li:nth-child(2) { transition-delay: .22s; } .site-nav.is-open .site-nav__list li:nth-child(3) { transition-delay: .29s; } .site-nav.is-open .site-nav__list li:nth-child(4) { transition-delay: .36s; } .site-nav.is-open .site-nav__aside { transition-delay: .45s; }
  .site-nav__list { flex-direction: column; gap: 28px; }
  .site-nav__list a { font-size: 20px; }
  .site-nav__aside { flex-direction: column; align-items: flex-start; gap: 24px; }
  .lang-switch { font-size: 15px; }
  .social .icon { width: 20px; height: 20px; }
  .site-header__tools, .site-header__logo { position: relative; z-index: 45; }
  body.nav-open { overflow: hidden; }
}

/* Buscador (overlay) */
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(248, 248, 248, .97); overflow-y: auto; opacity: 0; transition: opacity .35s var(--ease); }
.search-overlay.is-open { opacity: 1; }
.search-overlay[hidden] { display: none; }
.search-overlay__inner { transform: translateY(-14px); transition: transform .45s var(--ease); }
.search-overlay.is-open .search-overlay__inner { transform: none; }
.search-results__list li { animation: result-in .35s var(--ease) both; }
.search-results__list li:nth-child(2) { animation-delay: .05s; } .search-results__list li:nth-child(3) { animation-delay: .1s; } .search-results__list li:nth-child(4) { animation-delay: .15s; }
@keyframes result-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-overlay__inner { padding: clamp(80px, 12vh, 140px) 0 60px; }
.search-overlay__close { position: absolute; top: 18px; right: var(--gutter); font-size: 40px; line-height: 1; color: var(--brown); width: 48px; height: 48px; }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--brown); }
.search-form__input { flex: 1; border: 0; background: none; padding: 12px 0; font-size: clamp(20px, 3vw, 32px); font-weight: 300; color: var(--brown); outline: none; }
.search-form__input::placeholder { color: var(--taupe); }
.search-form__submit { color: var(--brown); display: grid; place-items: center; width: 44px; height: 44px; }
.search-form__submit .icon { width: 24px; height: 24px; }
.search-results { margin-top: 32px; }
body.search-open { overflow: hidden; }
.search-hint { margin-top: 14px; font-size: 14px; color: var(--taupe); }
.search-results.is-loading { opacity: .5; }
.search-results__empty { color: var(--taupe); font-size: 18px; }
.search-results__list { display: grid; gap: 6px; }
.search-result { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 18px; padding: 10px 12px 10px 0; border-bottom: 1px solid #e6e1dc; transition: background .2s; }
.search-result:hover { background: rgba(122, 110, 103, .06); }
.search-result img, .search-result__noimg { width: 72px; height: 36px; object-fit: cover; background: #e6e1dc; display: block; }
.search-result__name { display: block; font-weight: 400; font-size: 18px; color: var(--brown); }
.search-result__meta { display: block; font-size: 13px; color: var(--taupe); margin-top: 2px; }
.search-result__meta code { font-family: inherit; letter-spacing: .08em; }
.search-result__go { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); white-space: nowrap; }
@media (max-width: 600px) { .search-result { grid-template-columns: 56px 1fr; } .search-result__go { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(520px, 53.5vw, 770px); padding-top: calc(var(--header-h) + clamp(60px, 8vw, 120px)); padding-bottom: 110px; display: flex; align-items: flex-start;
  /* ::after = degradé exacto del editable; ::before = malla de facetas del editable en movimiento lento */
  background: linear-gradient(100deg, #f9f9f9 0%, #ededed 38%, #e9e5e2 68%, var(--sand) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/bg-hero.webp") center / 100% 100% no-repeat; pointer-events: none; }
.hero::before { content: ""; position: absolute; top: -8%; bottom: -8%; left: -22%; width: 144%; z-index: -1; background: url("../img/bg-hero-soft.svg") center / cover no-repeat; opacity: .45; animation: bg-pan 22s ease-in-out infinite alternate; will-change: transform; pointer-events: none; }
.hero__claim { font-weight: 300; font-size: clamp(54px, 6.7vw, 96px); line-height: .98; letter-spacing: -.01em; color: var(--hero-claim); max-width: 6.2em; }

/* ==========================================================================
   Nosotros (bloque institucional)
   ========================================================================== */
.nosotros { position: relative; isolation: isolate; overflow: hidden; color: var(--white); padding: clamp(80px, 10vw, 150px) 0 clamp(90px, 11vw, 170px);
  background: linear-gradient(100deg, var(--brown) 0%, #6a5f57 22%, var(--brown-dark) 42%, #7d716a 72%, var(--brown-light) 100%); }
/* Fondo: ::after = el degradé exacto del editable (render del PDF, sin texto ni "A"); ::before = la malla de facetas del editable (SVG vectorial), tenue, desplazándose despacio. */
.nosotros::after { content: ""; position: absolute; inset: 0; z-index: -3; background: url("../img/bg-nosotros.webp") center / 100% 100% no-repeat; pointer-events: none; }
.nosotros::before { content: ""; position: absolute; top: -8%; bottom: -8%; left: -22%; width: 144%; z-index: -2; background: url("../img/bg-nosotros-soft.svg") center / cover no-repeat; opacity: .4; animation: bg-pan 26s ease-in-out infinite alternate-reverse; will-change: transform; pointer-events: none; }
/* la misma malla de facetas sobre las secciones blancas y el footer */
.colecciones::before, .atributos::before, .contacto::before, .site-footer::before { content: ""; position: absolute; top: -8%; bottom: -8%; left: -22%; width: 144%; z-index: -1; background: url("../img/bg-white-soft.svg") center / cover no-repeat; opacity: .5; animation: bg-pan 28s ease-in-out infinite alternate; will-change: transform; pointer-events: none; }
.atributos::before { animation-duration: 24s; animation-direction: alternate-reverse; }
.contacto::before { animation-duration: 30s; }
.site-footer::before { background-image: url("../img/bg-footer-soft.svg"); opacity: .4; animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes bg-pan { from { transform: translate3d(-5%, -1.5%, 0) scale(1.02); } to { transform: translate3d(5%, 1.5%, 0) scale(1.07); } }
/* "A" del editable: silueta plana (watermark-a.svg como máscara) que emerge del fondo al entrar en pantalla */
.nosotros__watermark { position: absolute; z-index: -1; left: max(var(--gutter), calc((100% - var(--container)) / 2)); top: 50%; translate: 0 -50%; width: 16.54vw; min-width: 150px; aspect-ratio: 238.13 / 510.79; pointer-events: none; background: #6b625c;
  -webkit-mask: url("../img/watermark-a.svg") no-repeat center / 100% 100%; mask: url("../img/watermark-a.svg") no-repeat center / 100% 100%;
  opacity: 0; transform: translateY(36px) scale(.985); filter: blur(16px); transition: opacity 1.8s var(--ease) .15s, transform 2s cubic-bezier(.2,.6,.2,1) .15s, filter 1.8s var(--ease) .15s; }
.nosotros__watermark.is-visible, .elementor-editor-active .nosotros__watermark { opacity: 1; transform: none; filter: none; }
@media (max-width: 767.98px) { .nosotros__watermark { left: 6%; width: 34vw; } .nosotros__watermark.is-visible { opacity: .6; } }
.nosotros__text p { opacity: 0; transition: opacity .9s var(--ease); }
.nosotros__text.is-visible p { opacity: 1; }
.nosotros__text.is-visible p:nth-child(2) { transition-delay: .15s; } .nosotros__text.is-visible p:nth-child(3) { transition-delay: .3s; } .nosotros__text.is-visible p:nth-child(4) { transition-delay: .45s; }
.nosotros__inner { display: grid; }
.nosotros__text { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; }
@media (min-width: 768px) {
  .nosotros__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nosotros__text { grid-column: 2; max-width: 520px; }
}

/* ==========================================================================
   Colecciones
   ========================================================================== */
.colecciones { position: relative; isolation: isolate; overflow: hidden; padding: clamp(70px, 8.5vw, 120px) 0 0; }
.colecciones__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(42px, 4vw, 58px); line-height: 1; color: var(--brown); }
.colecciones__intro { margin-top: clamp(28px, 3vw, 44px); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.75; color: var(--taupe); }
.colecciones__intro p + p { margin-top: 1.2em; }

.col-tabs { position: relative; display: flex; gap: clamp(22px, 3vw, 40px); margin-top: clamp(44px, 5.5vw, 80px); overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.col-tabs__ind { display: none; }
.col-tabs::-webkit-scrollbar { display: none; }
.col-tab { flex: 0 0 auto; font-family: var(--font-serif); color: var(--taupe-light); white-space: nowrap; transition: color .4s var(--ease); line-height: 1; }
.col-tab__num { font-weight: 600; font-size: clamp(28px, 2.6vw, 36px); }
.col-tab__word { font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); }
.col-tab:hover, .col-tab.is-active { color: var(--brown-deep); }

.catalogo { position: relative; display: grid; grid-template-columns: 1fr; margin-top: clamp(34px, 3.6vw, 52px); }
/* Todos los productos se apilan en la misma celda. El activo entra desde el lado hacia el que se avanza
   (--dir: 1 siguiente, -1 anterior), el saliente se va hacia el lado opuesto, y un barrido cobre descubre cada imagen. */
.catalogo { --dir: 1; overflow: hidden; }
.producto { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr; grid-template-areas: "material" "info" "aplicacion"; gap: 34px; opacity: 0; transform: translateX(calc(var(--dir) * 6px)); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.producto.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; z-index: 1; }
.producto.is-leaving { opacity: 0; transform: translateX(calc(var(--dir) * -6px)); }
.producto[hidden] { display: none; }
.catalogo__fig { position: relative; overflow: hidden; background: #ece8e4; }
.catalogo__fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.producto.is-active .catalogo__fig img { transform: scale(1); }

.catalogo__fig--material { grid-area: material; aspect-ratio: 2 / 1; }
.catalogo__fig--aplicacion { grid-area: aplicacion; aspect-ratio: 1 / 1; cursor: zoom-in; }
.catalogo__zoom { position: absolute; right: 14px; bottom: 14px; width: 28px; height: 28px; color: var(--white); filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .35)); transition: transform .2s var(--ease); }
.catalogo__zoom:hover { opacity: .8; }
.catalogo__zoom { z-index: 3; transition: opacity .3s; }
.catalogo__zoom svg { width: 100%; height: 100%; }

.catalogo__info { grid-area: info; position: relative; text-align: center; padding: clamp(0px, 1.5vw, 22px) 48px 0; }
.catalogo__label { font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.catalogo__name { margin-top: 18px; font-weight: 400; font-size: clamp(24px, 2vw, 28px); line-height: 1.1; color: var(--brown); }
.catalogo__finish { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; color: var(--taupe); margin-top: 4px; }
.catalogo__ref { margin-top: 10px; font-size: 12px; letter-spacing: .12em; color: var(--taupe-light); }

/* Flechas y puntos: una sola capa sobre la zona "info" del producto activo */
.catalogo__nav { grid-area: 1 / 1; align-self: start; display: grid; grid-template-columns: 1fr; grid-template-areas: "material" "info" "aplicacion"; gap: 34px; pointer-events: none; z-index: 2; }
.catalogo__nav::before { content: ""; grid-area: material; aspect-ratio: 2 / 1; }
.catalogo__arrow { grid-area: info; align-self: start; margin-top: clamp(26px, 3.4vw, 50px); width: 40px; height: 40px; display: grid; place-items: center; color: var(--taupe-light); pointer-events: auto; transition: color .2s var(--ease); }
.catalogo__arrow:hover { color: var(--brown); }
.catalogo__arrow:disabled { opacity: .3; pointer-events: none; }
.catalogo__arrow svg { width: 12px; height: auto; }
.catalogo__arrow--prev { justify-self: start; }
.catalogo__arrow--next { justify-self: end; }
.catalogo__dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.catalogo__dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--taupe-light); cursor: pointer; transition: background .4s; }
.catalogo__dots li.is-active { background: var(--brown); }
.catalogo__empty { grid-area: 1 / 1; text-align: center; color: var(--taupe); padding: 60px 0; }
.catalogo__empty[hidden] { display: none; }
@media (min-width: 768px) {
  .producto, .catalogo__nav { grid-template-columns: 1fr 1fr; grid-template-areas: "material aplicacion" "info aplicacion"; align-items: start; }
}
/* swipe en mobile */
.catalogo { touch-action: pan-y; }

/* Galería propia: la foto se expande desde su lugar en el carrusel hasta el centro (FLIP) y vuelve al cerrar */
.lb { position: fixed; inset: 0; z-index: 70; display: none; }
.lb.is-on { display: block; }
.lb__bg { position: absolute; inset: 0; background: rgba(63, 55, 50, .92); opacity: 0; transition: opacity .5s var(--ease); }
.lb.is-open .lb__bg { opacity: 1; }
.lb__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: top left; will-change: transform; opacity: 1; }
.lb__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.lb__full.is-in { opacity: 1; }
.lb__frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1100px, 100vw - 48px); height: min(80vh, 100vh - 160px); }
.lb__caption { position: absolute; left: 0; right: 0; bottom: 36px; text-align: center; color: var(--white); font-weight: 300; font-size: 15px; letter-spacing: .04em; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease) .25s, transform .5s var(--ease) .25s; pointer-events: none; }
.lb__caption b { font-weight: 400; }
.lb__caption small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-light); }
.lb.is-open .lb__caption { opacity: 1; transform: none; }
.lb__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; color: var(--white); opacity: 0; transition: opacity .4s var(--ease) .3s, color .25s; }
.lb.is-open .lb__btn { opacity: .75; }
.lb__btn:hover { opacity: 1 !important; color: #e6c6ad; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb__counter { position: absolute; top: 30px; left: 32px; color: var(--taupe-light); font-size: 12px; letter-spacing: .18em; opacity: 0; transition: opacity .4s var(--ease) .3s; }
.lb.is-open .lb__counter { opacity: 1; }
body.lb-open { overflow: hidden; }
@media (max-width: 767.98px) { .lb__frame { width: 100vw; height: calc(100vh - 150px); } .lb__prev, .lb__next { display: none; } .lb__caption { bottom: 24px; padding: 0 20px; } }
.catalogo__zoom.is-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lb__img { transition: none !important; } }
/* (reglas anteriores) */
.glightbox-clean .gslide-description { background: var(--brown); }
.glightbox-clean .gslide-title { font-family: var(--font-sans); font-weight: 300; font-size: 15px; color: var(--white); letter-spacing: .04em; }
.glightbox-clean .gnext, .glightbox-clean .gprev, .glightbox-clean .gclose { background: rgba(122, 110, 103, .6); }

.catalogo__download { text-align: center; margin: clamp(60px, 8vw, 110px) 0 0; }
.catalogo__download a { font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.catalogo__download a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   Atributos
   ========================================================================== */
.atributos { position: relative; isolation: isolate; overflow: hidden; padding: clamp(60px, 7.5vw, 105px) 0 clamp(60px, 7.5vw, 110px); }
.atributos__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
.atributo { text-align: center; color: var(--taupe); }
.atributo__icon { display: flex; align-items: center; justify-content: center; height: 76px; margin-bottom: 26px; }
.atributo__icon svg, .atributo__icon img { height: 100%; width: auto; max-width: 90px; }
.atributo__text { font-family: var(--font-cn); font-weight: 400; font-size: 15px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; }
@media (min-width: 768px) { .atributos__list { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   by Canteras
   ========================================================================== */
.canteras { position: relative; isolation: isolate; color: var(--white); padding: clamp(70px, 8.5vw, 120px) 0 clamp(60px, 6vw, 85px); overflow: hidden;
  background: linear-gradient(112deg, var(--copper) 0%, #9a582f 30%, #7d4a2a 58%, var(--copper-deep) 100%); }
.canteras::before { content: ""; position: absolute; top: -8%; bottom: -8%; left: -22%; width: 144%; z-index: -1; background: url("../img/bg-canteras-hi.svg") center / cover no-repeat; opacity: .42; animation: bg-pan 24s ease-in-out infinite alternate; will-change: transform; pointer-events: none; }
.canteras__logo { display: flex; justify-content: center; }
.canteras__logo svg { width: clamp(180px, 20vw, 290px); height: auto; }
.canteras__claim { margin-top: clamp(28px, 3vw, 44px); font-weight: 300; font-size: clamp(38px, 6.1vw, 88px); line-height: .98; letter-spacing: -.015em; color: var(--copper-light); }
.canteras__brand { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 60px); }
.canteras__brand svg { width: clamp(150px, 15vw, 212px); height: auto; }
.canteras__text { margin-top: clamp(30px, 3.5vw, 50px); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: #f3ece6; }
.canteras__text strong { color: var(--white); }

.video { position: relative; margin-top: clamp(40px, 4.5vw, 64px); aspect-ratio: 16 / 9; background: #2a1c12; overflow: hidden; }
.video img, .video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video img, .video video.video__poster { animation: kenburns 26s ease-in-out infinite alternate; transition: opacity .8s var(--ease), filter .6s var(--ease); will-change: transform; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42, 28, 18, .35), transparent 50%); pointer-events: none; transition: opacity .6s; }
.video:hover img { filter: brightness(1.06); }
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
.video iframe, .video .video__player { opacity: 0; transition: opacity .8s var(--ease) .2s; }
.video.is-playing iframe, .video.is-playing .video__player { opacity: 1; }
.video.is-playing img, .video.is-playing video.video__poster, .video.is-playing::after { opacity: 0; }
.video.is-playing img, .video.is-playing video.video__poster { animation-play-state: paused; }
.video__play { position: absolute; inset: 0; margin: auto; width: clamp(72px, 12.3%, 132px); aspect-ratio: 1; color: var(--white); transition: transform .5s var(--ease), opacity .5s var(--ease); z-index: 1; }
/* el aro del play se dibuja una sola vez cuando el bloque entra en pantalla; al pasar el mouse se llena de cobre */
.video__play circle { stroke-dasharray: 296; stroke-dashoffset: 296; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.6s var(--ease) .25s, fill .45s var(--ease), stroke .45s var(--ease); }
.video.is-visible .video__play circle, .elementor-editor-active .video__play circle { stroke-dashoffset: 0; }
.video__play path { transition: transform .45s var(--ease); }
/* hover: disco de vidrio esmerilado detrás del aro */
.video__play::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .5s var(--ease), -webkit-backdrop-filter .5s var(--ease), backdrop-filter .5s var(--ease); }
.video__play:hover::before { background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video__play svg { position: relative; }
.video__play:hover path { transform: translateX(2px); }
.video__play:hover { transform: scale(1.04); }
.video__play svg { width: 100%; height: 100%; }
.video.is-playing .video__play { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contacto { position: relative; isolation: isolate; overflow: hidden; padding: clamp(70px, 8.5vw, 120px) 0 clamp(90px, 10vw, 150px); }
.contacto__title { font-weight: 400; font-size: clamp(36px, 3.4vw, 48px); line-height: 1; color: var(--brown); }
.contacto__intro { margin-top: clamp(24px, 2.8vw, 40px); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: #8f847c; max-width: 820px; }

.contact-form { display: grid; gap: clamp(40px, 5vw, 70px) 34px; margin-top: clamp(44px, 5.5vw, 80px); }
.field { position: relative; }
.field__input { width: 100%; border: 0; border-bottom: 1px solid var(--brown); border-radius: 0; background: none; padding: 10px 0 8px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; line-height: 1.3; color: var(--ink); outline: none; resize: none; overflow: hidden; transition: border-color .2s; }
.field__label { position: absolute; left: 0; top: 10px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; line-height: 1.3; color: var(--brown); pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label { transform: translateY(-22px) scale(.58); color: var(--taupe); }
.field__input:focus { border-bottom-color: var(--copper); }
.field__label small { font-size: .6em; font-weight: 300; color: var(--taupe); }
.field--select .field__input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23a7795a' stroke-width='1.4'/%3E%3C/svg%3E") right center / 14px 9px no-repeat; }
.field--select .field__input:invalid { color: transparent; }
.field--select .field__input:focus:invalid { color: var(--ink); }
.field--select .field__input:focus + .field__label, .field--select .field__input:valid + .field__label { transform: translateY(-22px) scale(.58); color: var(--taupe); }
.field.has-error .field__input { border-bottom-color: #b2452f; }
.field__error { display: block; min-height: 0; margin-top: 6px; font-size: 13px; color: #b2452f; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__actions { text-align: center; margin-top: clamp(10px, 2vw, 30px); }
.contact-form__status { text-align: center; font-size: 15px; min-height: 1.5em; }
.contact-form__status.is-error { color: #b2452f; }
.contact-form__status.is-success { color: var(--copper); }
@media (min-width: 768px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field--full, .contact-form__actions, .contact-form__status { grid-column: 1 / -1; }
}

.btn { display: inline-block; font-weight: 300; font-size: clamp(20px, 2vw, 28px); line-height: 1; padding: 16px 40px; transition: background .2s var(--ease), color .2s var(--ease); }
.btn--outline { border: 1px solid var(--brown); color: var(--brown); background: var(--white); }
.btn--outline:hover { background: var(--brown); color: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--brown); color: var(--white); padding: clamp(50px, 6vw, 85px) 0 clamp(50px, 5vw, 70px); }
.site-footer__inner { display: grid; gap: 40px; text-align: center; }
.site-footer__col { opacity: 0; transition: opacity 1s var(--ease); }
.site-footer.is-visible .site-footer__col { opacity: 1; }
.site-footer.is-visible .site-footer__col:nth-child(2) { transition-delay: .15s; } .site-footer.is-visible .site-footer__col:nth-child(3) { transition-delay: .3s; }
.site-footer__contact { font-family: var(--font-cn); font-weight: 500; font-size: 13px; line-height: 1.45; letter-spacing: .02em; }
.site-footer__contact p + p { margin-top: 10px; }
.site-footer__contact .lbl { font-weight: 500; }
.site-footer__contact a:hover { text-decoration: underline; }
.social--footer { margin-top: 28px; justify-content: center; }
.social--footer a { color: var(--white); }
.social--footer a:hover { color: var(--sand); }
.site-footer__brand svg { width: 210px; height: auto; margin-inline: auto; }
.site-footer__legal { font-family: var(--font-cn); font-weight: 500; font-size: 13px; letter-spacing: .02em; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.site-footer__links span { margin: 0 8px; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__dev { display: flex; align-items: center; justify-content: center; gap: 12px; }
.site-footer__dev .logo-rpm { width: 86px; height: auto; }
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr auto 1fr; text-align: left; align-items: stretch; gap: 0; }
  .site-footer__contact { padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .55); }
  .social--footer { justify-content: flex-start; }
  .site-footer__brand { display: flex; align-items: center; justify-content: center; padding: 0 clamp(40px, 8vw, 130px); }
  .site-footer__legal { padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .55); text-align: right; }
  .site-footer__dev { justify-content: flex-end; }
}

/* ==========================================================================
   Páginas simples (legales)
   ========================================================================== */
.page-simple { padding: calc(var(--header-h) + 40px) 0 100px; }
.page-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(36px, 4vw, 54px); line-height: 1; color: var(--brown); margin-bottom: 40px; }
.page-simple .prose { font-size: 17px; line-height: 1.7; color: var(--ink); }
.page-simple .prose h2 { font-family: var(--font-serif); font-weight: 600; font-size: 28px; margin: 1.6em 0 .6em; color: var(--brown); }
.page-simple .prose h3 { font-weight: 500; font-size: 18px; margin: 1.4em 0 .5em; }
.page-simple .prose ul { list-style: disc; padding-left: 1.3em; margin: 1em 0; }
.legal__back { margin-top: 60px; }

/* ==========================================================================
   Elementor: los widgets MathrA son secciones a sangre; neutralizamos márgenes
   y paddings por defecto del lienzo para que el one page quede idéntico.
   ========================================================================== */
.site-main > .elementor, .site-main .e-con.e-flex, .site-main .e-con { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 0; --row-gap: 0; --column-gap: 0; --content-width: 100%; --width: 100%; max-width: none; }
.site-main .elementor-widget[class*="elementor-widget-mathra-"] { margin-block-end: 0; width: 100%; }
.site-main .elementor-widget[class*="elementor-widget-mathra-"] > .elementor-widget-container { width: 100%; }
/* dentro del editor, los textos con edición en línea no deben cambiar de tamaño */
.elementor-inline-editing { min-width: 1em; }
