/* =========================================================
   AG Constructora Widgets — Hoja de estilos del plugin
   Todas las clases van prefijadas "ag-" y las reglas de elementos
   base (h1-h4, p, svg, img, a, *) quedan encapsuladas dentro de
   ".ag-scope" para no alterar el tema ni otros plugins del sitio.
   Geometría recta (sin radios), placas con corte diagonal, paleta
   negro / azul corporativo / blanco del cliente.
   ========================================================= */

:root {
  /* Colores globales */
  --ag-c-primary: #2981D6;       /* Azul corporativo cliente, aclarado para contrastar sobre fondos oscuros */
  --ag-c-primary-dark: #143F69;  /* Azul exacto del logo del cliente */
  --ag-c-secondary: #1E242B;     /* Negro azulado del logo del cliente */
  --ag-c-secondary-2: #2A323C;
  --ag-c-secondary-deep: #12161B; /* variante más oscura para franjas y footer */
  --ag-c-text: #181818;
  --ag-c-muted: #6B6B6B;
  --ag-c-bg: #FFFFFF;
  --ag-c-bg-soft: #F5F3EF;       /* Hormigón cálido, sólo para respiros claros */
  --ag-c-line: #E3E1DD;
  --ag-c-line-dark: rgba(255,255,255,.14);
  --ag-c-white: #FFFFFF;
  --ag-c-whatsapp: #25D366;

  /* Tipografía global */
  --ag-f-head: "Archivo", system-ui, sans-serif;
  --ag-f-body: "Manrope", system-ui, sans-serif;

  /* Layout — geometría recta: sin radios */
  --ag-container: 1200px;
  --ag-gutter: 24px;
  --ag-radius: 0px;
  --ag-radius-sm: 0px;
  --ag-cut: 20px;                /* tamaño del corte diagonal en placas/etiquetas */
  --ag-section-y: clamp(72px, 9vw, 120px);
  --ag-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
  --ag-shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .3);
}

/* ---------- Base ---------- */
.ag-scope,
.ag-scope *,
.ag-scope *::before,
.ag-scope *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.ag-scope {
  font-family: var(--ag-f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ag-c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ag-scope img { max-width: 100%; display: block; }
.ag-scope a { color: inherit; text-decoration: none; }
.ag-scope h1, .ag-scope h2, .ag-scope h3, .ag-scope h4 { font-family: var(--ag-f-head); line-height: 1.12; margin: 0 0 .5em; color: var(--ag-c-secondary); letter-spacing: -.02em; }
.ag-scope h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; }
.ag-scope h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
.ag-scope h3 { font-size: 1.25rem; font-weight: 700; }
.ag-scope p { margin: 0 0 1em; }
.ag-scope svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ag-scope svg.ag-fill { fill: currentColor; stroke: none; }

.ag-container { width: 100%; max-width: var(--ag-container); margin: 0 auto; padding: 0 var(--ag-gutter); }
.ag-section { padding: var(--ag-section-y) 0; }
.ag-accent { color: var(--ag-c-primary); }

/* Placa con corte diagonal — firma geométrica del sitio (como la placa de
   numeración de la fachada en el sitio de referencia) */
.ag-cut-tl { clip-path: polygon(var(--ag-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--ag-cut)); }
.ag-cut-tr { clip-path: polygon(0 0, calc(100% - var(--ag-cut)) 0, 100% var(--ag-cut), 100% 100%, 0 100%); }
.ag-cut-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ag-cut)), calc(100% - var(--ag-cut)) 100%, 0 100%); }
.ag-cut-bl { clip-path: polygon(var(--ag-cut) 100%, 0 calc(100% - var(--ag-cut)), 0 0, 100% 0, 100% 100%); }

.ag-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ag-f-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ag-c-primary-dark); margin-bottom: 16px;
}
.ag-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--ag-c-primary); }
.ag-eyebrow--light { color: var(--ag-c-primary); }
.ag-eyebrow--on-dark { color: var(--ag-c-primary); }

.ag-lead { font-size: 1.125rem; color: var(--ag-c-muted); max-width: 560px; }
.ag-lead--light { color: rgba(255,255,255,.78); }

