/* Chem Mecanitzats — CSS propio que calca el tema Betheme «Data» + Elementor del original.
   Medidas tomadas del original a 1280 px (27/09/2026). /img/data-bg-1440.webp y /img/data-subheader-1440.webp los pone construir.py. */

:root {
  --navy: #0d0f39;          /* fondo general, títulos sobre claro, pie */
  --navy-boton: #0e103c;    /* botones de las tarjetas */
  --texto: #e7e7f1;         /* texto sobre oscuro */
  --blanco: #fcfcfc;        /* títulos sobre oscuro */
  --etiqueta: #5f6081;      /* h6 (CREACIÓN, CONTACTO…) */
  --cian: #6eeaff;          /* destacados y botón de línea */
  --cian-pie: #6ce5fa;      /* enlace del pie */
  --lila: #a4a6cc;          /* subtítulo del carrusel */
  --rosa: #f381e7;          /* menú activo y botones del carrusel */
  --tarjeta: #f5f5fc;
  --tarjeta-texto: #b5a6d0;
  --teko: "Teko", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --barlow: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ancho: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0; min-height: 100vh; color: var(--texto);
  font: 400 17px/29px var(--barlow); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* degradado violeta fijo del tema (html{background-attachment:fixed} en el original) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--navy) url(/img/data-bg-1440.webp) center / cover no-repeat;
}
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--cian); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--rosa); }
p { margin: 0 0 15px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 15px; font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--teko); }
h2 { font-size: 95px; line-height: 85px; color: var(--blanco); }
h3 { font-size: 30px; line-height: 30px; color: var(--blanco); }
h4 { font-size: 24px; line-height: 34px; font-weight: 300; color: var(--lila); }
h6 { font-family: var(--barlow); font-size: 16px; line-height: 28px; color: var(--etiqueta); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icono { width: 1em; height: 1em; fill: currentColor; flex: none; }
.saltar { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; }
.saltar:focus { left: 10px; top: 10px; }
.oculto { position: absolute; left: -9999px; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.texto-centro { text-align: center; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 40px; }

/* ------------------------------------------------------------ cabecera (transparente sobre el carrusel) */
.cab { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.cab__dentro { display: flex; align-items: center; height: 130px; padding: 0 20px 0 22px; }
.cab__logo { display: block; line-height: 0; }
.cab__logo img { width: 147px; height: auto; }
.cab__boton, .menu__cerrar { display: none; }
.menu { display: flex; align-items: center; margin-left: auto; }
.menu__lista { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.menu__lista a {
  display: block; font: 500 18px/60px var(--barlow); color: var(--navy);
}
.menu__lista a:hover, .menu__lista a[aria-current] { color: var(--rosa); }
.menu__contacto {
  display: inline-flex; align-items: center; gap: 10px; margin-left: 45px; padding: 10px 20px;
  border: 2px solid var(--navy); font: 500 18px/21px var(--barlow); color: var(--navy);
}
.menu__contacto .icono { width: 13px; height: 13px; }
.menu__contacto:hover { background: var(--rosa); border-color: var(--rosa); color: #fff; }

/* cabecera pegada al bajar (sticky-header del tema: barra blanca de 60 px) */
.cab--pegada { position: fixed; background: #fff; box-shadow: 0 2px 10px rgba(13, 15, 57, .12); animation: bajar .35s ease; }
.cab--pegada .cab__dentro { height: 60px; }
.cab--pegada .cab__logo img { width: 74px; }
.cab--pegada .menu__contacto { padding: 7px 16px; }
@keyframes bajar { from { transform: translateY(-100%); } }

/* ------------------------------------------------------------ carrusel de la portada (Revolution Slider) */
.hero { position: relative; height: 720px; overflow: hidden; background: #111; }
.hero__fondo { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__video {
  /* el tamaño lo calcula main.js para que el vídeo 16:9 cubra la franja y deje fuera los rótulos de YouTube */
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  transform: translate(-50%, -50%);
}
.hero__video.es-visible { opacity: 1; }
.hero__texto { position: relative; z-index: 2; padding: 140px 20px 0; text-align: center; }
.hero__titulo { margin: 0; font: 500 95px/75px var(--teko); color: var(--navy); }
.hero__sub { margin: 25px 0 0; font: 300 24px/30px var(--teko); color: var(--lila); }
.hero__botones { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 31px 0 0; }
.boton-hero {
  display: inline-block; padding: 0 35px; border: 2px solid var(--rosa); border-radius: 3px;
  font: 500 20px/50px var(--teko); color: var(--navy);
}
.boton-hero:hover { background: var(--rosa); color: #fff; }
.js .anim-hero { animation: subir 1s cubic-bezier(.2, .6, .35, 1) both; animation-delay: var(--retardo, 0ms); }
@keyframes subir { from { opacity: 0; transform: translateY(50px); } }

/* ------------------------------------------------------------ bloques y botones */
.bloque { position: relative; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.columna-foto { text-align: center; }
.foto { display: inline-block; }
.antetitulo { display: flex; flex-direction: column; align-items: flex-start; }
.antetitulo__icono { width: 15px; height: 16px; margin-bottom: 4px; }
.antetitulo h6 { margin-bottom: 15px; }
.antetitulo--centro { align-items: center; }
.destacado { color: var(--cian); }
.con-boton { margin: 40px 0 0; }
.boton-linea {
  display: inline-block; padding: 15px 24px; border: 2px solid var(--cian); border-radius: 4px; background: var(--navy);
  font: 400 15px/15px var(--barlow); color: var(--cian);
}
.boton-linea:hover { background: var(--cian); color: #fff; }
.boton-oscuro { display: inline-block; padding: 12px 14px; background: var(--navy-boton); font: 400 15px/15px var(--barlow); color: #fff; }
.boton-oscuro:hover { background: var(--rosa); color: #fff; }
.boton-rosa {
  display: inline-block; padding: 10px 20px; border: 2px solid var(--rosa); border-radius: 3px; background: transparent;
  font: 400 17px/20px var(--barlow); color: var(--rosa); cursor: pointer;
}
.boton-rosa:hover { background: var(--rosa); color: #fff; }
.boton-rosa:disabled { opacity: .6; cursor: wait; }

/* portada: «Descubre» y «Compromiso» */
.bloque--descubre { padding: 110px 0 0; }
.bloque--descubre h4 { margin-bottom: 45px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 29px; }
.checks__icono { width: 25px; height: 25px; margin-top: 2px; }
.checks + .con-boton { margin-top: 23px; }
.bloque--compromiso { padding: 60px 0 110px; }
.bloque--compromiso .con-boton { margin-top: 35px; }

/* divisorias en triángulo (widget HTML con SVG del original) */
.divisoria { height: 100px; line-height: 0; }
.divisoria svg { display: block; width: 100%; height: 100%; }
.divisoria--blanca path { fill: #fff; stroke: #fff; }
.divisoria--pie { background: #fff; }
.divisoria--pie path { fill: var(--navy); stroke: var(--navy); }

/* portada: «Qué podemos ofrecerte» */
.bloque--ofrecer { background: #fff; padding: 60px 0 30px; }
.ofrecer__titulo { color: var(--navy); text-align: center; margin-bottom: 5px; }
.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 110px; }
.tarjeta { background: var(--tarjeta); padding: 10px 10px 30px; text-align: center; }
.tarjeta__icono { width: 100%; margin-top: -77px; }
.tarjeta h3 { color: var(--navy); margin: 30px 0 15px; }
.tarjeta p { color: var(--tarjeta-texto); padding: 0 5px; }
.tarjeta__boton { margin: 20px 0 0; }

/* subcabecera de las interiores (Subheader del tema) */
.subcab {
  padding: 170px 0; text-align: center;
  background: url(/img/data-subheader-1440.webp) center bottom / cover no-repeat;
}
.subcab__titulo { margin: 0; font: 500 95px/85px var(--barlow); color: var(--navy); }

/* mecanizado */
.bloque--mecanizado { padding: 166px 0 300px; }
.mecanizado__columnas { display: grid; grid-template-columns: 47.45% 1fr; align-items: start; }
.mecanizado__derecha { padding-left: 8%; }
.mecanizado__derecha h4 { margin-bottom: 20px; }
.mecanizado__centro { text-align: center; max-width: 440px; margin-top: 20px; }
.contador { display: flex; justify-content: center; gap: 0; margin: 20px 0 25px; font: 400 90px/1 var(--barlow); color: var(--cian); }
.contador span:last-child::before { content: " "; white-space: pre; }

/* máquinas */
.bloque--maquinas { padding: 60px 0 100px; }
.maquinas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; text-align: center; }
.maquina h2 { padding-top: 40px; }
.maquina__foto { border-radius: 10px; }
.maquina--ancha { grid-column: 1 / -1; max-width: 700px; margin: 200px auto 0; }

/* contacto */
.bloque--contacto { padding: 110px 0 70px; }
.datos-contacto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.dato__icono { width: 140px; }
.dato h6 { margin: 40px 0 15px; }
.enlace-cian { color: var(--cian); }
.bloque--contacto a[href^="tel:"] { color: var(--texto); }
.mensaje { padding-top: 120px; text-align: center; }
.mensaje h2 { margin-bottom: 70px; }
.formulario { max-width: 1020px; margin: 0 auto; text-align: left; }
.formulario__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.campo--ancho { grid-column: 1 / -1; }
.campo input, .campo textarea {
  display: block; width: 100%; padding: 9px 10px; border: 1px solid #fff; border-radius: 4px; background: #fff;
  font: 400 15px/20px var(--barlow); color: #333;
}
.campo textarea { min-height: 142px; resize: vertical; }
.campo ::placeholder { color: #929292; text-transform: uppercase; }
.campo [aria-invalid="true"] { border-color: var(--rosa); box-shadow: 0 0 0 2px var(--rosa); }
.formulario__enviar { text-align: center; margin: 33px 0 0; }
.formulario__estado { margin-top: 20px; text-align: center; }
.formulario__estado:empty { display: none; }
.formulario__estado p { margin: 0 0 6px; }
.formulario__estado.es-error { padding: 16px 20px; border: 2px solid var(--rosa); border-radius: 4px; background: rgba(243, 129, 231, .08); }
.formulario__estado a { color: var(--cian); font-weight: 700; }

/* localización: el mapa de Google se carga al pedirlo */
.bloque--localizacion { padding: 40px 0 10px; }
.mapa {
  display: grid; place-items: center; height: 612px; border-radius: 10px; overflow: hidden;
  background: #e5e3df linear-gradient(135deg, #eeeeea 25%, transparent 25%, transparent 50%, #eeeeea 50%, #eeeeea 75%, transparent 75%) 0 0 / 40px 40px;
}
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.mapa__aviso { max-width: 420px; margin: 20px; padding: 30px 30px 20px; border-radius: 10px; background: #fff; color: var(--navy); text-align: center; box-shadow: 0 10px 30px rgba(13, 15, 57, .15); }
.mapa__direccion { font-size: 19px; line-height: 28px; }
.mapa__nota { font-size: 15px; line-height: 22px; color: #555; }
.mapa__nota a { color: #1a5fd0; text-decoration: underline; }

/* 404 */
.bloque--404 { padding: 60px 0 120px; }
.bloque--404 .con-boton a { margin: 0 6px 10px; }

/* ------------------------------------------------------------ pie */
.pie { background: var(--navy); }
.pie__columnas { padding-left: 20px; padding-right: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; padding-top: 100px; padding-bottom: 70px; text-align: center; }
.pie__col h6 { margin-bottom: 15px; }
.pie__col:first-child p { margin-top: 44px; }
.pie__col a { color: var(--texto); }
.pie__col a:hover { color: var(--rosa); }
.pie__col--logo img { width: 307px; max-width: 100%; }
.pie__copy { border-top: 1px solid rgba(255, 255, 255, .1); padding: 35px 20px 55px; text-align: center; }
.pie__copy p { margin: 0; }
.pie__copy a { color: var(--cian-pie); font-weight: 700; }
.icono--corazon { width: 17px; height: 17px; vertical-align: -3px; margin: 0 1px; }

/* ------------------------------------------------------------ tableta */
@media (max-width: 1100px) {
  .cab__dentro { padding-right: 16px; }
  .menu__lista { gap: 26px; }
  .menu__contacto { margin-left: 26px; }
}
@media (max-width: 959px) {
  body { font-size: 16px; line-height: 26px; }
  h2 { font-size: 71px; line-height: 64px; }
  /* cabecera móvil: barra blanca con el logo centrado y menú lateral (mobile-header-mini del tema) */
  .cab, .cab--pegada { position: sticky; top: 0; background: #fff; box-shadow: 0 1px 8px rgba(13, 15, 57, .1); animation: none; }
  .cab__dentro, .cab--pegada .cab__dentro { height: 64px; justify-content: center; position: relative; }
  .cab__logo img, .cab--pegada .cab__logo img { width: 86px; }
  .cab__boton {
    display: grid; place-items: center; position: absolute; right: 12px; top: 10px; width: 44px; height: 44px;
    border: 0; background: none; color: var(--navy); cursor: pointer;
  }
  .cab__boton .icono { width: 26px; height: 26px; }
  .menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(300px, 85vw); margin: 0;
    flex-direction: column; align-items: stretch; padding: 70px 30px 30px; background: #191919;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; overflow-y: auto;
  }
  .menu-abierto .menu { transform: none; visibility: visible; transition: transform .3s ease; }
  .menu__cerrar {
    display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
    border: 0; background: none; color: #fff; cursor: pointer;
  }
  .menu__cerrar .icono { width: 22px; height: 22px; }
  .menu__lista { flex-direction: column; gap: 0; }
  .menu__lista a { color: #fff; line-height: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu__contacto { margin: 30px 0 0; justify-content: center; color: #fff; border-color: #fff; }
  .velo { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); }
  .menu-abierto .cab { z-index: 70; }  /* el panel vive dentro de la cabecera: tiene que quedar sobre el velo */
  .velo[hidden] { display: none; }
  .hero { height: 560px; }
  .hero__texto { padding-top: 110px; }
  .hero__titulo { font-size: 75px; line-height: 65px; }
  .subcab { padding: 120px 0 150px; }
  .subcab__titulo { font-size: 81px; line-height: 72px; }
  .tarjetas { grid-template-columns: repeat(2, 1fr); row-gap: 100px; }
  .bloque--mecanizado { padding: 80px 0 160px; }
}

/* ------------------------------------------------------------ móvil */
@media (max-width: 767px) {
  body::before { background-image: url(/img/data-bg-960.webp); }
  .subcab { background-image: url(/img/data-subheader-960.webp); }
  .contenedor { padding: 0 20px; }
  h2 { font-size: 57px; line-height: 51px; }
  h3 { font-size: 26px; line-height: 27px; }
  h4 { font-size: 20px; line-height: 28px; }
  .hero { height: 440px; }
  .hero__texto { padding-top: 90px; }
  .hero__titulo { font-size: clamp(38px, 11.5vw, 60px); line-height: .86; }
  .hero__sub { font-size: 16px; line-height: 20px; margin-top: 18px; }
  .hero__botones { margin-top: 22px; gap: 12px; }
  .boton-hero { padding: 0 22px; font-size: 18px; line-height: 44px; }
  .dos-columnas, .mecanizado__columnas, .maquinas, .datos-contacto, .pie__columnas, .formulario__rejilla { grid-template-columns: 1fr; }
  .dos-columnas { gap: 40px; }
  .bloque--descubre { padding-top: 60px; }
  .bloque--compromiso { padding: 50px 0 70px; }
  .bloque--compromiso .columna-foto { order: 2; }
  .tarjetas { grid-template-columns: 1fr; row-gap: 90px; padding-top: 90px; }
  .tarjeta__icono { width: min(221px, 70%); }
  .subcab { padding: 80px 0 110px; }
  .subcab__titulo { font-size: 57px; line-height: 51px; }
  .bloque--mecanizado { padding: 50px 0 80px; }
  .mecanizado__derecha { padding-left: 0; margin-top: 10px; }
  .contador { font-size: 72px; }
  .bloque--maquinas { padding: 40px 0 60px; }
  .maquina { margin-bottom: 50px; }
  .maquina--ancha { margin: 0 auto; }
  .datos-contacto { gap: 50px; }
  .dato h6 { margin-top: 20px; }
  .mensaje h2 { margin-bottom: 40px; }
  .formulario__rejilla { gap: 18px; }
  .mapa { height: 480px; }
  .divisoria { height: 50px; }
  .pie__columnas { gap: 40px; padding-top: 50px; padding-bottom: 50px; }
  .pie__col:first-child p { margin-top: 0; }
  .pie__col--logo { order: -1; }
  .pie__col--logo img { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
