/*
Theme Name: Mega Project Hijo
Template: megaproject
Version: 1.24
*/



.fancybox-overlay,
.fancybox-wrap,
.fancybox-lock {
  display: none !important;
}

/* Ocultar header y footer cuando se abre el lightbox nativo de WordPress */
/* Subir el lightbox por encima de todo */


/* SOLO cuando lightbox está activo */
body:has(.wp-lightbox-overlay) .wp-lightbox-overlay {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body:has(.wp-lightbox-overlay) .wp-lightbox-overlay .lightbox-image-container {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body:has(.wp-lightbox-overlay) .wp-lightbox-overlay img {
  width: auto !important;
  height: auto !important;
  max-width: 95vw !important;
  max-height: 95vh !important;
  object-fit: contain !important;
}


.wp-block-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #fff;

  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Variables */
:root {

  --container-width: 1200px;

  --font-base: "Inter", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --color-text: #16222c;

  --font-main: 'Inter', Arial, sans-serif;

  --text-xs: 13px;
  --text-s: 15px;
  --text-m: 18px;
  --text-l: 24px;
  --text-xl: 36px;
  --text-xxl: 48px;

  --line-tight: 1.2;
  --line-normal: 1.5;
  --line-relaxed: 1.7;

  --space-sm: 40px;
  --space-md: 60px;
  --space-lg: 80px;
  --space-xl: 100px;

  --space-xs: 10px;
  --space-s: 20px;
  /*small  text */
  --space-m: 40px;
  /*medium block  */
  --space-l: 80px;
  /*large  section */

  --space-text: 20px;
  --space-block: 40px;
  --space-section: 80px;

}

/* Texto base */
body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);

}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 0.6em;
}

h1,
h2,
h3 {
  margin-top: 0;
}

p {
  margin-bottom: 15px;
}

h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Escala desktop */
h1 {
  font-size: 42px;
  font-weight: 700;
}

h2 {
  font-size: 32px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

h4 {
  font-size: 20px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }
}

p,
li {
  font-family: var(--font-base);
}


.wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
}

/* párrafo */
.wp-block-group p {
  font-size: 16px;
  line-height: 1.6;
}

/* lista */
.wp-block-group ul li {
  font-size: 14px;
  line-height: 1.5;
}

.wp-block-group h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #d32f2f;
  margin-top: 8px;
}


.section-cms {
  padding: var(--space-m) 0;
  background: #eef2f5;
}

.mapa-cms {
  padding-top: 15px;
  padding-bottom: var(--space-s);
}

.mapa-cms iframe {

  width: 100%;
  aspect-ratio: 16/9;
  height: auto;

}

/* Mobile */
@media (max-width: 768px) {
  .mapa-cms iframe {
    height: 280px;
  }
}

.container-cms {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-cms>* {
  margin-bottom: var(--space-s);
}

.container-cms>*:last-child {
  margin-bottom: 0;
}

.wp-block-columns {
  gap: var(--space-m);
}

.container-cms p {
  max-width: 750px;
  line-height: 1.7;
}

/* linea rojo en títulos de páginas internas */

.page h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.page h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #d32f2f;
}



.servicio-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #d32f2f;
}

.servicio-card {
  transition: all .3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.servicio-card h3 {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}



.servicio-card h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #d32f2f;
  margin-top: 8px;
}

.servicio-card p {
  font-size: 16px;
  color: #4b5563;
}

.servicio1-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #d32f2f;
  margin-top: 40px;
  transition: all .3s ease;
}

.servicio1-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.servicio1-card h3 {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}



.servicio1-card h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #d32f2f;
  margin-top: 8px;
}

.servicio1-card p {
  font-size: 16px;
  color: #4b5563;

}

.servicio2-card {
  background: #ffffff;
  padding: 20px 35px 20px 35px;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #d32f2f;
  transition: all .3s ease;
  /* margin-top: 15px;  AL SER EL PRIMER CARD, NO NECESITA MARGIN-TOP */
}

.servicio2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.servicio2-card p {
  font-size: 16px;
  color: #4b5563;

}

/* Navegación */
.custom-nav {
  margin-left: 20px;
  display: flex;
  align-items: center;
}


/* ===============================
   HEADER PROPIO (sticky (FIJO), SIN OCULTARSE)
================================ */

.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10001;
  /* background-color: #16222c;*/
  background: linear-gradient(180deg, #16222c, #1b2b36);
  border-bottom: 4px solid #d32f2f;
}