/* ---------- Botones — rectos, sin radio ---------- */
.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ag-f-head); font-weight: 700; font-size: .95rem;
  padding: 15px 26px; border: 2px solid transparent;
  cursor: pointer; transition: .25s ease; white-space: nowrap;
}
.ag-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.ag-btn:hover svg { transform: translateX(3px); }
.ag-btn--lg { padding: 17px 32px; font-size: 1rem; }
.ag-btn--block { width: 100%; }
.ag-btn--primary { background: var(--ag-c-primary); color: var(--ag-c-white); }
.ag-btn--primary:hover { background: var(--ag-c-primary-dark); color: var(--ag-c-white); }
.ag-btn--dark { background: var(--ag-c-secondary); color: var(--ag-c-white); }
.ag-btn--dark:hover { background: var(--ag-c-secondary-2); }
.ag-btn--ghost { border-color: var(--ag-c-line); color: var(--ag-c-secondary); background: var(--ag-c-white); }
.ag-btn--ghost:hover { border-color: var(--ag-c-secondary); }
.ag-btn--outline-light { border-color: rgba(255,255,255,.4); color: var(--ag-c-white); background: transparent; }
.ag-btn--outline-light:hover { border-color: var(--ag-c-white); background: rgba(255,255,255,.08); }
.ag-btn--light { background: var(--ag-c-white); color: var(--ag-c-secondary); }
.ag-btn--light:hover { background: var(--ag-c-bg-soft); }
.ag-btn--whatsapp { background: var(--ag-c-whatsapp); color: #fff; }
.ag-btn--whatsapp:hover { background: #1eb958; }
.ag-btn--whatsapp:hover svg { transform: none; }

.ag-icon-box {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  background: rgba(20, 63, 105, .12); color: var(--ag-c-primary-dark);
}
.ag-icon-box i { font-size: 20px; line-height: 1; }
.ag-icon-box--on-dark { background: rgba(255,255,255,.08); color: var(--ag-c-primary); }
.ag-icon-box--lg { width: 60px; height: 60px; }
.ag-icon-box--lg svg { width: 28px; height: 28px; }
.ag-icon-box--lg i { font-size: 28px; }

/* ---------- Topbar ---------- */
.ag-topbar { background: var(--ag-c-secondary-deep); color: rgba(255,255,255,.8); font-size: .85rem; }
.ag-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.ag-topbar__info { display: flex; gap: 28px; flex-wrap: wrap; }
.ag-topbar__info a, .ag-topbar__info span { display: inline-flex; align-items: center; gap: 8px; }
.ag-topbar__info a:hover { color: var(--ag-c-primary); }
.ag-topbar svg { width: 15px; height: 15px; color: var(--ag-c-primary); }

/* ---------- Header ---------- */
.ag-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: .3s;
}
.ag-header.ag-is-scrolled { border-color: var(--ag-c-line); box-shadow: var(--ag-shadow-sm); }
.ag-header__inner { display: flex; align-items: center; gap: 32px; min-height: 80px; }

.ag-logo { display: inline-flex; align-items: center; gap: 12px; }
.ag-logo__icon { width: 52px; height: auto; flex-shrink: 0; }
.ag-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.ag-logo__text strong { font-family: var(--ag-f-head); font-weight: 800; font-size: 1.1rem; color: var(--ag-c-secondary); text-transform: uppercase; letter-spacing: .02em; }
.ag-logo__text small { font-size: .78rem; color: var(--ag-c-muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.ag-logo--light .ag-logo__text strong { color: var(--ag-c-white); }
.ag-logo--light .ag-logo__text small { color: rgba(255,255,255,.6); }

.ag-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ag-nav__menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.ag-nav__menu li { list-style: none; margin: 0; }
.ag-nav a {
  font-weight: 600; font-size: .95rem; color: var(--ag-c-text);
  padding: 8px 14px; transition: .2s; display: inline-block;
}
.ag-nav a:hover, .ag-nav a.ag-is-active, .ag-nav li.current-menu-item > a { color: var(--ag-c-secondary); background: var(--ag-c-bg-soft); }
.ag-nav__cta-mobile { display: none; }
.ag-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.ag-burger span { display: block; width: 24px; height: 2px; background: var(--ag-c-secondary); margin: 5px 0; transition: .3s; }

/* ---------- Hero — foto completa, como constructoranoble.com ---------- */
.ag-hero {
  position: relative; overflow: hidden; color: var(--ag-c-white);
  display: flex; align-items: center;
  min-height: min(860px, 96vh);
  padding: 150px 0 130px;
}
.ag-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ag-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ag-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,8,8,.95) 0%, rgba(8,8,8,.82) 38%, rgba(8,8,8,.45) 68%, rgba(8,8,8,.22) 100%),
    linear-gradient(0deg, rgba(8,8,8,.65) 0%, transparent 45%);
}
.ag-hero__inner { position: relative; z-index: 2; max-width: 640px; }
.ag-hero h1 { color: var(--ag-c-white); margin-bottom: 22px; }
.ag-hero h1 .ag-accent { display: block; }
.ag-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 30px; }
.ag-hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .92rem; color: var(--ag-c-white); }
.ag-hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.ag-hero__checks li::before {
  content: ""; width: 16px; height: 16px; background: var(--ag-c-primary); flex-shrink: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17.2L5.3 12l1.8-1.8 3.4 3.4 6.9-6.9 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.5 17.2L5.3 12l1.8-1.8 3.4 3.4 6.9-6.9 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ag-hero__badge {
  position: absolute; z-index: 2; right: clamp(24px, 6vw, 90px); bottom: 56px;
  background: var(--ag-c-secondary-deep); border: 1px solid rgba(255,255,255,.12);
  padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; max-width: 230px;
  box-shadow: var(--ag-shadow);
}
.ag-hero__badge strong { font-family: var(--ag-f-head); font-weight: 800; font-size: 2.2rem; color: var(--ag-c-white); line-height: 1; }
.ag-hero__badge span { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.4; }

/* Franja de estadísticas — barra oscura que "corta" el borde del hero */
.ag-stats-bar { position: relative; z-index: 3; background: var(--ag-c-secondary-deep); margin-top: -64px; }
.ag-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.ag-stat { padding: 30px 28px; border-right: 1px solid var(--ag-c-line-dark); }
.ag-stat:last-child { border-right: 0; }
.ag-stat strong { display: block; font-family: var(--ag-f-head); font-weight: 800; font-size: 2.4rem; color: var(--ag-c-white); line-height: 1; margin-bottom: 8px; }
.ag-stat > span { color: rgba(255,255,255,.62); font-size: .92rem; font-weight: 500; }

/* ---------- Sectores — franja clara, respiro entre bloques oscuros ---------- */
.ag-sectors { padding: 48px 0; background: var(--ag-c-bg-soft); }
.ag-sectors__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.ag-sectors p { margin: 0; font-family: var(--ag-f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--ag-c-muted); }
.ag-sectors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ag-sectors li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border: 1px solid var(--ag-c-line); background: var(--ag-c-white); font-weight: 600; color: var(--ag-c-secondary); font-size: .93rem;
}
.ag-sectors li svg, .ag-sectors li i { color: var(--ag-c-primary-dark); font-size: 18px; width: 20px; height: 20px; line-height: 1; }

