/*
 * VH Ideas S.A. — capa de estilos sobre la plantilla Transitive (TEMPLATED, CC BY 3.0).
 * Se carga DESPUÉS de main.css: aquí van la identidad (rojo VH, blanco, tipografía sin serifa)
 * y los componentes propios (hero, tarjetas de producto, formulario, pie).
 */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-tight-300.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-400.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-500.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-400-italic.woff2") format("woff2"); }

:root {
  --f-texto: "Inter Tight", "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --f-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --rojo-claro: #ff6b73;   /* el rojo de la marca, aclarado para leerse sobre fondos oscuros */
  --rojo: #a31621;
  --rojo-osc: #7d0f18;
  --tinta: #1d1d1f;
  --texto: #3c3c3e;
  --gris: #f3f3f1;
  --linea: #e1e1de;
  --cab: 4.5rem;
}

body, input, select, textarea, button { font-family: var(--f-texto); }
h1, h2, h3, h4, h5, h6, .titulo-sec, .prod-card span { font-family: var(--f-texto); }
.cierre-sec { font-family: var(--f-titulo); }
body, input, select, textarea { font-weight: 400; }
body { color: var(--texto); background: #fff; padding-top: var(--cab); font-size: 1rem; letter-spacing: -0.01em; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.15; }
h1, h2, h3, h4 { text-transform: none; letter-spacing: -0.03em; color: var(--tinta); }
a { color: var(--rojo); }
a:hover { color: var(--rojo-osc); }
:focus-visible { outline: 3px solid #1a5fd0; outline-offset: 2px; }

/* ---------- Cabecera ---------- */
#header {
  background: #fff; color: var(--tinta); height: var(--cab); line-height: var(--cab);
  box-shadow: 0 1px 0 var(--linea); text-align: right;
}
#header > .logo { left: 1.5rem; height: var(--cab); line-height: var(--cab); }
#header > .logo a img { display: block; height: 1.6rem; width: auto; }
#header > .logo a { display: inline-flex; align-items: center; gap: 0.15rem; font-size: inherit; color: var(--tinta); line-height: var(--cab); text-decoration: none; }
#header > .logo .logo-vh, .logo-vh { font-size: 2.9rem; font-weight: 300; color: var(--rojo); letter-spacing: -0.09em; line-height: 1; margin-right: 0.05em; }
#header > .logo .logo-ideas, .logo-ideas { font-size: 1.15rem; font-weight: 300; color: var(--tinta); letter-spacing: 0.01em; }
#header > a { color: var(--tinta); }
#header > a:hover { color: var(--rojo); }
#header > a.tel { font-size: 0.95rem; font-weight: 600; }
#header > a.toggle { font-size: 1.6rem; padding-right: 1.4rem; }
@media screen and (max-width: 980px) {
  :root { --cab: 3.75rem; }
  #header > .logo { left: 1rem; }
  #header > a.tel { display: none; }
  #header > .logo a img { height: 1.3rem; }
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10010; background: #fff; color: var(--tinta); padding: 0.6rem 1rem; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* ---------- Menú lateral ---------- */
#menu { background: #fff; color: var(--tinta); box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18); padding-top: 4rem; }
#menu > ul.links > li > a:not(.button) { color: var(--tinta); font-size: 1.2rem; border: 0; border-bottom: 1px solid var(--linea); height: auto; line-height: 1.4; padding: 1rem 0.25rem; display: block; text-transform: none; letter-spacing: 0; }
#menu > ul.links > li > a:not(.button):hover, #menu > ul.links > li > a[aria-current="page"]:not(.button) { color: var(--rojo); }
#menu .close, #menu .close:hover { color: var(--tinta); }
#menu .close:before { color: var(--tinta); }
#menu .menu-contacto { margin-top: 2rem; font-size: 0.95rem; line-height: 1.8; }
#menu .menu-contacto a { color: var(--tinta); }

/* ---------- Botones ---------- */
.button, input[type="submit"], input[type="button"], button.button {
  border-radius: 999px; letter-spacing: 0.02em; text-transform: none; font-weight: 600;
}
.button.special, input[type="submit"].special,
.wrapper.style1 .button.special, .wrapper.style2 .button.special, .wrapper.style3 .button.special,
.wrapper.style2 input[type="submit"].special, .wrapper.style3 input[type="submit"].special {
  background-color: var(--rojo) !important; color: #fff !important; box-shadow: none !important; border: 0 !important;
}
.button.special:hover, input[type="submit"].special:hover { background-color: var(--rojo-osc) !important; }
.button.alt, .wrapper.style2 .button.alt, .wrapper.style3 .button.alt {
  background: transparent !important; box-shadow: inset 0 0 0 2px currentColor !important; color: var(--tinta) !important;
}
.wrapper.style3 .button.alt { color: #fff !important; }
.button.alt:hover { background: rgba(163, 22, 33, 0.08) !important; }

/* ---------- Secciones ---------- */
.wrapper { padding: 5rem 0 4rem; }
.wrapper > .inner { width: min(78rem, 100% - 3rem); margin: 0 auto; }
.wrapper.style2 { background: var(--gris); color: var(--texto); }
.wrapper.style3 { background: #232427; background-image: none; color: #c8c8c8; }
.wrapper.style2 h1, .wrapper.style2 h2, .wrapper.style2 h3 { color: var(--tinta); }
.wrapper.style3 h1, .wrapper.style3 h2, .wrapper.style3 h3 { color: #fff; }
.wrapper.style2 a:not(.button), .wrapper.style3 a:not(.button) { color: var(--rojo); }
.wrapper.style3 a:not(.button) { color: #fff; }
.box { background: #fff; border-radius: 6px; border: 1px solid var(--linea); overflow: hidden; }
.box .content { padding: 2.5rem; }
.wrapper.style2 .box { border-color: var(--linea); }
.eyebrow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rojo); margin-bottom: 0.75rem; }
.wrapper.style3 .eyebrow { color: #ff8d95; }
.titulo-sec { font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.12; margin-bottom: 0.8rem; font-weight: 600; }
.lead { font-size: 1.1rem; line-height: 1.4; color: var(--texto); }
.sec-cab { max-width: 46rem; margin-bottom: 2.5rem; }
.sec-cab.centro { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero: suelo en perspectiva hecho con las fotos de los productos ---------- */
#banner.hero {
  height: calc(100vh - var(--cab)) !important; min-height: 32rem; padding: 0 !important; margin: 0; overflow: hidden;
  background: #121214; display: block; text-align: left; position: relative;
}
@supports (height: 100svh) { #banner.hero { height: calc(100svh - var(--cab)) !important; } }
#banner.hero:before, #banner.hero:after { display: none; }
.suelo { position: absolute; top: -26%; left: 0; right: 0; bottom: 0; perspective: 1100px; perspective-origin: 50% 35%; overflow: hidden;
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0); will-change: transform; }
.suelo-plano {
  position: absolute; left: 50%; top: 50%; width: 170vw; transform-style: preserve-3d;
  transform: translate(calc(-50% + var(--px, 0) * -40px), calc(-46% + var(--py, 0) * -24px)) rotateX(60deg) rotateZ(calc(-26deg + var(--px, 0) * 3deg));
}
.suelo-mov { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; animation: suelo-marcha 110s linear infinite; will-change: transform; }
.suelo-mov img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 3px; }
@keyframes suelo-marcha { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero .velo { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.86) 0%, rgba(10, 10, 12, 0.5) 48%, rgba(10, 10, 12, 0.12) 100%),
              linear-gradient(0deg, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 0) 35%); }
.hero-suelo .luz { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle 26rem at var(--lx, 70%) var(--ly, 45%), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%); }
#banner.hero .inner {
  position: absolute; left: clamp(1.25rem, 5vw, 4.5rem); bottom: clamp(5rem, 16vh, 9rem);
  width: auto; max-width: min(58rem, 88%); margin: 0; text-align: left; z-index: 2;
}
#banner.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; color: #fff; margin: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.js #banner .inner h1 { animation: entra 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.bajar { position: absolute; z-index: 3; left: 50%; bottom: 1.4rem; width: 3.1rem; height: 3.1rem; margin-left: -1.55rem; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75); background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(4px); display: block; animation: rebote 2.2s ease-in-out infinite; }
.bajar span { position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 0.7rem; margin: -0.55rem 0 0 -0.35rem; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.bajar:hover { background: #fff; } .bajar:hover span { border-color: var(--tinta); }
@keyframes rebote { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media screen and (max-width: 736px) {
  .suelo-plano { width: 260vw; transform: translate(calc(-50% + var(--px, 0) * -20px), -46%) rotateX(58deg) rotateZ(-24deg); }
  .hero .velo { background: linear-gradient(0deg, rgba(10, 10, 12, 0.85) 0%, rgba(10, 10, 12, 0.45) 60%, rgba(10, 10, 12, 0.2) 100%); }
  #banner.hero .inner { bottom: 6rem; max-width: 92%; }
  #banner.hero h1 { font-size: 2.1rem; }
}

/* Hero con vídeo */
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; visibility: hidden; }
.hero-con-video.con-lienzo .hero-lienzo { visibility: visible; }
.hero-con-video.con-lienzo .hero-media { inset: auto; top: 0; left: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
#banner.hero-con-video { background-size: cover; background-position: center; }
.hero-con-video .velo { background: linear-gradient(90deg, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.32) 48%, rgba(10, 10, 12, 0) 85%), linear-gradient(0deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0) 38%); }

/* ---------- Efectos de aparición al hacer scroll ---------- */
.js .rv { opacity: 0; translate: 0 28px; transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.visible { opacity: 1; translate: 0 0; }

/* ---------- Franja de contacto (final de página) ---------- */
.franja-contacto { background: #151517; color: #fff; text-align: center; }
.franja-contacto h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 1rem; }
.franja-datos { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.franja-datos li { padding: 0.2rem 0; font-size: 1.05rem; }
.franja-datos a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.45); }
.franja-datos a:hover { border-bottom-color: #fff; }
.franja-datos li:first-child a { font-size: 1.6rem; font-weight: 700; border: 0; }

/* ---------- Introducción ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: start; }
.intro-grid p { margin-bottom: 1.1rem; }
@media screen and (max-width: 980px) { .intro-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Tarjetas de producto (inicio) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.prod-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #444 center / cover; text-decoration: none; }
.prod-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.prod-card:hover img { transform: scale(1.06); }
.prod-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease, box-shadow 0.25s ease; will-change: transform; }
.prod-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.prod-card:before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%); }
.prod-card:hover:before { opacity: 1; }
.prod-card span { letter-spacing: -0.02em; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 3rem 1.25rem 1.25rem; background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0)); color: #fff; font-size: 1.15rem; font-weight: 600; line-height: 1.2; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.75rem; }
.prod-card span i { font-style: normal; font-weight: 400; transition: transform 0.3s; }
.prod-card:hover span i { transform: translateX(6px); }
.prod-card.sin-foto, .pase figure.baldosas {
  background: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(135deg, #a31621, #4a0a10);
}
@media screen and (max-width: 980px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 480px) { .prod-card { aspect-ratio: 16 / 11; } }

/* ---------- Sectores / bloques de dos columnas ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid2 .box .content, .grid3 .box .content { padding: 2rem; }
.grid2 h3, .grid3 h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; }
.checklist li:before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--rojo); }
@media screen and (max-width: 980px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- Productos ----------
   Escritorio: foto a un lado y título + texto al otro (alternando lados).
   Móvil: una sola columna, como en las páginas de detalle: título, foto a todo el ancho y debajo el texto.
   Las fotos de cada producto cambian solas (ver vh.js, apartado 4). */
.producto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 3rem; padding: 3.5rem 0; border-top: 1px solid var(--linea); }
.producto:first-of-type { border-top: 0; padding-top: 0; }
.producto > .galeria { grid-column: 1; grid-row: 1 / 5; align-self: center; }
.producto > h2 { grid-column: 2; grid-row: 2; justify-self: start; font-size: clamp(1.4rem, 2.3vw, 1.85rem); margin-bottom: 0.8rem; border-bottom: 3px solid var(--rojo); padding-bottom: 0.25rem; }
.producto > .texto { grid-column: 2; grid-row: 3; }
.producto:nth-of-type(even) > .galeria { grid-column: 2; }
.producto:nth-of-type(even) > h2, .producto:nth-of-type(even) > .texto { grid-column: 1; }
.producto.sin-foto { grid-template-columns: minmax(0, 46rem); }
.producto.sin-foto > h2, .producto.sin-foto > .texto { grid-column: 1; }

.pase { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #666; }
.pase figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.pase figure.activa { opacity: 1; z-index: 1; }
.pase figure img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 7s linear; }
.pase figure.activa img { transform: scale(1.06); }
.pase figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; }
.pase-puntos { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0.4rem; display: flex; justify-content: center; gap: 0; }
.pase-puntos button { appearance: none; -webkit-appearance: none; width: 1.5rem; height: 1.5rem; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; font-size: 0; line-height: 0; position: relative; }
.pase-puntos button:before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.5rem; height: 0.5rem; margin: -0.25rem 0 0 -0.25rem; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); transition: background 0.3s, transform 0.3s; }
.pase-puntos button.on:before { background: #fff; transform: scale(1.3); }
.pase-puntos button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

.producto p { margin-bottom: 1rem; }
.producto .etiquetas-intro { margin-bottom: 0.5rem; font-weight: 700; }
.etiquetas { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.etiquetas li { padding: 0.3rem 0.9rem; border: 1px solid var(--rojo); border-radius: 999px; color: var(--rojo); font-weight: 700; font-size: 0.95rem; line-height: 1.4; }

@media screen and (max-width: 736px) {
  /* Móvil: una columna. Título, foto a todo el ancho (mismo formato que en Linóleo) y el texto debajo */
  .sec .wrap.ancho { width: calc(100% - 2rem); }
  .producto, .producto.sin-foto { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 1rem; padding: 1.75rem 0; }
  .producto > h2, .producto:nth-of-type(even) > h2 { grid-column: 1; grid-row: 1; font-size: 1.3rem; margin-bottom: 0; }
  .producto > .galeria, .producto:nth-of-type(even) > .galeria { grid-column: 1; grid-row: 2; align-self: auto; margin-left: 0; }
  .producto > .texto, .producto:nth-of-type(even) > .texto { grid-column: 1; grid-row: 3; }
  .producto.sin-foto > h2, .producto.sin-foto > .texto { grid-column: 1; }
  .producto.sin-foto > .texto { grid-row: 2; }
  .pase { aspect-ratio: 16 / 10; height: auto; min-height: 0; border-radius: 6px; }
  .etiquetas { gap: 0.4rem; margin-bottom: 0; }
  .etiquetas li { padding: 0.2rem 0.7rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pase figure { transition: none; }
  .pase figure img, .pase figure.activa img { transform: none; transition: none; }
}

/* ---------- Botón "+ info" y página de detalle de producto (Linóleo) ---------- */
.fila-info { text-align: right; margin-top: 0.75rem; }
.btn-info { display: inline-block; padding: 0.3rem 1.1rem; border: 1px solid #cfcfcb; border-radius: 999px; background: #fff; color: var(--tinta); font-size: 0.9rem; font-weight: 500; line-height: 1.5; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.btn-info:hover, .btn-info:focus-visible { border-color: var(--rojo); color: var(--rojo); }
.sub-producto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 3rem; align-items: start; padding: 2.75rem 0; border-top: 1px solid var(--linea); }
.sub-producto:first-of-type { border-top: 0; padding-top: 0; }
.sub-producto > h2 { grid-column: 1 / -1; justify-self: start; font-size: clamp(1.4rem, 2.3vw, 1.85rem); margin-bottom: 1.2rem; border-bottom: 3px solid var(--rojo); padding-bottom: 0.25rem; }
.sub-producto > figure { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #666; }
.sub-producto > figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ventajas { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.ventajas li { padding: 0.5rem 0; border-top: 1px solid var(--linea); font-size: 0.92rem; font-weight: 300; line-height: 1.4; letter-spacing: -0.012em; color: var(--tinta); }
.ventajas li strong { font-weight: 600; }
.ventajas .sep, .sub-producto .sep { color: var(--rojo); margin: 0 0.15rem; }
.sub-producto.solo-texto { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding: 1.9rem 0; }
.sub-producto.solo-texto > h2 { grid-column: 1; margin-bottom: 0; font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.sub-producto.solo-texto > .texto { grid-column: 2; }
@media screen and (max-width: 736px) {
  .sub-producto, .sub-producto.solo-texto { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; padding: 1.75rem 0; }
  .sub-producto.solo-texto > h2, .sub-producto.solo-texto > .texto { grid-column: 1; }
  .sub-producto > h2 { margin-bottom: 0; font-size: 1.3rem; }
  .sub-producto > figure { aspect-ratio: 16 / 10; }
}

/* ---------- FAQ ---------- */

/* ---------- Llamada a la acción ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); margin-bottom: 0.6rem; }
.cta p { max-width: 40rem; margin: 0 auto 1.75rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.cta .acciones { margin-top: 0.5rem; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.datos-lista { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.datos-lista li { padding: 0.55rem 0; border-bottom: 1px solid var(--linea); }
.datos-lista strong { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rojo); }
.form .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .campo { margin-bottom: 1rem; }
.form label { color: var(--tinta); font-weight: 600; font-size: 0.95rem; text-transform: none; letter-spacing: 0; margin-bottom: 0.35rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { color: var(--tinta); background: #fff; border: 1px solid #c9c9c6; border-radius: 4px; }
.form input[type="tel"], .form input[type="text"], .form input[type="email"] { width: 100%; height: 2.9rem; }
.form textarea { min-height: 9rem; }
.form .check { display: flex; gap: 0.6rem; align-items: flex-start; }
.form .check input { margin-top: 0.3rem; }
.form .check label { font-weight: 400; margin: 0; }
.form .trampa { position: absolute; left: -9999px; }
.aviso { padding: 0.9rem 1.1rem; border-radius: 4px; margin-bottom: 1rem; }
.aviso.error { background: #fdecec; color: #7d0f18; border: 1px solid #f0b9bd; }
.aviso.ok { background: #e8f5ec; color: #14502a; border: 1px solid #b7dfc4; }
.aviso ul { margin: 0; padding-left: 1.2rem; }
@media screen and (max-width: 980px) { .contacto-grid { grid-template-columns: 1fr; gap: 2rem; } .form .fila { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
#footer.wrapper { padding: 4rem 0 2rem; background: #151517; color: #b4b4b4; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
.pie-logo { display: flex; align-items: baseline; gap: 0.15rem; margin-bottom: 0.75rem; }
#footer .logo-vh { color: #ff5a66; }
#footer .logo-ideas { color: #fff; }
#footer h3 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.pie-lista { list-style: none; padding: 0; margin: 0; }
.pie-lista li { padding: 0.3rem 0; padding-left: 0; }
#footer a { color: #fff; }
#footer a:hover { color: #ff8d95; }
#footer .copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.85rem; text-align: left; color: #a8a8a8; }
#footer .copyright a { color: #d0d0d0; text-decoration: underline; }
#footer .credito { flex-basis: 100%; font-size: 0.8rem; }
@media screen and (max-width: 980px) { .pie-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Páginas de texto (legales, 404) ---------- */
.cabecera-pagina { background: var(--gris); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--linea); }
.cabecera-pagina h1, .sec h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; margin: 0; }
.wrap { width: min(60rem, 100% - 3rem); margin: 0 auto; }
.sec { padding: 3.5rem 0 4rem; }
.migas { font-size: 0.9rem; margin-bottom: 0.75rem; }
.prosa h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.prosa p, .prosa li { margin-bottom: 0.8rem; }
.datos { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin: 1rem 0; }
.datos dt { font-weight: 700; color: var(--tinta); }
.datos dd { margin: 0; }
.btn { display: inline-block; padding: 0.85rem 1.8rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--rojo); color: #fff; }
.btn-primary:hover { background: var(--rojo-osc); color: #fff; }
.btn-ghost { box-shadow: inset 0 0 0 2px var(--tinta); color: var(--tinta); }
.sec .acciones { justify-content: flex-start; margin-top: 1.5rem; }

/* ---------- Avisos de borrador (desaparecen con MODO_BORRADOR=false) ---------- */
.banner-borrador { position: fixed; z-index: 9999; top: calc(var(--cab) + 0.5rem); right: 0.75rem; max-width: 19rem; background: #fff8d6; color: #5a4a00; border: 1px solid #d9b800; border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.75rem; line-height: 1.35; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.pend { background: #fff3b0; color: #5a4a00; padding: 0.1em 0.45em; border-radius: 3px; font-size: 0.85em; font-style: normal; }
.pend-bloque { background: #fff8d6; border: 1px dashed #d9b800; border-radius: 4px; padding: 0.7rem 1rem; color: #5a4a00; margin-top: 1rem; font-size: 0.92rem; }
@media screen and (max-width: 736px) { .banner-borrador { top: calc(var(--cab) + 0.35rem); right: 0.4rem; left: auto; max-width: none; padding: 0.25rem 0.55rem; } .banner-borrador .det { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .prod-card img { transition: none; }
}

/* ---------- Varios ---------- */
.wrap.ancho { width: min(78rem, 100% - 3rem); }
.cabecera-pagina .lead { max-width: 46rem; margin-top: 1rem; }
.marcas-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.marcas-logos li { position: relative; background: #fff; border: 1px solid var(--linea); border-radius: 6px; aspect-ratio: 3 / 2; margin: 0; padding: 0; overflow: hidden; }
.marcas-logos img { position: absolute; inset: 0; margin: auto; display: block; width: auto; height: auto; max-width: calc(100% - 2.6rem); max-height: calc(100% - 2.2rem); }
.marcas-logos.mini { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.75rem; margin: 2rem 0 2rem; }
.marcas-logos.mini li { border: 0; }
.marcas-logos.mini img { max-width: calc(100% - 1.2rem); max-height: calc(100% - 1.2rem); }
@media screen and (max-width: 980px) { .marcas-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .marcas-logos.mini { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media screen and (max-width: 560px) { .marcas-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .marcas-logos.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sector-ico { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rojo); margin-bottom: 0.4rem; }

/* ---------- Cierre de sección y fotos de tarjeta ---------- */
.cierre-sec { margin-top: 2rem; font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 400; font-style: italic; line-height: 1.3; color: var(--rojo); max-width: 46rem; }
.prod-card img.foto { object-position: 50% 80%; }

/* ---------- Banda de logotipos que se desplaza sola ---------- */
.ticker { display: flex; overflow: hidden; margin: 1.5rem 0 2.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker .ticker-pista { display: flex; flex: none; grid-template-columns: none; gap: 1rem; padding: 0 0.5rem 0 0.5rem; animation: marcha 60s linear infinite; }
.ticker .ticker-pista li { flex: none; width: 10rem; aspect-ratio: 3 / 2; border: 0; }
.ticker:hover .ticker-pista { animation-play-state: paused; }
@keyframes marcha { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marcas-logos li { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.marcas-logos li:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .suelo-mov, .ticker .ticker-pista, .bajar, .js #banner .inner h1 { animation: none !important; }
  .js .rv { opacity: 1; translate: none; transition: none; }
  .prod-card { transform: none !important; }
  .ticker { overflow-x: auto; }
}

.wrapper.style3 .lead { color: rgba(255, 255, 255, 0.82); }

/* La plantilla pone una capa oscura sobre .wrapper.style3; aquí no hace falta (y oscurecía la banda de logos) */
.wrapper.style3:before { display: none !important; }


/* ---------- Tipografía y color en el texto ----------
   Como la página de prueba de la clienta: títulos en negrita y apretados, texto fino y pequeño,
   y las palabras destacadas en rojo con cursiva de contraste (Playfair Display). */
.acento { color: var(--rojo); font-family: var(--f-titulo); font-style: italic; font-weight: 400; letter-spacing: 0; }
#banner.hero .acento, .wrapper.style3 .acento, .franja-contacto .acento { color: var(--rojo-claro); }
.cabecera-pagina h1 { font-family: var(--f-titulo); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--rojo); }
.cabecera-pagina .lead { color: var(--tinta); font-family: var(--f-texto); font-style: normal; font-weight: 300; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.35; margin-top: 0.6rem; }
.etiquetas-intro { color: var(--rojo); font-family: var(--f-titulo); font-style: italic; font-weight: 400; font-size: 1.05rem; letter-spacing: 0; }
.franja-datos li:first-child a { color: var(--rojo-claro); }
#footer h3, .sector-ico { font-family: var(--f-texto); }

/* Párrafos de toda la web: Inter Tight fino, pequeño y con poco espacio entre letras y entre párrafos.
   Los textos legales (aviso legal, privacidad, cookies) conservan el peso normal para leerse bien. */
.intro-grid p,
.sec .wrap:not(.prosa) p:not(.cierre-sec):not(.migas):not(.etiquetas-intro),
.producto p:not(.etiquetas-intro), .box p, .wrapper.style3 p.lead {
  font-family: var(--f-texto); font-style: normal; font-weight: 300; font-size: 0.95rem; line-height: 1.42; letter-spacing: -0.012em;
}
.intro-grid p, .sec .wrap:not(.prosa) p:not(.cierre-sec):not(.migas):not(.etiquetas-intro):not(.lead), .producto p:not(.etiquetas-intro), .box p { color: var(--tinta); }
.sec p, .box p, .producto p { margin-bottom: 0.7rem; }
.intro-grid p.lead, .sec .wrap:not(.prosa) p.lead:not(.cierre-sec):not(.migas):not(.etiquetas-intro), .wrapper.style3 p.lead { font-weight: 400; font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.35; }
.intro-grid p.lead, .sec .wrap:not(.prosa) p.lead:not(.cierre-sec):not(.migas):not(.etiquetas-intro) { color: var(--tinta); }
.intro-grid p:last-child:not(.lead) { font-weight: 600; }
.sec .wrap:not(.prosa) > p:not(.cierre-sec) { max-width: 54rem; }
.sub-producto p strong { font-weight: 600; }