.custom-header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.custom-logo {
  display: flex;
  align-items: center;
  padding-right: 20px;
  border-right: 2px solid #d32f2f;
  margin-left: 0;
  /* eliminar negativos */
}

.custom-logo img {
  max-height: 75px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}


.custom-menu {

  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 28px;
}



.custom-menu li {
  margin: 0;
}

/* nuevo  */
.custom-menu a {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-weight: 500;
  /* 600; */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* 0.010em; */
  padding: 10px 0;
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-heading);
  /* font-family: 'Barlow Condensed', sans-serif; */
}

.custom-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #d32f2f;
  transition: width 0.3s ease;
}

.custom-menu a:hover::after {
  width: 100%;
}

/* CTA menú */
.custom-menu li.menu-cta a {
  background: #d32f2f;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid #d32f2f;
  transition: all 0.3s ease;
}

/* Quitar subrayado animado */
.custom-menu li.menu-cta a::after {
  display: none;
}

/* Hover visible */
.custom-menu li.menu-cta a:hover {
  background: #b71c1c;
  border-color: #b71c1c;
}

/* Evitar animaciones heredadas */
.custom-header *,
.custom-header {
  transition: none !important;
}

/* Compensar header fijo */
body {
  padding-top: 120px;
}

.menu-toggle {
  display: none;
}

/* =========================================
   HEADER RESPONSIVE COMPLETO
========================================= */

/* Desktop */
.custom-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
}

/* Menú normal en desktop */
.custom-menu {
  display: flex;
  gap: 28px;
}

/* =========================================
   MÓVIL
========================================= */
@media (max-width: 992px) {

  /* botón hamburguesa */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
  }

  .menu-toggle span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    transition: .3s ease;
  }

  /* animación hamburguesa → X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

}

@media (max-width:992px) {

  .custom-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #16222c;
    padding: 15px 30px 40px;

    transform: translateX(100%);
    transition: transform .35s ease;

    z-index: 10000;
  }

  /* menú abierto */
  .custom-nav.active {
    transform: translateX(0);
  }

}


@media (max-width: 992px) {

  .custom-menu {
    flex-direction: column;
    gap: 0;
  }

  .custom-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .custom-menu a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    letter-spacing: .12em;
  }

}

@media (max-width: 992px) {

  .custom-menu li:last-child {
    border: none;
    margin-top: 20px;
  }

  .custom-menu li:last-child a {
    background: #d32f2f;
    padding: 12px 24px;
    border-radius: 4px;
    display: inline-block;
  }

}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: .6s;
  z-index: 9999;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   HERO VIDEO INDUSTRIAL — VERSION FINAL
========================================= */

.hero-video {

  position: relative;
  min-height: 60vh;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  display: flex;
  align-items: flex-start;
  padding: 50px 8% 40px;

  color: #ffffff;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0;
  padding: 0 20px;
}


.hero-video video {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  pointer-events: none;
}

.hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}


.hero-video h1,
.hero-video h2,
.hero-video p {
  color: #ffffff !important;
}