/* ---------- Nosotros — sección oscura ---------- */
.ag-about { background: var(--ag-c-secondary); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.ag-about::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.ag-about .ag-container { position: relative; }
.ag-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ag-about__media { position: relative; padding: 0 60px 60px 0; }
.ag-about__img-main { aspect-ratio: 4/4.2; object-fit: cover; width: 100%; box-shadow: var(--ag-shadow); }
.ag-about__img-sec {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover;
  border: 8px solid var(--ag-c-secondary); box-shadow: var(--ag-shadow);
}
.ag-about__badge {
  position: absolute; left: -20px; bottom: 90px; background: var(--ag-c-primary); color: var(--ag-c-white);
  padding: 18px 20px; max-width: 220px; box-shadow: var(--ag-shadow);
  display: flex; gap: 12px; align-items: center;
}
.ag-about__badge strong { font-family: var(--ag-f-head); font-size: 2rem; font-weight: 800; line-height: 1; }
.ag-about__badge span { font-size: .82rem; font-weight: 700; line-height: 1.3; }
.ag-about h2 { color: var(--ag-c-white); }
.ag-about__content > p { color: rgba(255,255,255,.7); }
.ag-about__content > p strong { color: var(--ag-c-white); }
.ag-about__features { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ag-about__features li { display: flex; gap: 14px; align-items: flex-start; }
.ag-about__features strong { display: block; font-family: var(--ag-f-head); color: var(--ag-c-white); margin-bottom: 2px; }
.ag-about__features small { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.45; display: block; }

/* ---------- Encabezados de sección ---------- */
.ag-section-head { margin-bottom: 52px; }
.ag-section-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.ag-section-head--split h2 { margin: 0; }
.ag-section-head--split > p { color: var(--ag-c-muted); margin: 0; }
.ag-section-head--split.ag-on-dark > p { color: rgba(255,255,255,.65); }
.ag-section-head--center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.ag-section-head--center .ag-eyebrow::after { content: ""; width: 28px; height: 3px; background: var(--ag-c-primary); }

/* ---------- Servicios — sección oscura, tarjetas planas ---------- */
.ag-services { background: var(--ag-c-secondary-deep); position: relative; overflow: hidden; }
.ag-services::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.ag-services .ag-container { position: relative; }
.ag-services h2 { color: var(--ag-c-white); }
.ag-services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--ag-c-line-dark); }
.ag-service-card {
  background: var(--ag-c-secondary); display: flex; flex-direction: column; transition: .35s;
}
.ag-service-card:hover { background: var(--ag-c-secondary-2); }
.ag-service-card__img { position: relative; overflow: hidden; aspect-ratio: 16/8; }
.ag-service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; filter: saturate(.9); }
.ag-service-card:hover .ag-service-card__img img { transform: scale(1.06); }
.ag-service-card__num {
  position: absolute; left: 0; top: 0; background: var(--ag-c-primary); color: var(--ag-c-white);
  font-family: var(--ag-f-head); font-weight: 800; padding: 8px 18px 8px 14px; font-size: .9rem;
}
.ag-service-card__body { padding: 30px 32px 34px; }
.ag-service-card__body h3 { font-size: 1.4rem; color: var(--ag-c-white); }
.ag-service-card__body > p { color: rgba(255,255,255,.62); font-size: .95rem; }
.ag-service-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--ag-c-line-dark); padding-top: 18px; }
.ag-service-card li { position: relative; padding-left: 22px; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.62); }
.ag-service-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 3px; background: var(--ag-c-primary); }
.ag-service-card li strong { color: var(--ag-c-white); }

