/*
Theme Name: Graditi Child
Theme URI: https://graditi.com.co
Description: Tema hijo de Hello Elementor para graditi.com.co (Genesis Grow, 2026). Tokens de marca, CPT Proyectos y ajustes mínimos. Todo el diseño vive en Elementor.
Author: Genesis Grow
Author URI: https://genesisgrow.co
Template: hello-elementor
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: graditi-child
*/

/* ---------------------------------------------------------------------------
   Tokens de marca (Manual de Identidad Graditi Group, junio 2026).
   Los mismos valores están cargados como Global Colors / Global Fonts del kit
   de Elementor; estas variables existen para fragmentos fuera de Elementor
   (bloques del blog, formularios, 404 del tema) y para que un cambio de marca
   sea un solo lugar. No se redefinen en los widgets.
   ------------------------------------------------------------------------ */
:root {
  --gr-rojo: #c1191f;
  --gr-rojo-profundo: #89000a;
  --gr-negro: #000000;
  --gr-carbon: #3a3a3a;
  --gr-blanco: #ffffff;
  --gr-gris-claro: #f4f4f4;
  --gr-gris-medio: #d9d9d9;

  --gr-font-titulos: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gr-font-texto: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gr-font-eyebrow: "Brandon Grotesque", "Montserrat", system-ui, sans-serif;

  --gr-ancho: 1240px;
  --gr-radio: 6px;
  --gr-radio-boton: 4px;
  --gr-sombra: 0 18px 40px -24px rgb(0 0 0 / 0.35);
  --gr-seccion: 100px;
}
@media (max-width: 1024px) { :root { --gr-seccion: 72px; } }
@media (max-width: 767px)  { :root { --gr-seccion: 56px; } }

/* Base legible fuera de Elementor */
body { font-family: var(--gr-font-texto); color: var(--gr-carbon); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--gr-font-titulos); color: var(--gr-negro); line-height: 1.15; letter-spacing: -0.01em; }
a { color: var(--gr-rojo); }
a:hover { color: var(--gr-rojo-profundo); }
::selection { background: var(--gr-rojo); color: #fff; }

/* Foco visible y accesible (AA) en toda la interfaz */
:focus-visible { outline: 3px solid var(--gr-rojo); outline-offset: 3px; border-radius: 2px; }

/* Reducir movimiento: las animaciones de entrada de Elementor se desactivan */
@media (prefers-reduced-motion: reduce) {
  .elementor-invisible { visibility: visible !important; }
  .animated { animation: none !important; }
}

/* ---------------------------------------------------------------------------
   Componentes de marca (clases que se aplican desde Elementor › Avanzado › Clases CSS)
   ------------------------------------------------------------------------ */

/* Eyebrow: etiqueta pequeña en mayúsculas con línea roja a la izquierda */
.gr-eyebrow .elementor-heading-title {
  font-family: var(--gr-font-eyebrow);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gr-rojo);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.gr-eyebrow .elementor-heading-title::before { content: ""; width: 40px; height: 2px; background: currentColor; flex: none; }
.gr-eyebrow--centro .elementor-heading-title::after { content: ""; width: 40px; height: 2px; background: currentColor; flex: none; }
.gr-eyebrow--blanco .elementor-heading-title { color: #fff; }

/* Franja diagonal roja/negra del manual (divisor de sección) */
.gr-franja { position: relative; }
.gr-franja::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 2;
  background:
    linear-gradient(100deg, transparent 0 calc(100% - 180px), var(--gr-negro) calc(100% - 180px) calc(100% - 150px), transparent calc(100% - 150px)),
    linear-gradient(100deg, var(--gr-rojo) 0 calc(100% - 120px), transparent calc(100% - 120px));
  pointer-events: none;
}
.gr-franja--arriba::after { bottom: auto; top: 0; transform: scaleY(-1); }

/* Tarjetas (servicio, proyecto, sector) */
.gr-card { background: #fff; border: 1px solid var(--gr-gris-medio); border-radius: var(--gr-radio); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.gr-card:hover { transform: translateY(-4px); box-shadow: var(--gr-sombra); border-color: transparent; }
.gr-card--imagen img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Tarjeta de sector: foto de fondo + overlay que se aclara al pasar el mouse */
.gr-sector { position: relative; min-height: 320px; border-radius: var(--gr-radio); overflow: hidden; isolation: isolate; }
.gr-sector::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .1) 0%, rgb(0 0 0 / .75) 100%); z-index: -1; transition: background .3s ease; }
.gr-sector:hover::before { background: linear-gradient(180deg, rgb(193 25 31 / .15) 0%, rgb(0 0 0 / .85) 100%); }