.hero-video h1,
.hero-video h2 {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/*  H1 del HERO de inicio */
.hero-title {
  font-size: clamp(36px, 3.5vw, 48px);
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 900px;
  /* 600px;*/

}

/*  H2 del HERO de inicio */
.hero-subtitle-hero {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
}


/*  parrafo TAGLINE (35 años) */
.hero-tagline {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* parrafo HERO  inicio */
.hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 35px;
  opacity: 0.95;
}

/* BOTÓN  */

.hero-button {
  background: #d32f2f;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  display: inline-block;
}

.hero-button a:hover {
  background: #b71c1c;
  transform: translateY(-3px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
  .hero-content {
    margin-top: -85px;
  }

  .hero-video {
    /*  min-height: 70vh; */
    /* height: 100vh; */
    height: 75vh;
    margin-bottom: -20px;

  }

  .hero-title {
    font-size: 32px;
    line-height: 1.2;

  }

  .hero-subtitle {
    font-size: 22px;
  }



}

@media (max-width:1400px) {

  .hero-video {
    padding: 100px 0 30px;
    /* antes era más alto */
    min-height: 55vh;
    /* reduce altura del hero */
  }

  /* título */
  .hero-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  /* primer párrafo */
  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* segundo párrafo */
  .hero-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* botón */
  .hero-button {
    margin-top: 10px;
  }

}



/* =====================================
   PAGINA INCIO - CIERRE CORPORATIVO PREMIUM
===================================== */
.cms-cierre-impacto {
  background: #eef2f5;
  color: #16222c;
  /* padding:var(--space-m) 20px var(--space-s); */
  padding: 50px 0 40px;
  border-bottom: 1px solid #d9e0e6;
  border-top: 2px solid #d32f2f;
  /* línea roja superior */
  text-align: center;
  margin-top: 0;
}

.cms-cierre-impacto p:first-child {
  max-width: 950px;
  margin: 0 auto 25px;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 600;
  margin-top: 0;
}

.cms-cierre-impacto .hero-button {
  background: #d32f2f;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 4px;
  margin: 0 auto;
  display: inline-block;
  margin-bottom: 0;

}

.cms-cierre-impacto .hero-button:hover {
  background: #b71c1c;
}

/* etiqueta superior */
.cta-eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7a88;
  margin-bottom: 10px;
}

/* título principal */
.cta-title {
  font-size: 32px;
  font-weight: 700;
  color: #16222c;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* texto */
.cta-text {
  max-width: 720px;
  margin: 0 auto 25px;
  font-size: 18px;
  line-height: 1.6;
  color: #2c3e50;
}

/* ===============================
   FOOTER PROPIO -  PIE DE PÁGINA PREMIUM
================================ */
.site-footer a {
  color: #d6dce3;
}

.site-footer {
  background: #16222c;
  /* color: #cfd8dc;*/
  border-top: 4px solid #d32f2f;
  /* ← línea roja exacta */
}

.site-footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: flex-start;
  /* alinea todas las columnas arriba */
}


/* ==========================================
   COPYRIGHT FOOTER
========================================== */
/*
.site-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  width: 100%;
  padding: 25px 20px;
  box-sizing: border-box;
}

.site-footer-bottom p {
  margin: 0;
  width: 100%;
  text-align: center;
  color: #cfd8dc;
  line-height: 1.6;
}
*/

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #9ca3af;
}

/* FOOTER – Forzar enlaces blancos */
.site-footer,
.site-footer H4 {
  color: #ffffff !important;
}

/* Quitar subrayado  */
.site-footer a {
  text-decoration: none !important;
}

/* Hover profesional */
.site-footer a:hover {
  color: #d32f2f !important;
}

/* ===============================
   FOOTER – CORRECCIÓN ALINEACIÓN LEGAL
================================ */

.site-footer h3 {
  margin: 0 0 15px 0;
  padding: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {

  .site-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}



/* =========================================
   AJUSTE ANCLAS CON HEADER STICKY
========================================= */

[id] {
  scroll-margin-top: 125px;
}

/* =========================================
   PÁGINA: PROYECTOS DE MECANIZACIÓN
========================================= */

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin: 0 auto 20px auto;
  transition: all 0.3s ease;
  /*  margin-top: 35px;*/
}

.proyecto:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}


.proyecto-card {
  padding: 60px 35px 20px 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  border-radius: 6px;
  border-top: 3px solid #d32f2f;
  transition: all .3s ease;
  margin-top: 15px;
}


.proyecto-card h4 {
  margin: 10px 0 5px;
}

.proyecto-card a {
  color: #c00;
  text-decoration: none;
}