/* ---------- Proceso ---------- */
.ag-process {
  background: var(--ag-c-secondary); color: rgba(255,255,255,.75); position: relative; overflow: hidden;
}
.ag-process::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ag-process .ag-container { position: relative; }
.ag-process h2, .ag-process h3 { color: var(--ag-c-white); }
.ag-process__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--ag-c-line-dark); counter-reset: step; }
.ag-step {
  position: relative; padding: 32px 26px; background: var(--ag-c-secondary-deep); transition: .3s;
}
.ag-step:hover { background: #142A44; }
.ag-step__num {
  display: inline-grid; place-items: center; width: 50px; height: 50px;
  background: var(--ag-c-primary); color: var(--ag-c-white); font-family: var(--ag-f-head); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 22px;
}
.ag-step p { margin: 0; font-size: .95rem; }

/* ---------- Misión / Visión ---------- */
.ag-mv { background: var(--ag-c-secondary-deep); }
.ag-mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ag-c-line-dark); }
.ag-mv__card { padding: 44px 40px; background: var(--ag-c-secondary); }
.ag-mv__card .ag-icon-box { margin-bottom: 22px; }
.ag-mv__card .ag-eyebrow { display: flex; font-size: 1rem; color: var(--ag-c-primary); }
.ag-mv__card p { color: rgba(255,255,255,.65); margin: 0; font-size: 1.02rem; }
.ag-mv__card--accent { background: var(--ag-c-primary); }
.ag-mv__card--accent .ag-icon-box { background: rgba(255,255,255,.18); color: var(--ag-c-white); }
.ag-mv__card--accent .ag-eyebrow { color: var(--ag-c-white); }
.ag-mv__card--accent .ag-eyebrow::before { background: var(--ag-c-white); }
.ag-mv__card--accent p { color: rgba(255,255,255,.85); }