/* Etiqueta de categoría */
.gr-tag { display: inline-block; font-family: var(--gr-font-eyebrow); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gr-rojo); background: #fff; border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px; }

/* Cifras */
.gr-cifra .elementor-counter { text-align: center; }
.gr-cifra .elementor-counter-title { display: block; }
.gr-cifra .elementor-counter-number-wrapper { font-family: var(--gr-font-titulos); font-weight: 700; font-size: 52px; color: var(--gr-rojo); }
.gr-cifra .elementor-counter-title { font-family: var(--gr-font-eyebrow); text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; color: #fff; margin-top: 6px; }

/* Números grandes del proceso */
.gr-paso .elementor-icon-box-icon .elementor-icon { font-family: var(--gr-font-titulos); font-weight: 700; font-size: 56px; color: var(--gr-rojo); line-height: 1; font-style: normal; }

/* Logos de clientes: gris que pasa a color */
.gr-logos img { filter: grayscale(1) opacity(.6); transition: filter .3s ease; }
.gr-logos img:hover { filter: none; }

/* Botón flotante de WhatsApp */
a.gr-whatsapp, .elementor-kit-4 a.gr-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gr-rojo); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgb(193 25 31 / .6); }
a.gr-whatsapp:hover, .elementor-kit-4 a.gr-whatsapp:hover { background: var(--gr-rojo-profundo); color: #fff; transform: translateY(-2px); }
a.gr-whatsapp svg { width: 30px; height: 30px; fill: #fff !important; display: block; }

/* Blog: contenido editado en Gutenberg, estilizado aquí para no depender de Elementor */
.gr-blog-content { max-width: 760px; margin-inline: auto; font-size: 17px; line-height: 1.7; }
.gr-blog-content h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 2em; }
.gr-blog-content h3 { font-size: clamp(20px, 2.4vw, 22px); margin-top: 1.6em; }
.gr-blog-content ul, .gr-blog-content ol { padding-left: 1.3em; }
.gr-blog-content li { margin-bottom: .4em; }
.gr-blog-content li::marker { color: var(--gr-rojo); }
.gr-blog-content blockquote { border-left: 4px solid var(--gr-rojo); padding: .5em 0 .5em 1.2em; margin: 1.6em 0; color: var(--gr-negro); font-weight: 500; }
.gr-blog-content a { text-decoration: underline; text-underline-offset: 3px; }
.gr-blog-content figure { margin: 2em 0; }

/* Ficha técnica pegajosa del proyecto */
.gr-ficha { position: sticky; top: calc(116px + var(--wp-admin--admin-bar-height, 0px)); }
.gr-ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.gr-ficha dt { font-family: var(--gr-font-eyebrow); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--gr-carbon); }
.gr-ficha dd { margin: 0; font-weight: 600; color: var(--gr-negro); }
.gr-alcance { padding-left: 1.2em; margin: 0; }
.gr-alcance li { margin-bottom: .45em; }
.gr-alcance li::marker { color: var(--gr-rojo); }