.proyecto-card img {
  width: 100%;

  height: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/*

.proyecto-card img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
*/
@media (max-width:768px) {

  .proyecto-card {
    padding: 20px;
  }

  .proyecto-card img {
    height: 250px;
  }

}

.proyecto-card:hover img {
  transform: scale(1.03);
}

.proyectos-grid img {
  width: 100%;
  height: 220px;
  /* 220px autoaltura fija */
  object-fit: contain;
  /* recorta sin deformar */
  border-radius: 8px;
  /* opcional, mejora visual */
}

.proyecto-imagen_top img {
  width: 100%;
  height: auto;
}

.hero-maquinaria {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-maquinaria .wp-block-image {
  flex: 0 0 55%;
}

.hero-maquinaria .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.hero-maquinaria>.wp-block-group {
  flex: 0 0 45%;
}

/* ========================================= */

.parque-hero img {
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}


.wp-lightbox-container img {
  object-fit: contain !important;
  height: auto !important;
}



/* MOBILE */
@media (max-width: 768px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   MÓVIL - SEPARACIÓN IMÁGENES MAQUINARIA
========================================= */

@media (max-width: 768px) {

  .proyecto-card,
  .wp-block-image {
    margin-bottom: 28px !important;
  }

  .proyecto-card,
  img,
  .wp-block-image img {
    display: block;
    margin-bottom: 10px;
  }

}

/* =========================================
   MÓVIL - HERO PARQUE MAQUINARIA EN COLUMNA
========================================= */

@media (max-width: 768px) {

  .parque-hero {
    display: block !important;

  }

  .parque-hero .wp-block-column n {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .parque-hero img {
    width: 100% !important;
    height: auto !important;
    margin-top: 25px;
  }

}

.maquinaria-menu {
  position: sticky;
  top: 118px;
  z-index: 1000;

  display: grid;
  grid-template-columns: repeat(6, 1fr);

  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.maquinaria-menu p {
  margin: 0;
  text-align: center;
  position: relative;
}

.maquinaria-menu p:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #b0b8c1;
}

.maquinaria-menu a {
  display: block;
  padding: 0 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #16222c;
}


/* =========================================
   FIX ANCLAS PARQUE MAQUINARIA
========================================= */

#fresadorascnc,
#tornos,
#equilibradora,
#centrosmecanizados,
#tornosconvencionales,
#maquinariaauxiliar {
  scroll-margin-top: 190px;
}

.eje-soldado {
  text-align: center;
}

.eje-soldado .wp-block-columns {
  margin-bottom: 12px !important;
}

.eje-soldado p {
  margin-top: 0 !important;
}

.eje-titulo {
  text-align: center;
  max-width: 800px;
  margin: 10px auto 25px auto !important;
}

/*
=========================================
   MENÚ MAQUINARIA – MÓVIL OPTIMIZADO
=========================================*/
@media (max-width:768px) {

  .maquinaria-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    overflow-x: auto;
    gap: 20px;
  }

  .maquinaria-menu p {
    flex: 0 0 auto;
    margin: 0;
  }

}



/* leyenda maquina */

.wp-element-caption {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}


/* =========================================
   FORZAR LISTA A LA IZQUIERDA
========================================= */

.lista-izquierda,
.lista-izquierda ul,
.lista-izquierda li {
  text-align: left !important;
}

/* =========================================
   LISTA INDUSTRIAL – ESTILO TÉCNICO
========================================= */

.lista-industrial ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.lista-industrial li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  /*  font-size: 15px; */
  letter-spacing: 0.02em;
}


.lista-industrial li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #d32f2f;
  font-weight: 700;
}

/* Lista maquinaria auxiliar */

.lista-auxiliar li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.lista-auxiliar ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

.lista-auxiliar li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-weight: 500;
}

.lista-auxiliar li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: #16222c;
  /* azul acero */
  font-size: 14px;
  line-height: 1.5;
  top: 6px;
}

.nuestros-compromisos li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.nuestros-compromisos ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

.nuestros-compromisos li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-weight: 500;
}

.nuestros-compromisos li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d32f2f;
  font-size: 14px;

  line-height: 1.5;
  top: 6px;
}

.empresas-img img {
  width: 210px !important;
  height: 210px !important;
  object-fit: cover;
  border-radius: 20px;
}

.oficina-img img {
  width: 350px !important;
  height: 350px !important;
  object-fit: cover;
  border-radius: 20px;
}

.servicios-grid {
  margin-top: 40px;

}

@media (max-width:768px) {

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .page h1 {
    font-size: 26px;
  }

}

@media (max-width:992px) {

  .page h1 {
    font-size: 30px;
  }

}

/* 
  PAGINA CONTACTO- FORMULARIO 
 */



.contacto-pro {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.contacto-grid {
  display: flex !important;
  gap: 20px;
  margin-top: 10px;
}

.contacto-box {
  flex: 1;
  background: #fff;
  padding: 10px;
  border-left: 4px solid #c00;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contacto-box h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.contacto-box p {
  margin: 0;
}

.contacto-box a {
  color: #000;
  text-decoration: none;
}

.contacto-box a:hover {
  color: #c00;
}


.horario-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.horario-lista li {
  margin-bottom: 8px;
}

/* MOBILE */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    flex-direction: column !important;
  }
}


/* Formulario */