/* ---------- Proyectos ---------- */
.ag-projects { padding-top: 0; }
.ag-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ag-filter {
  font-family: var(--ag-f-head); font-weight: 600; font-size: .9rem; padding: 10px 18px;
  border: 1px solid var(--ag-c-line); background: var(--ag-c-white); color: var(--ag-c-secondary); cursor: pointer; transition: .2s;
}
.ag-filter:hover { border-color: var(--ag-c-secondary); }
.ag-filter.ag-is-active { background: var(--ag-c-secondary); color: var(--ag-c-white); border-color: var(--ag-c-secondary); }
.ag-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 2px; }
.ag-project { position: relative; margin: 0; overflow: hidden; cursor: pointer; transition: opacity .4s, transform .4s; }
.ag-project--wide { grid-column: span 2; }
.ag-project.ag-is-hidden { display: none; }
.ag-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.ag-project:hover img { transform: scale(1.06); }
.ag-project figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px;
  background: linear-gradient(180deg, transparent, rgba(8,8,8,.92));
  color: var(--ag-c-white);
}
.ag-project figcaption span { display: inline-block; background: var(--ag-c-primary); color: var(--ag-c-white); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; margin-bottom: 10px; }
.ag-project figcaption h3 { color: var(--ag-c-white); margin: 0; font-size: 1.2rem; }
.ag-project figcaption small { color: rgba(255,255,255,.75); }

/* ---------- CTA ---------- */
.ag-cta {
  position: relative; padding: 72px 0; color: var(--ag-c-white);
  background-color: var(--ag-c-secondary-deep);
  background-repeat: no-repeat; background-position: center; background-size: cover;
}
/* La imagen de fondo real se aplica inline desde el widget (control MEDIA
   "Imagen de fondo"), para que el cliente pueda cambiarla desde Elementor. */
