/* ==========================================================================
   Inverter 2026 — estilos del rediseño
   Todo va bajo body.inv26 (clase que agrega el mu-plugin inverter-2026.php),
   así no afecta a páginas antiguas ni a otras apps del dominio.
   ========================================================================== */

body.inv26 {
  --inv-ink: #141414;
  --inv-text: #3d3d3d;
  --inv-muted: #5f5f5f;
  --inv-red: #BF0811;
  --inv-red-dark: #9d060e;
  --inv-bg: #F5F5F4;
  --inv-line: #E4E4E2;
  /* Astra usa estas variables para enlaces y botones: pasan a los colores del logo */
  --ast-global-color-0: #BF0811;
  --ast-global-color-1: #9d060e;
  --ast-global-color-2: #141414;
  --ast-global-color-3: #3d3d3d;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--inv-text);
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}
body.inv26 h1, body.inv26 h2, body.inv26 h3, body.inv26 h4,
body.inv26 .elementor-heading-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: var(--inv-ink);
}
body.inv26 a { color: var(--inv-red); }
body.inv26 a:hover { color: var(--inv-red-dark); }

/* Astra fuerza mayúsculas en títulos y botones: el diseño nuevo usa tipo oración */
body.inv26 h1, body.inv26 h2, body.inv26 h3, body.inv26 h4, body.inv26 h5, body.inv26 h6,
body.inv26 .elementor-heading-title, body.inv26 .elementor-button, body.inv26 .ast-custom-button {
  text-transform: none; letter-spacing: normal;
}

/* Contenido de ancho completo (Astra lo encierra en una caja de 1200 px) */
body.inv26 #content > .ast-container { max-width: none; padding: 0; display: block; }
body.inv26 #content, body.inv26 #primary, body.inv26 .site-main { margin: 0; padding: 0; }

/* Las imágenes con enlace deben ocupar todo el ancho de su caja */
body.inv26 .elementor-widget-image a { display: block; }