.contacto-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.container-cms input[type="text"],
.container-cms input[type="email"],
.container-cms input[type="tel"],
.container-cms input[type="file"],
.container-cms input[type="recaptcha"],
.contacto-form textarea {
  width: 100%;
  padding: 10px;
  /*  padding: var(--space-m);*/
  margin-bottom: 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.cms-btn {

  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;

}

.cms-btn:hover {

  background: #b71c1c;
  transform: translateY(-3px);

}



.contacto-form .wpcf7-acceptance {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacto-form .wpcf7-recaptcha {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.recaptcha-legal {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.recaptcha-legal a {
  color: #0066cc !important;
  text-decoration: underline !important;
  font-weight: 500;
}

.recaptcha-legal a:hover {
  color: #d32f2f !important;
}

@media (max-width:768px) {

  .wp-block-columns {
    gap: 20px !important;
  }

  .wp-block-column {
    margin-bottom: 0 !important;
  }

  .wp-block-image {
    margin-bottom: 0 !important;
  }

  .wp-block-column p:first-child {
    margin-top: 0 !important;
  }

}

/* ==========================================
MENÚ+IDIOMAS
==========================================*/

.header-languages {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 30px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 80px;
  background: #16222c;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 6px;
  padding: 8px 0;
  z-index: 9999;
}

.header-languages:hover .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}

.lang-dropdown a:hover {
  background: #243240;
  color: #d32f2f;
}

/* Navegación */

.header-navigation {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ==========================================
   CMS - TIPOGRAFÍA LOCAL
========================================== */

body {
  font-family: 'Inter', Arial, sans-serif;
}

/* Textos generales */
p,
li,
input,
textarea,
select {
  font-family: 'Inter', Arial, sans-serif;
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Hero */
.hero-content h1 {
  max-width: 760px;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: clamp(38px, 3.4vw, 50px);
  line-height: 1.08;
  font-weight: 700;
}

/* Texto Hero */
.hero-content p {
  font-family: 'Inter', Arial, sans-serif !important;
}

/* Menú */
.custom-header a,
.custom-menu a,
.gdlr-navigation a {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Botones */
button,
.button,
.wp-block-button__link,
.hero-content a {
  font-family: 'Inter', Arial, sans-serif;
}

/* ==========================================
   CMS - TÍTULOS GUTENBERG
========================================== */

.wp-block-heading {
  font-family: 'Montserrat', Arial, sans-serif !important;
}

/*====================================================
404 Mecanizados CMS
====================================================*/

.cms-404 {

  min-height: 650px;

  background: url('/wp-content/uploads/2026/08/hero-video-poster.webp') center center;

  background-size: cover;

  position: relative;

}

.cms-404-overlay {

  background: rgba(22, 34, 44, .82);

  min-height: 650px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 100px 20px;

}

.cms-404-content {

  max-width: 900px;

  text-align: center;

  color: #fff;

}

.cms404-number {

  font-size: 140px;

  font-weight: 800;

  color: #d32f2f;

  line-height: 1;

  margin-bottom: 20px;

}

.cms-404 h1 {

  color: #fff;

  font-size: 48px;

  margin-bottom: 25px;

}

.cms404-text {

  font-size: 21px;

  line-height: 1.8;

  max-width: 760px;

  margin: 20px auto;

}

.cms404-buttons {

  margin: 45px 0;

}

.cms-btn-red {

  display: inline-block;

  background: #d32f2f;

  color: #fff;

  padding: 18px 40px;

  border-radius: 6px;

  margin: 10px;

  text-decoration: none;

  font-weight: 700;

  transition: .3s;

}

.cms-btn-red:hover {

  background: #b71c1c;

  color: #fff;

}

.cms-btn-dark {

  display: inline-block;

  border: 2px solid #fff;

  color: #fff;

  padding: 18px 40px;

  border-radius: 6px;

  margin: 10px;

  text-decoration: none;

  font-weight: 700;

  transition: .3s;

}

.cms-btn-dark:hover {

  background: #fff;

  color: #16222c;

}

.cms404-links {

  margin-top: 60px;

}

.cms404-links h3 {

  color: #fff;

  margin-bottom: 25px;

}

.cms404-links ul {

  list-style: none;

  padding: 0;

}

.cms404-links li {

  margin: 12px 0;

}

.cms404-links a {

  color: #fff;

  text-decoration: none;

  font-size: 18px;

}

.cms404-links a:hover {

  color: #d32f2f;

}

@media(max-width:768px) {

  .cms404-number {

    font-size: 90px;

  }

  .cms-404 h1 {

    font-size: 32px;

  }

  .cms404-text {

    font-size: 18px;

  }

}