.ag-cta__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.88) 55%, rgba(10,10,10,.6) 100%);
}
.ag-cta__inner { position: relative; z-index: 1; }
.ag-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.ag-cta h2 { color: var(--ag-c-white); margin-bottom: 8px; }
.ag-cta p { margin: 0; color: rgba(255,255,255,.8); font-size: 1.1rem; }
.ag-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.ag-contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.ag-contact__info > p { color: var(--ag-c-muted); }
.ag-contact__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 18px; }
.ag-contact__list li { display: flex; gap: 16px; align-items: center; }
.ag-contact__list small { display: block; color: var(--ag-c-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ag-contact__list a, .ag-contact__list span { font-family: var(--ag-f-head); font-weight: 700; color: var(--ag-c-secondary); font-size: 1.05rem; }
.ag-contact__list a:hover { color: var(--ag-c-primary-dark); }
.ag-contact__map { overflow: hidden; border: 1px solid var(--ag-c-line); height: 240px; }
.ag-contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

.ag-form {
  background: var(--ag-c-secondary-deep); color: rgba(255,255,255,.8); padding: 42px;
  box-shadow: var(--ag-shadow); position: relative;
}
.ag-form h3 { font-size: 1.6rem; margin-bottom: 4px; color: var(--ag-c-white); }
.ag-form__sub { color: rgba(255,255,255,.6); margin-bottom: 26px; }
.ag-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ag-field { display: block; margin-bottom: 18px; }
.ag-field span { display: block; font-weight: 700; font-size: .85rem; color: var(--ag-c-white); margin-bottom: 7px; }
.ag-field input, .ag-field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ag-c-white);
  padding: 14px 16px; border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05); transition: .2s; resize: vertical;
}
.ag-field input::placeholder, .ag-field textarea::placeholder { color: rgba(255,255,255,.4); }
.ag-field input:focus, .ag-field textarea:focus { outline: none; border-color: var(--ag-c-primary); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(25,93,159,.2); }
.ag-field.ag-has-error input, .ag-field.ag-has-error textarea { border-color: #E4685D; }
.ag-form__note { text-align: center; color: rgba(255,255,255,.5); font-size: .8rem; margin: 14px 0 0; }
.ag-form__success { margin-top: 16px; padding: 14px 16px; background: #1B6B3A; color: #fff; font-weight: 600; text-align: center; }

/* ---------- Footer ---------- */
.ag-footer { background: var(--ag-c-secondary-deep); color: rgba(255,255,255,.7); padding-top: 72px; font-size: .93rem; }
.ag-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.ag-footer__brand p { margin: 20px 0 24px; max-width: 320px; }
.ag-footer h4 { color: var(--ag-c-white); font-size: 1rem; margin-bottom: 18px; }
.ag-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ag-footer a:hover { color: var(--ag-c-primary); }
.ag-socials { display: flex; gap: 10px; }
.ag-socials a { display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255,255,255,.08); color: var(--ag-c-white); transition: .2s; }
.ag-socials a:hover { background: var(--ag-c-primary); color: var(--ag-c-white); }
.ag-socials svg { width: 18px; height: 18px; }
.ag-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.ag-footer__bottom a { color: var(--ag-c-primary); font-weight: 700; }

/* ---------- WhatsApp flotante ---------- */
.ag-wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--ag-c-whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .25s;
}
.ag-wa-float:hover { transform: scale(1.08); }
.ag-wa-float svg { width: 28px; height: 28px; }
.ag-wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ag-c-whatsapp); animation: ag-pulse 2.2s infinite; }
@keyframes ag-pulse { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones de entrada ---------- */
.ag-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.ag-reveal.ag-is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ag-scope *, .ag-scope *::before, .ag-scope *::after { animation: none !important; transition: none !important; }
  .ag-reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive (breakpoints = Tablet 1024 / Móvil 767 de Elementor)
   ========================================================= */
@media (max-width: 1100px) {
  .ag-header__cta { display: none; }
  .ag-nav a { padding: 8px 10px; }
}
@media (max-width: 1024px) {
  .ag-header { backdrop-filter: none; background: var(--ag-c-white); } /* backdrop-filter atraparía el menú fijo */
  .ag-burger { display: block; }
  .ag-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
    flex-direction: column; gap: 4px; padding: 100px 24px 24px; background: var(--ag-c-white);
    box-shadow: -20px 0 60px rgba(0,0,0,.25); z-index: 55;
    clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .35s ease, visibility 0s .35s;
  }
  .ag-nav.ag-is-open { clip-path: inset(0 0 0 -80px); visibility: visible; transition: clip-path .35s ease; }
  .ag-nav__menu { flex-direction: column; align-items: stretch; width: 100%; }
  .ag-nav a { padding: 12px 16px; font-size: 1.05rem; }
  .ag-nav__cta-mobile { display: inline-flex; margin-top: 16px; }
  .ag-burger { position: relative; z-index: 56; }
  .ag-burger.ag-is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ag-burger.ag-is-open span:nth-child(2) { opacity: 0; }
  .ag-burger.ag-is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .ag-hero { min-height: auto; padding: 120px 0 110px; flex-direction: column; align-items: flex-start; }
  .ag-hero__badge { position: static; margin: 36px var(--ag-gutter) 0; max-width: 320px; }
  .ag-stats-bar { margin-top: 0; }
  .ag-about__grid, .ag-contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .ag-stats { grid-template-columns: repeat(2, 1fr); }
  .ag-stat:nth-child(2) { border-right: 0; }
  .ag-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ag-c-line-dark); }
  .ag-about__media { max-width: 560px; }
  .ag-section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .ag-filters { justify-content: flex-start; }
  .ag-services__grid { grid-template-columns: 1fr; }
  .ag-process__steps { grid-template-columns: repeat(2, 1fr); }
  .ag-projects__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .ag-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --ag-gutter: 16px; }
  .ag-hide-sm { display: none !important; }
  .ag-topbar__info { gap: 16px; font-size: .8rem; }
  .ag-header__inner { min-height: 68px; }
  .ag-logo__icon { width: 40px; }
  .ag-logo__text strong { font-size: .98rem; }
  .ag-logo__text small { font-size: .7rem; }
  .ag-hero__actions .ag-btn { width: 100%; }
  .ag-hero__badge { padding: 18px 20px; }
  .ag-stat { padding: 22px 18px; }
  .ag-stat strong { font-size: 1.9rem; }
  .ag-about__media { padding: 0 30px 30px 0; }
  .ag-about__badge { left: -6px; bottom: 50px; padding: 12px 14px; max-width: 180px; }
  .ag-about__features { grid-template-columns: 1fr; }
  .ag-service-card__body { padding: 24px 22px 28px; }
  .ag-process__steps { grid-template-columns: 1fr; }
  .ag-mv__grid { grid-template-columns: 1fr; }
  .ag-mv__card { padding: 32px 26px; }
  .ag-projects__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .ag-project--wide { grid-column: auto; }
  .ag-cta__actions, .ag-cta__actions .ag-btn { width: 100%; }
  .ag-form { padding: 28px 20px; }
  .ag-form__row { grid-template-columns: 1fr; gap: 0; }
  .ag-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