/* Header/footer provisionales de Hello Elementor (hasta montar el Theme Builder de Elementor Pro) */
.site-header .site-logo img, .site-header .custom-logo { max-width: 200px; height: auto; }
.site-header { padding-block: 16px; }
.site-header .site-navigation a { color: var(--gr-negro); font-weight: 500; }
.site-header .site-navigation a:hover { color: var(--gr-rojo); }
.site-footer { background: var(--gr-negro); color: #fff; }
.site-footer a { color: #fff; }
.site-footer .site-logo img, .site-footer .custom-logo { max-width: 180px; height: auto; }
.site-footer { padding-block: 40px; }

/* Utilidades */
.gr-oculto-vacio:empty { display: none; }
.gr-texto-centro { text-align: center; }
.gr-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===========================================================================
   Header y footer provisionales del brief (reemplazan los de Hello Elementor
   hasta montar el Theme Builder de Elementor Pro)
   =========================================================================== */
.gr-wrap { width: min(var(--gr-ancho), 100% - 48px); margin-inline: auto; }
@media (max-width: 767px) { .gr-wrap { width: calc(100% - 32px); } }

/* El header completo es pegajoso con top negativo = alto de la barra superior: la barra negra sale de pantalla y la principal queda fija sin cambiar de alto (sin saltos ni parpadeo). */
.gr-header { --gr-topbar: 40px; position: sticky; top: calc(var(--wp-admin--admin-bar-height, 0px) - var(--gr-topbar)); z-index: 900; background: #fff; }
.gr-topbar { background: var(--gr-negro); color: #fff; font-size: 13px; height: 40px; display: flex; align-items: center; }
.gr-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gr-header .gr-topbar a { color: #fff; text-decoration: none; }
.gr-header .gr-topbar a:hover { color: #ff8a8e; }
.gr-topbar__social { display: flex; gap: 14px; }
.gr-topbar__social svg, .gr-footer__social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.gr-topbar__meta { letter-spacing: .01em; }
/* Solo la barra principal es pegajosa: la superior se va con el scroll y el alto no cambia, así no hay saltos ni parpadeo. */
.gr-mainbar { background: #fff; border-bottom: 1px solid var(--gr-gris-medio); transition: box-shadow .3s ease; }
.gr-header--sticky .gr-mainbar { box-shadow: 0 8px 24px -16px rgb(0 0 0 / .35); }
.gr-mainbar__inner { display: flex; align-items: center; gap: 32px; height: 96px; }
.gr-logo { display: inline-flex; align-items: center; margin-right: auto; }
.gr-logo img { height: 68px; width: auto; display: block; transition: transform .3s ease; transform-origin: left center; }
.gr-header--sticky .gr-logo img { transform: scale(.85); }
.gr-nav__list, .gr-nav__list ul { list-style: none; margin: 0; padding: 0; }
.gr-nav__list { display: flex; gap: 4px; align-items: center; }
.gr-nav__list > li { position: relative; }
.gr-nav__list > li > a { display: block; padding: 10px 14px; font-weight: 500; font-size: 15.5px; color: var(--gr-negro); text-decoration: none; border-radius: 4px; transition: color .2s ease, background .2s ease; }
.gr-nav__list > li > a:hover, .gr-nav__list > li.current-menu-item > a, .gr-nav__list > li.current-menu-ancestor > a { color: var(--gr-rojo); }
.gr-nav__list > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.gr-nav__list .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--gr-gris-medio); border-top: 3px solid var(--gr-rojo); border-radius: 0 0 6px 6px; box-shadow: var(--gr-sombra); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.gr-nav__list > li:hover > .sub-menu, .gr-nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gr-nav__list .sub-menu a { display: block; padding: 10px 18px; color: var(--gr-carbon); text-decoration: none; font-size: 15px; }
.gr-nav__list .sub-menu a:hover { color: var(--gr-rojo); background: var(--gr-gris-claro); }

.gr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--gr-font-titulos); font-weight: 600; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; padding: 14px 28px; border-radius: var(--gr-radio-boton); border: 2px solid transparent; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease; }
.gr-btn:hover { transform: translateY(-1px); }
.gr-btn.gr-btn--primary { background: var(--gr-rojo); color: #fff; }
.gr-btn.gr-btn--primary:hover { background: var(--gr-rojo-profundo); color: #fff; }
.gr-btn.gr-btn--blanco { background: #fff; color: var(--gr-rojo); }
.gr-btn.gr-btn--blanco:hover { background: var(--gr-negro); color: #fff; }
.gr-btn.gr-btn--outline-blanco { border-color: #fff; color: #fff; }
.gr-btn.gr-btn--outline-blanco:hover { background: #fff; color: var(--gr-negro); }
.gr-btn--block { width: 100%; }
.gr-header__cta { padding: 12px 22px; font-size: 14px; white-space: nowrap; }
.gr-header button.gr-burger { display: none; width: 44px; height: 44px; min-width: 44px; border: 0; border-radius: 4px; background: transparent !important; color: var(--gr-negro); flex-direction: column; justify-content: center; align-items: stretch; gap: 5px; cursor: pointer; padding: 10px; box-shadow: none; }
.gr-header button.gr-burger:hover { background: var(--gr-gris-claro) !important; }
.gr-header button.gr-burger span { display: block; width: 100%; height: 2px; background: var(--gr-negro); border-radius: 2px; }
.gr-offcanvas button.gr-offcanvas__close { background: transparent !important; color: #fff; padding: 0 8px; }
.gr-offcanvas { position: fixed; inset: 0; top: var(--wp-admin--admin-bar-height, 0px); background: var(--gr-negro); color: #fff; z-index: 1000; padding: 20px 24px 40px; overflow: auto; display: flex; flex-direction: column; gap: 24px; }
.gr-offcanvas[hidden] { display: none; }
.gr-offcanvas__head { display: flex; align-items: center; justify-content: space-between; }
.gr-offcanvas__head img { height: 44px; width: auto; }
.gr-offcanvas__close { background: transparent; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.gr-offcanvas ul { list-style: none; margin: 0; padding: 0; }
.gr-offcanvas li > a { display: block; padding: 12px 0; color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; border-bottom: 1px solid rgb(255 255 255 / .12); }
.gr-offcanvas .sub-menu a { font-size: 16px; font-weight: 400; padding: 10px 0 10px 16px; color: #ddd; }
.gr-offcanvas__wa { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
html.gr-menu-abierto { overflow: hidden; }
@media (max-width: 1100px) { .gr-topbar__meta { display: none; } .gr-nav__list > li > a { padding-inline: 10px; font-size: 15px; } }
@media (max-width: 1024px) { .gr-header .gr-nav, .gr-header .gr-btn.gr-header__cta { display: none; } .gr-header button.gr-burger { display: flex; } .gr-mainbar__inner { height: 80px; } .gr-logo img { height: 54px; } }
@media (max-width: 767px) { .gr-topbar { display: none; } .gr-header { --gr-topbar: 0px; } }

/* Footer */
.gr-footer { background: var(--gr-negro); color: #fff; padding: 96px 0 0; margin-top: 0; }
.gr-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 64px; }
.gr-footer__brand img { width: 150px; height: auto; display: block; margin-bottom: 20px; }
.gr-footer__brand p { color: #cfcfcf; font-size: 15px; line-height: 1.6; max-width: 32ch; }
.gr-footer__social { display: flex; gap: 14px; margin-top: 18px; }
.gr-footer__social a { width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .25s ease, border-color .25s ease; }
.gr-footer__social a:hover { background: var(--gr-rojo); border-color: var(--gr-rojo); color: #fff; }
.gr-footer__title { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gr-rojo); display: inline-block; }
.gr-footer__list { list-style: none; margin: 0; padding: 0; }
.gr-footer__list li { margin-bottom: 10px; color: #cfcfcf; font-size: 15px; line-height: 1.55; }
.gr-footer .gr-footer__list a { color: #fff; text-decoration: none; transition: color .2s ease; }
.gr-footer__list a:hover { color: #ff8a8e; }
.gr-footer__contact .gr-btn { margin-top: 10px; }
.gr-footer__bottom { background: #111; padding: 18px 0; font-size: 13px; color: #bdbdbd; }
.gr-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gr-footer .gr-footer__bottom a { color: #fff; text-decoration: none; }
.gr-footer__bottom a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .gr-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gr-footer__grid { grid-template-columns: 1fr; gap: 36px; } .gr-footer { padding-top: 72px; } }

/* ===========================================================================
   Plantillas de Proyectos (archivo + detalle)
   =========================================================================== */
.gr-hero { position: relative; isolation: isolate; color: #fff; padding: 140px 0 120px; background: var(--gr-negro) var(--gr-hero-img, none) center/cover no-repeat; }
.gr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgb(0 0 0 / .45), rgb(0 0 0 / .82)); }
.gr-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 52px); max-width: 20ch; margin: 10px 0 16px; }
.gr-hero .gr-lead { color: #fff; max-width: 60ch; }
.gr-hero--proyecto { min-height: 60vh; display: flex; align-items: flex-end; }
.gr-hero .rank-math-breadcrumb, .gr-hero .rank-math-breadcrumb a { color: #ddd; font-size: 13px; }
.gr-hero .rank-math-breadcrumb { margin-bottom: 18px; }
/* Eyebrow en plantillas PHP (p.gr-eyebrow). El widget de Elementor usa la regla .gr-eyebrow .elementor-heading-title de arriba. */
p.gr-eyebrow { font-family: var(--gr-font-eyebrow); font-weight: 500; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--gr-rojo); display: flex; align-items: center; gap: 14px; margin: 0 0 8px; }
p.gr-eyebrow::before { content: ""; width: 40px; height: 2px; background: currentColor; }
p.gr-eyebrow--centro { justify-content: center; }
p.gr-eyebrow--centro::after { content: ""; width: 40px; height: 2px; background: currentColor; }
p.gr-eyebrow--blanco { color: #fff; }
.gr-lead { font-size: 20px; line-height: 1.55; color: var(--gr-carbon); }
.gr-centro { text-align: center; }
.gr-seccion { padding: var(--gr-seccion) 0; }
.gr-seccion--compacta { padding: 56px 0 8px; }
.gr-seccion--gris { background: var(--gr-gris-claro); }
.gr-seccion--negra { background: var(--gr-negro); color: #fff; }
.gr-seccion h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 20px; }
.gr-resumen { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; color: var(--gr-negro); line-height: 1.4; max-width: 34ch; }
.gr-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.gr-filtros a { padding: 10px 20px; border: 1px solid var(--gr-gris-medio); border-radius: 999px; color: var(--gr-carbon); text-decoration: none; font-weight: 500; font-size: 15px; transition: all .2s ease; }
.gr-filtros a:hover { border-color: var(--gr-rojo); color: var(--gr-rojo); }
.gr-filtros a.is-active { background: var(--gr-negro); border-color: var(--gr-negro); color: #fff; }
.gr-grid { display: grid; gap: 28px; }
.gr-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gr-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .gr-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gr-grid--3, .gr-grid--2 { grid-template-columns: 1fr; } }
.gr-card__media { display: block; overflow: hidden; }
.gr-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gr-card__body h3 { font-size: 20px; line-height: 1.3; margin: 4px 0 0; }
.gr-card__body h3 a, .elementor-kit-4 .gr-card__body h3 a { color: var(--gr-negro); text-decoration: none; }
.gr-card__body h3 a:hover { color: var(--gr-rojo); }
.gr-card__meta { color: var(--gr-carbon); font-size: 15px; margin: 0; }
.gr-link { color: var(--gr-rojo); font-weight: 600; text-decoration: none; font-size: 15px; margin-top: 4px; }
.gr-link:hover { color: var(--gr-rojo-profundo); }
.gr-hero a.gr-tag--oscuro, .gr-tag.gr-tag--oscuro { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); text-decoration: none; }
.gr-paginacion { margin-top: 48px; }
.gr-paginacion .nav-links { display: flex; gap: 8px; justify-content: center; }
.gr-paginacion .page-numbers { padding: 10px 16px; border: 1px solid var(--gr-gris-medio); border-radius: 4px; text-decoration: none; color: var(--gr-carbon); }
.gr-paginacion .page-numbers.current, .gr-paginacion .page-numbers:hover { background: var(--gr-rojo); border-color: var(--gr-rojo); color: #fff; }
.gr-proyecto__cuerpo { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.gr-proyecto__texto h2 { font-size: 26px; margin-top: 40px; }
.gr-proyecto__texto h2:first-child { margin-top: 0; }
.gr-proyecto__texto p { font-size: 17px; line-height: 1.7; }
.gr-ficha { padding: 32px 28px; background: #fff; }
.gr-ficha__titulo { font-size: 14px !important; letter-spacing: .2em; text-transform: uppercase; color: var(--gr-rojo); margin: 0 0 20px !important; }
.gr-ficha dl { margin-bottom: 24px; }
@media (max-width: 1024px) { .gr-proyecto__cuerpo { grid-template-columns: 1fr; gap: 40px; } .gr-ficha { position: static; } }
.gr-antes-despues figure { margin: 0; }
.gr-antes-despues img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gr-radio); }
.gr-antes-despues figcaption { margin-top: 12px; font-family: var(--gr-font-eyebrow); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gr-rojo); }
.gr-galeria-wrap .wp-block-gallery { gap: 16px; }
.gr-galeria-wrap .wp-block-gallery img { border-radius: var(--gr-radio); aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gr-galeria-wrap .wp-block-gallery figure:hover img { transform: scale(1.03); }
.gr-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--gr-radio); }
.gr-cita { margin: 0 auto; max-width: 28ch; text-align: center; font-size: clamp(24px, 3vw, 36px); font-weight: 600; color: #fff; line-height: 1.3; }
.gr-cita::before { content: ""; display: block; width: 48px; height: 3px; background: var(--gr-rojo); margin: 0 auto 28px; }
.gr-cta-final { position: relative; isolation: isolate; padding: 110px 0; color: #fff; background: var(--gr-negro) url("assets/hero-proyectos.webp") center/cover no-repeat; }
.gr-cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgb(0 0 0 / .72), rgb(137 0 10 / .85)); }
.gr-cta-final h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); max-width: 24ch; margin: 0 auto 16px; }
.gr-cta-final .gr-lead { color: #fff; max-width: 52ch; margin: 0 auto 32px; }
.gr-botones { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================================
   Movimiento sutil y empresarial
   =========================================================================== */
/* Entrada: Elementor usa animate.css (fadeInUp = 100 % de desplazamiento). Lo acortamos a 24 px y 0,7 s. */
@keyframes grFadeInUp { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.elementor-element.animated.fadeInUp, .animated.fadeInUp { animation-name: grFadeInUp !important; animation-duration: .7s !important; animation-timing-function: cubic-bezier(.22, .61, .36, 1) !important; }
.animated.fadeIn { animation-duration: .9s !important; }
/* Plantillas PHP */
.gr-js .gr-anim { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1); transition-delay: var(--gr-delay, 0ms); }
.gr-js .gr-anim.is-visible { opacity: 1; transform: none; }
/* Micro-interacciones */
.gr-card--imagen img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.gr-card:hover .gr-card--imagen img, .gr-card--imagen:hover img, .gr-card:hover > .gr-card__media img { transform: scale(1.04); }
.elementor-widget-image-box.gr-card--imagen .elementor-image-box-img { overflow: hidden; border-radius: var(--gr-radio); }
.elementor-widget-button .elementor-button { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease; }
.elementor-widget-button .elementor-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgb(193 25 31 / .6); }
.gr-sector::before, .e-con.gr-card::before { transition: background .35s ease; }
.gr-whatsapp { animation: grPulso 3s ease-in-out infinite; }
@keyframes grPulso { 0%, 100% { box-shadow: 0 10px 24px -8px rgb(193 25 31 / .6); } 50% { box-shadow: 0 10px 24px -8px rgb(193 25 31 / .6), 0 0 0 10px rgb(193 25 31 / .12); } }
@media (prefers-reduced-motion: reduce) { .gr-anim { opacity: 1; transform: none; transition: none; } .gr-whatsapp { animation: none; } .gr-card--imagen img { transition: none; } }

/* Ajustes móviles finos */
@media (max-width: 767px) {
  .gr-eyebrow .elementor-heading-title, p.gr-eyebrow { font-size: 12px; letter-spacing: .14em; gap: 10px; }
  .gr-eyebrow .elementor-heading-title::before, p.gr-eyebrow::before { width: 28px; }
  .gr-hero { padding: 110px 0 90px; }
}

/* ===========================================================================
   Blog (archivo + entrada)
   =========================================================================== */
.gr-blog__barra { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gr-blog__barra .gr-filtros { margin: 0; }
.gr-buscar { display: flex; border: 1px solid var(--gr-gris-medio); border-radius: 999px; overflow: hidden; background: #fff; }
.gr-buscar input { border: 0; padding: 10px 18px; font: inherit; font-size: 15px; min-width: 240px; outline: none; background: transparent; }
.gr-buscar button { border: 0; background: var(--gr-negro) !important; color: #fff; width: 44px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gr-buscar button svg { width: 20px; height: 20px; fill: currentColor; }
.gr-buscar button:hover { background: var(--gr-rojo) !important; }
.gr-card__meta--arriba { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; }
.gr-card__meta--arriba .gr-tag, .gr-tag { white-space: nowrap; }
.gr-card__meta--arriba .gr-tag { text-decoration: none; }
.gr-card__extracto { color: var(--gr-carbon); font-size: 15px; line-height: 1.55; margin: 0; }
.gr-card--blog .gr-card__body h3 { font-size: 19px; }
.gr-seccion--roja { background: var(--gr-rojo); color: #fff; }
.gr-portafolio-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.gr-portafolio-cta h2 { color: #fff; margin: 6px 0 10px; }
.gr-portafolio-cta p { color: #fff; margin: 0; max-width: 60ch; font-size: 17px; }

.gr-entrada__cabecera { background: var(--gr-gris-claro); padding: 56px 0 160px; }
.gr-entrada__cabecera-inner { max-width: 860px; }
.gr-migas, .gr-migas a { font-size: 13px; color: var(--gr-carbon); text-decoration: none; }
.gr-migas { margin-bottom: 22px; }
.gr-migas a:hover { color: var(--gr-rojo); }
.gr-entrada__cabecera .gr-tag { text-decoration: none; }
.gr-entrada__cabecera h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 16px 0 18px; max-width: 22ch; }
.gr-entrada__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--gr-carbon); font-size: 15px; margin: 0; }

.gr-entrada__imagen { margin-top: -120px; max-width: 1040px; }
.gr-entrada__imagen img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 8px; box-shadow: var(--gr-sombra); display: block; }
.gr-entrada__cuerpo { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; padding: 64px 0 var(--gr-seccion); max-width: 1180px; }
.gr-entrada__cuerpo:has(> .gr-blog-content:only-child) { grid-template-columns: 1fr; }
.gr-toc { position: sticky; top: calc(116px + var(--wp-admin--admin-bar-height, 0px)); padding: 26px 24px; }
.gr-toc__titulo { font-family: var(--gr-font-eyebrow); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gr-rojo); margin: 0 0 14px; }
.gr-toc ol { margin: 0 0 20px; padding-left: 1.2em; }
.gr-toc li { margin-bottom: 8px; font-size: 15px; line-height: 1.4; }
.gr-toc li::marker { color: var(--gr-rojo); font-weight: 600; }
.gr-toc a { color: var(--gr-carbon); text-decoration: none; }
.gr-toc a:hover { color: var(--gr-rojo); }
.gr-entrada__contenido { margin: 0; max-width: 760px; }
.gr-entrada__contenido h2:first-child { margin-top: 0; }
.gr-entrada__contenido .gr-cta-blog { border-radius: 8px; padding: 32px 32px 28px; margin: 40px 0; }
.gr-entrada__contenido .gr-cta-blog h3 { margin-top: 0; color: #fff; }
.gr-entrada__contenido .gr-cta-blog p { color: #ddd; }
.gr-entrada__contenido .gr-cta-blog .wp-block-button__link, .gr-blog-content .wp-block-button__link { color: #fff !important; background: var(--gr-rojo); border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; padding: 14px 28px; text-decoration: none; }
.gr-entrada__contenido .gr-cta-blog .wp-block-button__link:hover { background: var(--gr-rojo-profundo); }
.gr-lee-tambien { background: var(--gr-gris-claro); border-left: 4px solid var(--gr-rojo); padding: 16px 20px; border-radius: 0 6px 6px 0; }
.gr-entrada__autor { display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--gr-gris-medio); }
.gr-entrada__autor img { width: 56px; height: 56px; flex: none; }
.gr-entrada__autor p { margin: 0 0 6px; font-size: 15px; }
.gr-entrada__autor-nombre { font-weight: 700; color: var(--gr-negro); font-size: 17px !important; }
@media (max-width: 1024px) { .gr-entrada__cuerpo { grid-template-columns: 1fr; gap: 32px; } .gr-toc { position: static; } }
@media (max-width: 767px) { .gr-entrada__cabecera { padding: 36px 0 110px; } .gr-entrada__imagen { margin-top: -80px; } .gr-entrada__imagen img { aspect-ratio: 4 / 3; } .gr-buscar input { min-width: 0; width: 100%; } .gr-buscar { width: 100%; } }