/* ---------- Cabecera (Astra) ---------- */
body.inv26 .ast-primary-header-bar,
body.inv26 .main-header-bar { background: #fff; border-bottom: 1px solid var(--inv-line); }
body.inv26 .site-primary-header-wrap { min-height: 78px; }
body.inv26 .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
  color: var(--inv-ink); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
}
body.inv26 .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover,
body.inv26 .ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link { color: var(--inv-red); }
body.inv26 .ast-desktop .main-header-menu .sub-menu {
  background: #fff; border: 1px solid var(--inv-line) !important; border-top-width: 1px !important;
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.10); padding: 8px; width: 300px;
}
body.inv26 .ast-desktop .main-header-menu .sub-menu .menu-item { border: 0 !important; }
body.inv26 .main-header-menu .sub-menu .menu-link {
  padding: 10px 12px !important; border-radius: 6px; border: 0 !important;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--inv-ink);
}
body.inv26 .main-header-menu .sub-menu .menu-link:hover { background: var(--inv-bg); color: var(--inv-red); }
body.inv26 .ast-header-button-1 .ast-custom-button {
  background: var(--inv-red); color: #fff; border: 0; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; padding: 12px 20px;
}
body.inv26 .ast-header-button-1 .ast-custom-button:hover { background: var(--inv-red-dark); color: #fff; }
body.inv26 .ast-mobile-header-wrap .main-header-menu .menu-link { color: var(--inv-ink); font-family: 'Inter', sans-serif; }

/* El pie de Astra se reemplaza por la plantilla de Elementor "Pie de página 2026" */
body.inv26 .site-footer { display: none; }

/* ---------- Secciones ---------- */
body.inv26 .inv-sec { padding: 96px 0; }
body.inv26 .inv-sec > .elementor-container { max-width: 1244px; padding-left: 32px; padding-right: 32px; }
body.inv26 .inv-sec .elementor-inner-section > .elementor-container { max-width: none; padding: 0; }
body.inv26 .inv-sec--gris { background: var(--inv-bg); }
body.inv26 .inv-sec--oscuro { background: var(--inv-ink); }
body.inv26 .inv-sec--rojo { background: var(--inv-red); padding: 80px 0; }
body.inv26 .inv-sec--borde { border-bottom: 1px solid var(--inv-line); }
body.inv26 .inv-sec--compacta { padding: 36px 0; }

/* Espaciado entre widgets */
body.inv26 .inv-sec .elementor-widget:not(:last-child) { margin-bottom: 16px; }
body.inv26 .inv-sec .elementor-widget.elementor-widget__width-auto { margin-right: 12px; }
body.inv26 .inv-sec .inv-mt { margin-top: 32px; }
body.inv26 .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Tipografía ---------- */
body.inv26 .inv-eyebrow .elementor-heading-title {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--inv-red);
}
body.inv26 .inv-eyebrow { margin-bottom: 12px !important; }
body.inv26 .inv-eyebrow--linea .elementor-heading-title { color: #e6e6e6; display: inline-flex; align-items: center; gap: 10px; }
body.inv26 .inv-eyebrow--linea .elementor-heading-title::before { content: ""; width: 28px; height: 2px; background: var(--inv-red); display: inline-block; }
body.inv26 .inv-h1 .elementor-heading-title { font-size: 52px; line-height: 1.08; font-weight: 800; color: #fff; }
body.inv26 .inv-h1--sub .elementor-heading-title { font-size: 46px; }
body.inv26 .inv-h2 .elementor-heading-title { font-size: 38px; line-height: 1.15; font-weight: 700; }
body.inv26 .inv-h3 .elementor-heading-title { font-size: 26px; line-height: 1.2; font-weight: 700; }
body.inv26 .inv-h4 .elementor-heading-title { font-size: 17px; line-height: 1.3; font-weight: 700; }
body.inv26 .inv-h4 .elementor-heading-title a { color: var(--inv-ink); }
body.inv26 .inv-h4 .elementor-heading-title a:hover { color: var(--inv-red); }
body.inv26 .inv-lead { color: var(--inv-muted); font-size: 17px; max-width: 680px; }
body.inv26 .inv-small { color: var(--inv-muted); font-size: 14px; }
body.inv26 .inv-sec--oscuro .elementor-heading-title,
body.inv26 .inv-sec--rojo .elementor-heading-title,
body.inv26 .inv-hero .elementor-heading-title { color: #fff; }
body.inv26 .inv-sec--oscuro .inv-eyebrow .elementor-heading-title { color: #ff8a8f; }
body.inv26 .inv-hero .inv-eyebrow .elementor-heading-title { color: #e6e6e6; }
body.inv26 .inv-sec--oscuro .inv-lead, body.inv26 .inv-hero .inv-lead { color: #d6d6d6; }
body.inv26 .inv-sec--oscuro .inv-small { color: #a8a8a8; }
body.inv26 .inv-sec--rojo .inv-lead { color: #ffe3e4; }

/* ---------- Botones ---------- */
body.inv26 .inv-btn .elementor-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 8px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; line-height: 1;
  background: transparent; color: var(--inv-ink); border: 1.5px solid transparent; transition: background .15s, color .15s;
}
body.inv26 .inv-btn--red .elementor-button { background: var(--inv-red); color: #fff; }
body.inv26 .inv-btn--red .elementor-button:hover { background: var(--inv-red-dark); color: #fff; }
body.inv26 .inv-btn--dark .elementor-button { border-color: var(--inv-ink); color: var(--inv-ink); }
body.inv26 .inv-btn--dark .elementor-button:hover { background: var(--inv-ink); color: #fff; }
body.inv26 .inv-btn--ghost .elementor-button { border-color: rgba(255,255,255,.6); color: #fff; }
body.inv26 .inv-btn--ghost .elementor-button:hover { border-color: #fff; color: #fff; }
body.inv26 .inv-btn--white .elementor-button { background: #fff; color: var(--inv-red); }
body.inv26 .inv-btn--white .elementor-button:hover { background: #ffe9ea; color: var(--inv-red-dark); }

/* ---------- Hero ---------- */
body.inv26 .inv-hero { padding: 120px 0 128px; }
body.inv26 .inv-hero--sub { padding: 88px 0 96px; }
body.inv26 .inv-hero .elementor-column > .elementor-widget-wrap { max-width: 680px; }
body.inv26 .inv-hero .inv-eyebrow + .elementor-widget { margin-top: 0; }
body.inv26 .inv-hero .inv-lead { margin-bottom: 24px !important; }

/* ---------- Rejillas (secciones internas) ---------- */
body.inv26 .inv-grid > .elementor-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
body.inv26 .inv-grid--4 > .elementor-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.inv26 .inv-grid--2 > .elementor-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.inv26 .inv-grid > .elementor-container > .elementor-column { width: 100% !important; max-width: none; }
body.inv26 .inv-split > .elementor-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
body.inv26 .inv-split > .elementor-container > .elementor-column { width: 100% !important; }

/* ---------- Tarjetas ---------- */
body.inv26 .inv-card > .elementor-widget-wrap {
  background: #fff; border: 1px solid var(--inv-line); border-radius: 14px; overflow: hidden;
  align-content: flex-start; height: 100%;
}
body.inv26 .inv-card .elementor-widget { padding: 0 24px; }
body.inv26 .inv-card .elementor-widget:not(:last-child) { margin-bottom: 8px; }
body.inv26 .inv-card .elementor-widget:last-child { padding-bottom: 24px; }
body.inv26 .inv-card .inv-card-img { padding: 0; margin-bottom: 20px !important; }
body.inv26 .inv-card .inv-card-img img { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 0; }
body.inv26 .inv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
body.inv26 .inv-tags span {
  font-size: 12px; font-weight: 500; color: var(--inv-text); background: var(--inv-bg);
  border: 1px solid var(--inv-line); border-radius: 999px; padding: 3px 10px;
}

/* ---------- Imágenes ---------- */
body.inv26 .inv-img-cover img { width: 100%; object-fit: cover; border-radius: 14px; display: block; }
body.inv26 .inv-alto-280 img { height: 280px; }
body.inv26 .inv-alto-400 img { height: 400px; }
body.inv26 .inv-alto-440 img { height: 440px; }
body.inv26 .inv-caja-blanca img { background: #fff; border-radius: 16px; padding: 24px; box-sizing: border-box; width: 100%; }

/* ---------- Fila de confianza ---------- */
body.inv26 .inv-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
body.inv26 .inv-trust-item { display: flex; gap: 14px; align-items: flex-start; }
body.inv26 .inv-trust-item svg { flex-shrink: 0; }
body.inv26 .inv-trust-item strong { display: block; font-family: 'Montserrat', sans-serif; color: var(--inv-ink); font-size: 16px; }
body.inv26 .inv-trust-item span { font-size: 14px; color: var(--inv-muted); }

/* ---------- Cabecera de grupo (Electricidad / Electrónica) ---------- */
body.inv26 .inv-group-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-bottom: 20px; border-bottom: 2px solid var(--inv-ink); margin-top: 40px;
}
body.inv26 .inv-group-id { display: flex; align-items: center; gap: 16px; }
body.inv26 .inv-icon-box { width: 52px; height: 52px; border-radius: 12px; background: var(--inv-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
body.inv26 .inv-group-id h3 { margin: 0; font-size: 26px; }
body.inv26 .inv-group-id p { margin: 0; color: var(--inv-muted); font-size: 15px; }
body.inv26 .inv-group-head a { font-weight: 600; text-decoration: none; }

/* ---------- Pasos ---------- */
body.inv26 .inv-step > .elementor-widget-wrap { border-top: 2px solid var(--inv-ink); padding-top: 20px; align-content: flex-start; }
body.inv26 .inv-step .elementor-widget:not(:last-child) { margin-bottom: 8px; }
body.inv26 .inv-step-num .elementor-heading-title { font-size: 32px; font-weight: 800; color: var(--inv-red); }

/* ---------- Listas ---------- */
body.inv26 .inv-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.inv26 .inv-list li { position: relative; padding-left: 18px; color: var(--inv-text); }
body.inv26 .inv-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--inv-red); }
body.inv26 .inv-list--2col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }

/* ---------- Atajos a servicios (chips) ---------- */
body.inv26 .inv-chips { display: flex; flex-wrap: wrap; gap: 10px; }
body.inv26 .inv-chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--inv-line); background: #fff; color: var(--inv-ink); font-weight: 500; font-size: 14px; text-decoration: none;
}
body.inv26 .inv-chips a:hover { border-color: var(--inv-red); color: var(--inv-red); }

/* ---------- Llamado final ---------- */
body.inv26 .inv-cta > .elementor-container { align-items: center; }
body.inv26 .inv-col-derecha > .elementor-widget-wrap { justify-content: flex-end; }

/* ---------- Contacto ---------- */
body.inv26 .inv-datos { display: grid; gap: 18px; }
body.inv26 .inv-dato { display: flex; gap: 14px; align-items: flex-start; }
body.inv26 .inv-dato strong { display: block; color: var(--inv-ink); font-family: 'Montserrat', sans-serif; }
body.inv26 .inv-dato span, body.inv26 .inv-dato a { color: var(--inv-muted); text-decoration: none; }
body.inv26 .inv-dato a:hover { color: var(--inv-red); }
body.inv26 .inv-form > .elementor-widget-wrap { background: #fff; border: 1px solid var(--inv-line); border-radius: 14px; padding: 36px; }
body.inv26 .inv-form .wpcf7 label { display: block; font-weight: 600; color: var(--inv-ink); font-size: 14px; }
body.inv26 .inv-form .wpcf7 input:not([type=submit]), body.inv26 .inv-form .wpcf7 textarea {
  width: 100%; margin-top: 6px; border: 1px solid #cfcfcc; border-radius: 8px; padding: 12px 14px; font: inherit; background: #fff;
}
body.inv26 .inv-form .wpcf7 textarea { height: 140px; }
body.inv26 .inv-form .wpcf7 input:focus, body.inv26 .inv-form .wpcf7 textarea:focus { outline: 2px solid var(--inv-red); outline-offset: 1px; border-color: transparent; }
body.inv26 .inv-form .wpcf7 input[type=submit] {
  background: var(--inv-red); color: #fff; border: 0; border-radius: 8px; min-height: 48px; padding: 0 28px;
  font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer;
}
body.inv26 .inv-form .wpcf7 input[type=submit]:hover { background: var(--inv-red-dark); }
body.inv26 .inv-mapa iframe { border-radius: 14px; }

/* ---------- Pie de página (plantilla Elementor) ---------- */
body.inv26 .inv-foot { background: var(--inv-bg); border-top: 1px solid var(--inv-line); padding: 64px 0 32px; }
body.inv26 .inv-foot > .elementor-container { max-width: 1244px; padding: 0 32px; }
body.inv26 .inv-foot .inv-foot-grid > .elementor-container { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 32px; }
body.inv26 .inv-foot .inv-foot-grid > .elementor-container > .elementor-column { width: 100% !important; }
body.inv26 .inv-foot .elementor-widget:not(:last-child) { margin-bottom: 12px; }
body.inv26 .inv-foot-logo, body.inv26 .inv-foot-logo .elementor-widget-container { text-align: left; }
body.inv26 .inv-foot-logo a { display: inline-block; }
body.inv26 .inv-foot-logo img { height: 40px; width: auto; }
body.inv26 .inv-foot-title .elementor-heading-title { font-size: 15px; font-weight: 700; }
body.inv26 .inv-foot, body.inv26 .inv-foot p { font-size: 14px; color: var(--inv-muted); }
body.inv26 .inv-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.inv26 .inv-foot ul a { color: var(--inv-muted); text-decoration: none; }
body.inv26 .inv-foot ul a:hover { color: var(--inv-red); }
body.inv26 .inv-foot-bottom {
  border-top: 1px solid var(--inv-line); margin-top: 28px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  body.inv26 .inv-grid > .elementor-container,
  body.inv26 .inv-grid--4 > .elementor-container,
  body.inv26 .inv-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.inv26 .inv-split > .elementor-container { grid-template-columns: 1fr; gap: 36px; }
  body.inv26 .inv-foot .inv-foot-grid > .elementor-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body.inv26 .inv-sec { padding: 64px 0; }
  body.inv26 .inv-hero { padding: 80px 0; }
  body.inv26 .inv-sec > .elementor-container,
  body.inv26 .inv-foot > .elementor-container { padding-left: 16px; padding-right: 16px; }
  body.inv26 .inv-grid > .elementor-container,
  body.inv26 .inv-grid--4 > .elementor-container,
  body.inv26 .inv-grid--2 > .elementor-container,
  body.inv26 .inv-trust,
  body.inv26 .inv-foot .inv-foot-grid > .elementor-container { grid-template-columns: 1fr; }
  body.inv26 .inv-list--2col ul { grid-template-columns: 1fr; }
  body.inv26 .inv-h1 .elementor-heading-title { font-size: 34px; }
  body.inv26 .inv-h2 .elementor-heading-title { font-size: 28px; }
  body.inv26 .inv-alto-400 img, body.inv26 .inv-alto-440 img { height: 260px; }
  body.inv26 .inv-hero > .elementor-background-overlay { background: rgba(14,14,14,.86) !important; }
  body.inv26 .inv-col-derecha > .elementor-widget-wrap { justify-content: flex-start; }
  body.inv26 .inv-form > .elementor-widget-wrap { padding: 24px; }
}
