/*
 * =====================================================================
 * ESTRATEGIAS PUBLICARTE — Hoja de estilos unificada
 * =====================================================================
 *
 * SECCIONES:
 *  1. Fuentes (DM Sans – extraído de home_files/css2.css)
 *  2. Base compartida (home.html)
 *  3. Componentes compartidos: Navbar, Botones, Footer, Animaciones
 *  4. Estilos exclusivos de home.html
 *  5. Estilos compartidos de páginas de servicios
 *     (diseno-grafico, pagina-web, redes-sociales, eventos)
 *
 * =====================================================================
 */


/* ===================================================================
   1. FUENTES — DM Sans (@font-face desde google fonts)
      Fuente: home_files/css2.css (ahora obsoleto)
   =================================================================== */

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Wp2ywxg089UriCZaSExdy3sGt9zz86GPwyKK58UfkvU0oa-dA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Wp2ywxg089UriCZaSExdy3sGt9zz86GPwyKy58UfkvU0oaw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWCBl0-8RH9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWCBl0-8Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWCBl0-8RH9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWCBl0-8Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWCBl0-8RH9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWCBl0-8Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWCBl0-8RH9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWCBl0-8Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWCBl0-8RH9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWCBl0-8Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ===================================================================
   2. VARIABLES Y BASE — home.html
      Las páginas de servicios usan nombres cortos (--p5, --g8, etc.)
      que son alias de estas mismas variables. Ambos conjuntos coexisten.
   =================================================================== */

:root {
  /* Variables largas (home.html) */
  --purple-900: #1A003A;
  --purple-800: #2D0060;
  --purple-700: #4B0EA0;
  --purple-600: #6B14B8;
  --purple-500: #7B2FA5;
  --purple-400: #9A4EC8;
  --purple-300: #B87FE0;
  --purple-100: #EDE4F8;
  --purple-50: #F7F2FC;
  --blue: #35c5e7;
  --white: #FFFFFF;
  --gray-50: #F8F8FA;
  --gray-100: #F0EEF5;
  --gray-200: #E2DFF0;
  --gray-400: #9590AB;
  --gray-600: #5C5672;
  --gray-800: #2A2438;
  --gray-900: #13101E;
  --font: 'DM Sans', sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 50px;
  --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(123, 47, 165, .08);
  --shadow-md: 0 8px 28px rgba(123, 47, 165, .14);
  --shadow-lg: 0 20px 60px rgba(123, 47, 165, .18);

  /* Variables cortas (páginas de servicios) — alias de las anteriores */
  --p9: #1A003A;
  --p7: #4B0EA0;
  --p6: #6B14B8;
  --p5: #7B2FA5;
  --p4: #9A4EC8;
  --p3: #B87FE0;
  --p1: #EDE4F8;
  --p0: #F7F2FC;
  --w: #FFFFFF;
  --g0: #F8F8FA;
  --g1: #F0EEF5;
  --g2: #E2DFF0;
  --g4: #9590AB;
  --g6: #5C5672;
  --g8: #2A2438;
  --g9: #13101E;
  --rsm: 8px;
  --rmd: 12px;
  --rlg: 18px;
  --rxl: 28px;
  --rp: 50px;
  --sh: 0 8px 28px rgba(123, 47, 165, .14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}


/* ===================================================================
   3. COMPONENTES COMPARTIDOS
   =================================================================== */

/* ── Botones (home.html) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple-500);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(123, 47, 165, .35);
}

.btn-primary:hover {
  background: var(--purple-600);
  box-shadow: 0 8px 28px rgba(123, 47, 165, .45);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--purple-300);
  color: var(--purple-500);
}

.btn-white {
  background: var(--white);
  color: var(--purple-600);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.btn-white:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  flex-shrink: 0;
}

.btn-ghost .arrow-icon {
  background: var(--purple-100);
}

/* ── Botones (páginas de servicios) ── */
.btn-p {
  background: var(--p5);
  color: var(--w);
  box-shadow: 0 4px 16px rgba(123, 47, 165, .35);
}

.btn-p:hover {
  background: var(--p6);
}

.btn-w {
  background: var(--w);
  color: var(--p6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  flex-shrink: 0;
}

.btn-w .ai {
  background: var(--p1);
}

/* ── Tag labels ── */
.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-500);
  margin-bottom: 16px;
}

.tag-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--purple-500);
  border-radius: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--p5);
  margin-bottom: 14px;
}

.tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--p5);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--gray-900);
  letter-spacing: -.02em;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 520px;
  margin-top: 14px;
}

.h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--g9);
  letter-spacing: -.02em;
}

/* ── Navbar (home.html) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 76px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(123, 47, 165, .10);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-menu a {
  display: block;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}

.nav-menu a:hover {
  color: var(--purple-500);
  background: var(--purple-50);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 960px) {

  .nav-menu,
  .nav-right .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 24px;
  z-index: 998;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
  overflow-y: auto;
}

.nav-mobile-panel.open {
  display: block;
}

/* Los enlaces del menú vienen como <li><a>…</a></li> sueltos (sin <ul>
   envolvente), por lo que el navegador les aplica el estilo por defecto
   de lista (viñeta). Se quita aquí. */
.nav-mobile-panel li {
  list-style: none;
  margin: 0;
}

/* Se limita a "li a" para no afectar al botón CTA (<a class="btn
   btn-primary">), que es hijo directo del panel y necesita conservar
   sus propios estilos (fondo morado, texto blanco, centrado). */
.nav-mobile-panel li a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--ease);
}

.nav-mobile-panel li a:hover {
  color: var(--purple-500);
}

.nav-mobile-panel .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--ease);
  flex-shrink: 0;
}

.nav-social-icon:hover {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-social-icon svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 960px) {
  .nav-socials {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 20px;
  }
}

/* ── Navbar (páginas de servicios) ── */
.nbi {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nbl img {
  height: 44px;
  width: auto;
}

.nm {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nm a {
  display: block;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--g6);
  border-radius: var(--rsm);
  transition: color var(--ease), background var(--ease);
}

.nm a:hover,
.nm a.active {
  color: var(--p5);
  background: var(--p0);
}

.nr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nt {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nt span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--g8);
  border-radius: 2px;
}

@media (max-width: 960px) {

  .nm,
  .nr .btn {
    display: none;
  }

  .nt {
    display: flex;
  }
}

.nmp {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--w);
  border-bottom: 1px solid var(--g2);
  padding: 20px 24px;
  z-index: 998;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.nmp.open {
  display: block;
}

.nmp a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--g8);
  border-bottom: 1px solid var(--g1);
}

.nmp .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ── Footer (home.html) ── */
.footer {
  background: var(--gray-900);
  padding: 80px 0 32px;
  color: rgba(255, 255, 255, .55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-logo {
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: .92;
  height: 38px;
}

/* Logo blanco subido en Opciones del Tema → Footer (imagen real, sin
   filtro CSS) — se usa cuando el logo del header no sirve para el
   fondo oscuro del footer. */
.footer-logo-custom {
  display: block;
  height: 60px;
  width: auto;
  margin-bottom: 18px;
}

/* Fallback: si no se sube un logo blanco propio, se sigue mostrando el
   logo del header (the_custom_logo(), clase "custom-logo") con un
   filtro que lo fuerza a silueta blanca. */
.footer .custom-logo-link {
  display: inline-block;
  margin-bottom: 18px;
}

.footer .custom-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.footer-about {
  font-size: 14px;
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--purple-300);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .45);
  transition: border-color var(--ease), color var(--ease);
}

.social-btn:hover {
  border-color: var(--purple-400);
  color: var(--purple-300);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Footer (páginas de servicios) ── */
.fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.fl {
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .92;
  height: 36px;
}

.fbot-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.fbot-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}

.fbot-legal a:hover {
  color: rgba(255, 255, 255, .7);
}

.fa {
  font-size: 14px;
  line-height: 1.75;
  max-width: 270px;
}

.fc h5 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.fli {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fli a {
  font-size: 14px;
  color: rgba(255, 255, 255, .4);
  transition: color var(--ease);
}

.fli a:hover {
  color: var(--p3);
}

.fbot {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.srow {
  display: flex;
  gap: 10px;
}

.sbtn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--rsm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .4);
  transition: all var(--ease);
}

.sbtn:hover {
  border-color: var(--p4);
  color: var(--p3);
}

.sbtn svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 900px) {
  .fg {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .fg {
    grid-template-columns: 1fr;
  }

  .cb-inner {
    flex-direction: column;
  }
}

/* ── Animaciones ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
  margin-bottom: 52px;
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* alias corto para servicios */
.rd1 {
  transition-delay: .1s;
}

.rd2 {
  transition-delay: .2s;
}

.rd3 {
  transition-delay: .3s;
}


/* ===================================================================
   4. ESTILOS EXCLUSIVOS DE home.html
   =================================================================== */

/* ── Hero ── */
.hero {
  padding-top: 76px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-50) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text {
  padding: 80px 40px 80px 80px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--r-pill);
  padding: 6px 16px 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-600);
  letter-spacing: .05em;
  margin-bottom: 28px;
  animation: fadeUp .7s ease .1s both;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--purple-500);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(123, 47, 165, .4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(123, 47, 165, 0);
  }
}

.hero-h1 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--gray-900);
  margin-bottom: 8px;
  animation: fadeUp .7s ease .25s both;
}

.hero-h1 .em {
  color: var(--purple-500);
  position: relative;
}

.hero-h1 .em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-400), var(--purple-200));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: scaleIn .6s ease 1.1s both;
}

@keyframes scaleIn {
  to {
    transform: scaleX(1);
  }
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 36px;
  animation: fadeUp .7s ease .4s both;
}

.hero-tagline strong {
  color: var(--gray-900);
  font-weight: 700;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .7s ease .55s both;
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeUp .7s ease .7s both;
}

.trust-avatars {
  display: flex;
}

.trust-avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-600);
  margin-left: -8px;
}

.trust-avatars span:first-child {
  margin-left: 0;
}

.trust-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

.trust-text strong {
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 600px;
  /* background-image se define aquí como respaldo; front-page.php la
     sobreescribe con estilo inline si hay una imagen elegida en
     Opciones del Tema → Home · Hero, sin tocar posición/tamaño/repeat. */
  background-image: url('/web2026/wp-content/uploads/2026/06/preview-3.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 0, 58, .55) 0%, rgba(107, 20, 184, .45) 100%);
}

.hero-shapes {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.hero-card-main {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 280px;
  position: relative;
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-card-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-50);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.hero-card-main h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.hero-card-main p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

.hero-card-sm {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  z-index: 4;
}

.hero-card-sm .badge {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* "Alcance Digital" y "Potencia tu Marca" ocultas a pedido del cliente;
   se deja el CSS listo por si se quieren reactivar más adelante. */
.hero-card-main,
.card-sm-1 {
  display: none;
}

.card-sm-2 {
  bottom: 28px;
  left: 4%;
  animation: floatCard 5s ease-in-out -4s infinite;
}

/* Botón CTA administrable, esquina inferior derecha del banner */
.hero-banner-cta {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 5;
}

.btn-white .arrow-icon {
  background: var(--purple-100);
}

.shape-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--purple-100);
  opacity: .5;
}

.sc-1 {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -40px;
}

.sc-2 {
  width: 90px;
  height: 90px;
  bottom: 60px;
  right: 20%;
  opacity: .3;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 60px 24px 40px;
  }

  .hero-visual {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .hero-text {
    padding: 60px 20px 40px;
  }
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--gray-900);
  padding: 44px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--purple-300);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.stat-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
}

@media (max-width: 640px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
}

/* ── Servicios carrusel ── */
.services-section {
  padding: 100px 0;
  background: var(--white);
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}

.services-header-left {
  max-width: 560px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease);
  color: var(--gray-800);
}

.ctrl-btn:hover {
  border-color: var(--purple-500);
  background: var(--purple-500);
  color: var(--white);
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.services-track-wrap {
  overflow: hidden;
  position: relative;
}

.services-track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.svc-card {
  flex: 0 0 calc(33.33% - 16px);
  min-width: 280px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
}

.svc-card::after {
  display: none;
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(26, 0, 58, .22);
  border-radius: 20px;
}

/* imagen */
.svc-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.svc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
  display: block;
}

.svc-card:hover .svc-img-wrap img {
  transform: scale(1.07);
}

/* overlay degradado dentro de la tarjeta */
.svc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(26, 0, 58, .45) 0%, rgba(26, 0, 58, .88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 26px;
  transition: background var(--ease);
}

.svc-card:hover .svc-overlay {
  background: linear-gradient(170deg, rgba(75, 14, 160, .55) 0%, rgba(26, 0, 58, .95) 100%);
}

/* círculo ícono */
.svc-circle-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 2px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.svc-card:hover .svc-circle-icon {
  background: var(--purple-500);
  border-color: var(--purple-400);
  transform: scale(1.12);
}

.svc-circle-icon svg {
  width: 34px;
  height: 34px;
  color: #fff;
}

/* contenido texto */
.svc-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  border-bottom: 3px solid var(--purple-400);
  padding-bottom: 8px;
  letter-spacing: -.01em;
}

.svc-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .35s ease;
}

.svc-card:hover .svc-desc {
  max-height: 120px;
  opacity: 1;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-300);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease .05s, transform .3s ease .05s, gap var(--ease);
}

.svc-card:hover .svc-link {
  opacity: 1;
  transform: translateY(0);
  gap: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}

.dot-btn.active {
  width: 28px;
  background: var(--purple-500);
}

@media (max-width: 960px) {
  .svc-card {
    flex: 0 0 calc(50% - 12px);
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .svc-card {
    flex: 0 0 calc(100%);
  }
}

/* ── About ── */
.about-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-float-card {
  position: absolute;
  bottom: -24px;
  right: -28px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.about-float-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-500);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.about-float-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.about-float-text span {
  font-size: 12px;
  color: var(--gray-600);
}

.about-text {
  padding-right: 20px;
}

.about-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon svg {
  width: 13px;
  height: 13px;
  color: var(--purple-600);
}

.about-list-item p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
}

.about-list-item strong {
  color: var(--gray-900);
  font-weight: 600;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-text {
    padding-right: 0;
  }

  .about-float-card {
    right: 0;
  }
}

/* ── Portfolio ── */
.portfolio-section {
  padding: 100px 0;
  background: var(--white);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

/* Grid unificado de portafolio */
.portfolio-unified {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.portfolio-item {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  background: #0d0b1a;
  cursor: zoom-in;
}

.portfolio-item.pf-tall {
  grid-row: span 2;
  aspect-ratio: unset;
  min-height: 0;
  max-height: 690px;
}

.portfolio-item.pf-cta {
  aspect-ratio: unset;
  cursor: default;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.portfolio-item:hover img {
  transform: scale(1.35);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 16, 30, .85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-300);
  margin-bottom: 6px;
}

.portfolio-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .portfolio-unified {
    grid-template-columns: 1fr;
  }

  .portfolio-item.pf-tall {
    grid-row: span 1;
    aspect-ratio: 16/10;
  }

  /* El botón "Ver todos los proyectos" no cabía junto al título y
     empujaba la página, generando scroll horizontal. Se apilan. */
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ── Schedule a Call ── */
.schedule-section {
  padding: 100px 0;
  background: var(--purple-50);
}

.schedule-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.schedule-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--gray-900);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.schedule-text h2 em {
  font-weight: 700;
  color: var(--purple-500);
  font-style: normal;
}

.schedule-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 32px;
}

.schedule-avatars-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--white);
  object-fit: cover;
  margin-left: -12px;
  box-shadow: var(--shadow-sm);
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-info small {
  display: block;
  font-size: 11px;
  color: var(--gray-600);
  margin-top: 2px;
}

.avatar-info strong {
  font-size: 14px;
  color: var(--gray-900);
  font-weight: 700;
}

.schedule-form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.form-sub {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 4px rgba(123, 47, 165, .10);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

@media (max-width: 900px) {
  .schedule-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Testimonios ── */
.testi-section {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.testi-header {
  text-align: center;
  margin-bottom: 60px;
}

.testi-header .section-sub {
  margin: 0 auto;
}

.testi-track-wrap {
  overflow: hidden;
  position: relative;
}

.testi-track {
  display: flex;
  gap: 28px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.testi-card {
  flex: 0 0 calc(33.33% - 19px);
  min-width: 300px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
}

.testi-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testi-stars span {
  color: #F59E0B;
  font-size: 16px;
}

.testi-quote-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  opacity: .08;
}

.testi-quote-icon svg {
  width: 44px;
  height: 44px;
  fill: var(--purple-500);
}

.testi-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--purple-100);
}

.testi-author-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.testi-author-info span {
  font-size: 12px;
  color: var(--gray-600);
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

@media (max-width: 960px) {
  .testi-card {
    flex: 0 0 calc(50% - 14px);
  }
}

@media (max-width: 600px) {
  .testi-card {
    flex: 0 0 100%;
  }
}

/* ── Videos (slider) ── */
.videos-section {
  padding: 40px 0;
  background: var(--gray-50);
  overflow: hidden;
}

.videos-header {
  text-align: center;
  margin-bottom: 48px;
}

.videos-header .section-sub {
  margin: 12px auto 0;
  max-width: 560px;
}

.videos-track-wrap {
  overflow: hidden;
  position: relative;
}

.videos-track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.videos-track--single {
  justify-content: center;
}

.video-card {
  flex: 0 0 calc(33.33% - 16px);
  min-width: 260px;
}

.videos-track--single .video-card {
  flex: 0 0 min(560px, 100%);
}

.video-poster {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-900) 100%);
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-poster iframe,
.video-poster video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .55) 100%);
}

.video-poster.is-playing::after {
  display: none;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple-500);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.video-play-btn:hover {
  background: var(--purple-500);
  color: var(--white);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card-title {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.videos-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .video-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 600px) {
  .video-card {
    flex: 0 0 100%;
  }
}

/* ── Brands marquee ── */
.brands-section {
  padding: 50px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.brands-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-logo {
  width: 120px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1) opacity(.4);
  transition: filter var(--ease);
}

.brand-logo:hover {
  filter: grayscale(0) opacity(.9);
}

/* ── Blog ── */
.blog-section {
  padding: 100px 0;
  background: var(--white);
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  display: block;
  flex-shrink: 0;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.04);
}

.blog-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--purple-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.blog-body {
  padding: 24px;
}

.blog-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-meta span {
  color: var(--gray-200);
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color var(--ease);
}

.blog-card:hover .blog-title {
  color: var(--purple-500);
}

.blog-excerpt {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-500);
  transition: gap var(--ease);
}

.blog-card:hover .blog-read {
  gap: 10px;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── CTA Band (home.html) ── */
.cta-band {
  background: var(--blue);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.cta-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, .70);
  margin-top: 8px;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 560px) {
  .cta-inner {
    flex-direction: column;
  }
}


/* ===================================================================
   5. ESTILOS EXCLUSIVOS DE PÁGINAS DE SERVICIOS
      (diseno-grafico, pagina-web, redes-sociales, eventos)
      — el bloque <style> es idéntico en los cuatro archivos —
   =================================================================== */

/* ── Page Hero (cabecera de servicio) ── */
.ph {
  padding-top: 76px;
  background: linear-gradient(135deg, var(--p9) 0%, var(--p7) 55%, var(--p5) 100%);
  position: relative;
  overflow: hidden;
}

.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ph-orb {
  position: absolute;
  border-radius: 50%;
  opacity: .13;
  pointer-events: none;
}

.ph-inner {
  position: relative;
  z-index: 2;
  padding: 60px 0 70px;
}

.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 22px;
}

.bc a {
  color: rgba(255, 255, 255, .5);
  transition: color var(--ease);
}

.bc a:hover {
  color: #fff;
}

.bc sep {
  color: rgba(255, 255, 255, .25);
}

.ph h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 16px;
}

.ph h1 em {
  font-style: normal;
  color: var(--p3);
}

.ph-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 28px;
}

.ph-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Hero con foto recortada ── */
.ph-split {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: flex-end;
  gap: 0;
}

.ph-cutout-wrap {
  position: relative;
  align-self: flex-end;
  flex-shrink: 0;
  margin-bottom: -70px;
}

.ph-cutout {
  width: 400px;
  max-height: 500px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .3));
}

.ph-cutout-glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 40px;
  background: rgba(168, 85, 247, .5);
  filter: blur(24px);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 960px) {
  .ph-split {
    grid-template-columns: 1fr;
  }

  .ph-cutout-wrap {
    display: none;
  }
}

/* ── Layout 2 columnas (sidebar + contenido) ── */
.sd-wrap {
  padding: 72px 0;
}

.sd-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 960px) {
  .sd-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 960px) {
  .sidebar {
    position: static;
  }
}

.sb-box {
  background: var(--g0);
  border: 1px solid var(--g2);
  border-radius: var(--rxl);
  overflow: hidden;
}

.sb-hd {
  background: var(--p5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 16px 22px;
}

.sb-nav {
  list-style: none;
}

.sb-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--g6);
  border-bottom: 1px solid var(--g2);
  transition: all var(--ease);
}

.sb-nav li:last-child a {
  border-bottom: none;
}

.sb-nav li a:hover,
.sb-nav li a.cur {
  color: var(--p5);
  background: var(--p0);
  padding-left: 26px;
}

.sb-nav svg {
  width: 13px;
  height: 13px;
  opacity: .35;
  flex-shrink: 0;
  transition: opacity var(--ease);
}

.sb-nav li a:hover svg,
.sb-nav li a.cur svg {
  opacity: 1;
  color: var(--p5);
}

.sb-info {
  padding: 24px;
}

.sb-info-ttl {
  font-size: 14px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 14px;
}

.sb-cta-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  text-decoration: none;
  padding: 8px;
  border-radius: 10px;
  transition: background var(--ease), transform var(--ease);
  min-width: 0;
}

.sb-cta-link:hover {
  background: var(--p0);
  transform: translateX(3px);
}

.sb-cta-link:last-child {
  margin-bottom: 0;
}

.sb-cta-link>div {
  min-width: 0;
}

.sb-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-ico svg {
  width: 17px;
  height: 17px;
}

.sb-ico-phone {
  background: var(--p1);
  color: var(--p5);
}

.sb-ico-email {
  background: #e8f0fe;
  color: #1a73e8;
}

.sb-ico-wa {
  background: #e8f8f0;
  color: #25D366;
}

.sb-cta-link small {
  font-size: 11px;
  color: var(--g4);
  display: block;
}

.sb-cta-link strong {
  font-size: 12.5px;
  color: var(--g9);
  display: block;
}

.sb-cta {
  background: var(--p5);
  border-radius: var(--rxl);
  padding: 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sb-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.sb-cta h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}

.sb-cta p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 18px;
  line-height: 1.6;
  position: relative;
}

.sb-cta a {
  display: block;
  background: #fff;
  color: var(--p6);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--rp);
  transition: all var(--ease);
  position: relative;
}

.sb-cta a:hover {
  background: var(--p0);
  transform: translateY(-2px);
}

/* ── Contenido principal ── */
.sd-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-img {
  border-radius: var(--rxl);
  overflow: hidden;
  position: relative;
}

.hero-img img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.hero-img .ibadge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: var(--p5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--rp);
}

.intro-text p {
  font-size: 15px;
  color: var(--g6);
  line-height: 1.82;
  margin-bottom: 14px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text .lead {
  font-size: 1.05rem;
  color: var(--g8);
  font-weight: 500;
  line-height: 1.72;
}

.qb {
  background: var(--p0);
  border-left: 4px solid var(--p5);
  border-radius: 0 var(--rmd) var(--rmd) 0;
  padding: 18px 22px;
  margin: 16px 0;
  font-size: 1rem;
  color: var(--p7);
  font-weight: 500;
  line-height: 1.65;
}

/* Fases / timeline numerado */
.phases {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.phases::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 54px;
  bottom: 54px;
  width: 2px;
  background: var(--g2);
  z-index: 0;
}

.phase {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 32px;
  position: relative;
  z-index: 1;
}

.phase:last-child {
  padding-bottom: 0;
}

.ph-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--w);
  border: 2px solid var(--p3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--p5);
  flex-shrink: 0;
  transition: all var(--ease);
}

.phase:hover .ph-num {
  background: var(--p5);
  color: #fff;
  border-color: var(--p5);
}

.ph-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 6px;
  padding-top: 14px;
}

.ph-desc {
  font-size: 14px;
  color: var(--g6);
  line-height: 1.72;
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cl {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  color: var(--g6);
  line-height: 1.65;
}

.ck {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ck svg {
  width: 11px;
  height: 11px;
  color: var(--p6);
}

/* Bloque sección con título */
.sec-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sec-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--g9);
}

/* Grid imagen + texto */
.it-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.it-img {
  border-radius: var(--rlg);
  overflow: hidden;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 680px) {
  .it-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards de modelos/paquetes — layout 3 columnas */
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.model-card {
  background: var(--g0);
  border: 1px solid var(--g2);
  border-radius: 20px;
  padding: 44px 28px 36px;
  text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.model-card:hover {
  border-color: var(--p3);
  box-shadow: 0 12px 40px rgba(107, 20, 184, .10);
  transform: translateY(-4px);
}

.model-card-icon {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-num {
  position: absolute;
  font-size: 80px;
  font-weight: 900;
  color: var(--g2);
  line-height: 1;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
}

.model-card-icon svg {
  position: relative;
  z-index: 1;
}

.model-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 12px;
}

.model-card-desc {
  font-size: 14px;
  color: var(--g5);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .model-cards {
    grid-template-columns: 1fr;
  }
}

/* Grid de productos/servicios */
.pg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pi {
  background: var(--g0);
  border: 1px solid var(--g2);
  border-radius: var(--rlg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: all var(--ease);
}

.pi:hover {
  background: var(--p0);
  border-color: var(--p3);
}

.pi-e {
  font-size: 22px;
  flex-shrink: 0;
}

.pi-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pi-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--p5);
}

.pi-l {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--g8);
}

@media (max-width: 640px) {
  .pg {
    grid-template-columns: 1fr 1fr;
  }
}

/* CTA interno (dark) */
.i-cta {
  background: var(--g9);
  border-radius: var(--rxl);
  padding: 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.i-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(123, 47, 165, .2);
  pointer-events: none;
}

.i-cta>* {
  position: relative;
  z-index: 2;
}

.i-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 14px 0 10px;
}

.i-cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  max-width: 440px;
  margin: 0 auto 26px;
  line-height: 1.65;
}

.i-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CTA Band (páginas de servicios) ── */
.cb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cb-inner h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.cb-inner p {
  font-size: 15px;
  color: rgba(255, 255, 255, .68);
  margin-top: 6px;
  max-width: 480px;
}

.cb-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ══ PÁGINAS DE DETALLE DE PROYECTO ══ */

/* Hero */
.pd-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 0, 40, .3) 0%, rgba(20, 0, 40, .75) 100%);
}

.pd-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  max-width: 1280px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.pd-hero-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--p3);
  margin-bottom: 10px;
}

.pd-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 700px;
}

/* Meta bar */
.pd-meta {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--g2);
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.pd-meta-item {
  padding: 20px 32px;
  border-right: 1px solid var(--g2);
  flex: 1;
  min-width: 140px;
}

.pd-meta-item:last-child {
  border-right: none;
}

.pd-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 5px;
}

.pd-meta-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--g8);
}

/* Layout 2 columnas */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
  margin-bottom: 72px;
}

@media (max-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Contenido principal */
.pd-section {
  margin-bottom: 40px;
}

.pd-section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p5);
  margin-bottom: 10px;
}

.pd-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g9);
  line-height: 1.3;
  margin-bottom: 14px;
}

.pd-section p {
  font-size: 15px;
  color: var(--g6);
  line-height: 1.8;
  margin-bottom: 12px;
}

.pd-section p:last-child {
  margin-bottom: 0;
}

/* Galería */
.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}

.pd-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--rlg);
  display: block;
  cursor: zoom-in;
  transition: transform .4s ease;
}

.pd-gallery img:hover {
  transform: scale(1.02);
}

.pd-gallery img.pd-wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

@media (max-width: 560px) {
  .pd-gallery {
    grid-template-columns: 1fr;
  }

  .pd-gallery img.pd-wide {
    aspect-ratio: 4/3;
  }
}

/* Sidebar */
.pd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.pd-info-card {
  background: var(--g0);
  border: 1px solid var(--g2);
  border-radius: var(--rxl);
  overflow: hidden;
}

.pd-info-card-hd {
  background: var(--p5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 14px 22px;
}

.pd-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px;
  border-bottom: 1px solid var(--g2);
  gap: 12px;
}

.pd-info-row:last-child {
  border-bottom: none;
}

.pd-info-key {
  font-size: 13px;
  color: var(--g5);
}

.pd-info-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--g8);
  text-align: right;
}

/* Resultados card sidebar */
.pd-results-card {
  background: var(--p9);
  border-radius: var(--rxl);
  padding: 28px;
  color: #fff;
}

.pd-results-card h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--p3);
  margin-bottom: 20px;
}

.pd-stat {
  margin-bottom: 18px;
}

.pd-stat:last-child {
  margin-bottom: 0;
}

.pd-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pd-stat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-top: 3px;
}

/* Proceso */
.pd-process {
  padding: 64px 0;
  border-top: 1px solid var(--g2);
  margin-bottom: 64px;
}

.pd-process-hd {
  text-align: center;
  margin-bottom: 48px;
}

.pd-process-hd h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g9);
  margin-top: 8px;
}

.pd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .pd-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pd-steps {
    grid-template-columns: 1fr;
  }
}

.pd-step {
  background: var(--g0);
  border: 1px solid var(--g2);
  border-radius: var(--rxl);
  padding: 28px 24px;
  position: relative;
}

.pd-step-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--g2);
  line-height: 1;
  margin-bottom: 16px;
}

.pd-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 8px;
}

.pd-step p {
  font-size: 13px;
  color: var(--g5);
  line-height: 1.7;
}

/* Otros proyectos */
.pd-related {
  margin-bottom: 72px;
}

.pd-related-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-related-hd h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g9);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .pd-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pd-related-grid {
    grid-template-columns: 1fr;
  }
}

.pd-related-card {
  border-radius: var(--rlg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
}

.pd-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.pd-related-card:hover img {
  transform: scale(1.06);
}

.pd-related-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 0, 80, .8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.pd-related-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p3);
  margin-bottom: 4px;
}

.pd-related-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — LIST & DETAIL
═══════════════════════════════════════════════════════════ */

/* ── Layout ── */
.bl-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 60px 0 80px;
  align-items: start;
}

/* Los ítems de grid tienen min-width:auto por defecto: si algo adentro
   (como la tabla de Autor/Fecha) pide más ancho del que hay, en vez de
   encogerse empuja toda la columna —y la página— hacia la derecha.
   min-width:0 permite que el contenido se ajuste al ancho real. */
.bl-main {
  min-width: 0;
}

/* ── Blog Card (list) ── */
.bl-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--rxl);
  overflow: hidden;
  background: var(--g0);
  border: 1.5px solid var(--g2);
  margin-bottom: 32px;
  transition: box-shadow .25s ease, transform .25s ease;
}

.bl-card:last-child {
  margin-bottom: 0;
}

.bl-card:hover {
  box-shadow: var(--sd3);
  transform: translateY(-3px);
}

.bl-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.bl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.bl-card:hover .bl-card-img img {
  transform: scale(1.06);
}

.bl-card-body {
  padding: 28px 28px 32px;
}

.bl-card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bl-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--g5);
}

.bl-card-meta svg {
  flex-shrink: 0;
}

.bl-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p5);
  background: var(--p0);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.bl-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--g9);
  line-height: 1.35;
  margin-bottom: 12px;
}

.bl-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.bl-card-title a:hover {
  color: var(--p5);
}

.bl-card-excerpt {
  font-size: 14px;
  color: var(--g5);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* ── Pagination ── */
.bl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
}

.bl-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--g6);
  background: var(--g1);
  border: 1.5px solid var(--g2);
  text-decoration: none;
  transition: all .2s;
}

.bl-page-btn:hover,
.bl-page-btn.active {
  background: var(--p5);
  border-color: var(--p5);
  color: #fff;
}

/* ── Sidebar ── */
.bl-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bl-widget {
  background: var(--g0);
  border: 1.5px solid var(--g2);
  border-radius: var(--rxl);
  padding: 24px;
}

.bl-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--g2);
  position: relative;
}

.bl-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--p5);
  border-radius: 2px;
}

/* Author widget */
.bl-author-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--p2);
}

.bl-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 3px;
  text-align: center;
}

.bl-author-role {
  font-size: 12px;
  color: var(--p5);
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.bl-author-bio {
  font-size: 13px;
  color: var(--g5);
  line-height: 1.65;
  text-align: center;
}

/* Popular posts widget */
.bl-popular-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--g1);
}

.bl-popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bl-popular-thumb {
  width: 60px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.bl-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-popular-info {
  flex: 1;
  min-width: 0;
}

.bl-popular-info a {
  font-size: 13px;
  font-weight: 600;
  color: var(--g8);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color .2s;
}

.bl-popular-info a:hover {
  color: var(--p5);
}

.bl-popular-date {
  font-size: 11px;
  color: var(--g4);
  margin-top: 4px;
}

/* Categories widget */
.bl-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bl-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--g6);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all .2s;
}

.bl-cat-list li a:hover {
  background: var(--p0);
  color: var(--p5);
}

.bl-cat-list li a span {
  font-size: 11px;
  background: var(--g1);
  color: var(--g5);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

/* Tags widget */
.bl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--g6);
  background: var(--g1);
  border: 1.5px solid var(--g2);
  padding: 5px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .2s;
}

.bl-tag:hover {
  background: var(--p0);
  border-color: var(--p3);
  color: var(--p5);
}

/* ═══ BLOG DETAIL ═══ */
.bd-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--g7);
  /* Un link pegado como URL larga (sin espacios) no se corta solo y
     empuja la página a los lados; esto fuerza que se parta si hace falta. */
  overflow-wrap: break-word;
  word-break: break-word;
}

.bd-content a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.bd-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--g9);
  margin: 36px 0 14px;
}

.bd-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--g9);
  margin: 28px 0 10px;
}

.bd-content p {
  margin-bottom: 18px;
}

.bd-content img {
  width: 100%;
  border-radius: var(--rxl);
  margin: 28px 0;
  display: block;
}

.bd-content ul,
.bd-content ol {
  margin: 0 0 18px 22px;
}

.bd-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.bd-content blockquote {
  border-left: 4px solid var(--p5);
  background: var(--p0);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--g6);
  font-size: 16px;
}

/* Post footer: tags + share */
.bd-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0;
  border-top: 1.5px solid var(--g2);
  border-bottom: 1.5px solid var(--g2);
  margin: 40px 0;
}

.bd-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bd-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bd-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--g6);
}

.bd-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
}

.bd-share-btn:hover {
  transform: scale(1.12);
  opacity: .85;
}

/* Prev/Next navigation */
.bd-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.bd-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--rxl);
  border: 1.5px solid var(--g2);
  background: var(--g0);
  text-decoration: none;
  transition: all .25s;
}

.bd-nav-item:hover {
  border-color: var(--p3);
  background: var(--p0);
}

.bd-nav-item.bd-next {
  flex-direction: row-reverse;
  text-align: right;
}

.bd-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--p0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--p5);
}

.bd-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--g4);
  margin-bottom: 4px;
}

.bd-nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--g8);
  line-height: 1.4;
}

/* Comments */
.bd-comments-hd {
  font-size: 20px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 24px;
}

.bd-comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--g1);
}

.bd-comment:last-child {
  border-bottom: none;
}

.bd-comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bd-comment-body {
  flex: 1;
}

.bd-comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.bd-comment-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--g9);
}

.bd-comment-date {
  font-size: 12px;
  color: var(--g4);
}

.bd-comment-reply {
  font-size: 12px;
  font-weight: 600;
  color: var(--p5);
  text-decoration: none;
  margin-left: auto;
  cursor: pointer;
}

.bd-comment-text {
  font-size: 14px;
  color: var(--g6);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Comment form */
.bd-comment-form {
  background: var(--g1);
  border-radius: var(--rxl);
  padding: 32px;
  margin-top: 32px;
}

.bd-form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--g9);
  margin-bottom: 20px;
}

.bd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bd-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.bd-form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--g6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bd-form-field input,
.bd-form-field textarea {
  background: var(--g0);
  border: 1.5px solid var(--g2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--g8);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}

.bd-form-field input:focus,
.bd-form-field textarea:focus {
  border-color: var(--p4);
}

/* Responsive blog */
@media (max-width: 900px) {
  .bl-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bl-sidebar {
    position: static;
  }

  .bd-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bl-card-meta {
    gap: 12px;
  }

  .bl-card-body {
    padding: 20px;
  }

  .bd-form-grid {
    grid-template-columns: 1fr;
  }

  .bl-card-title {
    font-size: 17px;
  }
}

/* ══ RESPONSIVIDAD – páginas internas ══ */

/* Hero de internas */
@media (max-width: 768px) {
  .ph-inner {
    padding: 36px 25px 48px;
  }

  .ph h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    letter-spacing: -.02em;
  }

  .ph-sub {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .ph-ctas {
    gap: 10px;
  }

  .ph-ctas .btn {
    padding: 11px 20px;
    font-size: 13px;
  }

  .bc {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

/* Sidebar en móvil: el sidebar va debajo del contenido */
@media (max-width: 960px) {
  .sd-wrap {
    padding: 48px 0;
  }

  .sd-layout {
    gap: 28px;
  }

  .sidebar {
    order: 2;
  }

  .sd-main {
    order: 1;
  }
}

@media (max-width: 768px) {
  .sd-wrap {
    padding: 32px 0;
  }

  .sd-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .sec-block {
    padding: 0;
  }
}

/* Grillas internas */
@media (max-width: 900px) {
  .model-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .model-cards {
    grid-template-columns: 1fr;
  }

  .pg {
    grid-template-columns: 1fr;
  }

  .it-grid {
    gap: 20px;
  }
}

/* CTA interno oscuro */
@media (max-width: 640px) {
  .i-cta {
    padding: 32px 24px;
    border-radius: var(--rlg);
  }

  .i-cta h3 {
    font-size: 1.25rem;
  }

  .i-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .i-cta-btns .btn {
    text-align: center;
    justify-content: center;
  }
}

/* CTA band inferior */
@media (max-width: 640px) {
  .cb-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cb-btns {
    width: 100%;
    flex-direction: column;
  }

  .cb-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hero imagen de servicio */
@media (max-width: 680px) {
  .hero-img img {
    aspect-ratio: 16/9;
  }
}

/* Fases / checklist */
@media (max-width: 560px) {
  .phase {
    flex-direction: column;
    gap: 8px;
  }

  .ph-num {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .cl {
    gap: 10px;
  }

  .ck {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
}


/* ===================================================================
   WORDPRESS THEME ADDITIONS
   =================================================================== */

/* ── Iconos de redes sociales con color de marca (navbar) ── */
.nav-social-icon--facebook {
  color: #fff;
  background: #1877F2;
}

.nav-social-icon--instagram {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.nav-social-icon--whatsapp {
  color: #fff;
  background: #25D366;
}

.nav-social-icon--tiktok {
  color: #fff;
  background: #010101;
}

.nav-social-icon--facebook:hover {
  background: #166fe5;
}

.nav-social-icon--instagram:hover {
  filter: brightness(1.1);
}

.nav-social-icon--whatsapp:hover {
  background: #1ebe5c;
}

.nav-social-icon--tiktok:hover {
  background: #333;
}

/* Iconos en footer (social-btn con color de marca) */
.social-btn--instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.social-btn--facebook {
  background: #1877F2;
  color: #fff;
}

.social-btn--tiktok {
  background: #010101;
  color: #fff;
}

.social-btn--whatsapp {
  background: #25D366;
  color: #fff;
}

/* Mobile panel socials */
.mobile-socials {
  display: flex;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* ── FAB WhatsApp ── */
.ep-fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.ep-fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .6);
}

.ep-fab-tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.ep-fab-whatsapp:hover .ep-fab-tooltip {
  opacity: 1;
}

/* ── Banner flotante ── */
.ep-floating-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9998;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  animation: epBannerIn .4s ease both;
}

@keyframes epBannerIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ep-floating-banner.ep-hidden {
  display: none;
}

.ep-fb-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--purple-100);
  color: var(--purple-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-fb-text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.4;
}

.ep-fb-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--purple-600);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}

.ep-fb-btn:hover {
  background: var(--purple-700);
  color: #fff;
}

.ep-fb-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.ep-fb-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* Si el FAB y el banner coinciden en el mismo lado, el banner sube */
@media (max-width: 480px) {
  .ep-floating-banner {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 100px;
  }

  .ep-fab-whatsapp {
    bottom: 20px;
    right: 16px;
  }
}

/* En viewports muy bajos de altura (móvil en horizontal) el FAB tapa
   contenido del sidebar de detalles; se oculta para no estorbar. */
@media (max-height: 500px) {
  .ep-fab-whatsapp {
    display: none;
  }
}

/* ── Página de servicios – layout sidebar ── */
.sd-wrap {
  padding: 60px 0 100px;
}

.sd-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 860px) {
  .sd-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
}

.sidebar-list li svg {
  flex-shrink: 0;
  color: var(--purple-500);
}

/* ── Proyecto detalle ── */
.pd-wrap {
  padding: 60px 0 30px;
}

/* Layout con sidebar de detalles */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* Mismo caso que .bl-main: sin min-width:0 el ítem de grid puede forzar
   scroll horizontal en toda la página si algo adentro pide más ancho. */
.pd-content {
  min-width: 0;
}

@media (max-width: 900px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* La sidebar deja de ser sticky y pasa a bloque normal al final del
     contenido, para no quedar pegada tapando la lectura del artículo. */
  .pd-sidebar {
    position: static;
    top: auto;
    padding-bottom: 90px;
  }

  .pd-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pd-detail-value {
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

.pd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

/* Card detalles del proyecto (igual a pd-info-card del HTML original) */
.pd-details-card {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
}

.pd-details-header {
  background: var(--purple-600, #7c3aed);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 14px 22px;
}

.pd-details-body {}

.pd-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

.pd-detail-row:last-child {
  border-bottom: none;
}

.pd-detail-label {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  flex-shrink: 0;
}

.pd-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800, #1a1a2e);
  text-align: right;
}

/* Card resultados sidebar (igual a pd-results-card del HTML original) */
.pd-results-sidebar {
  background: #1e0a4e;
  border-radius: 16px;
  padding: 28px;
  color: #fff;
}

.pd-results-sidebar h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin: 0 0 20px;
}

.pd-stat {
  margin-bottom: 18px;
}

.pd-stat:last-child {
  margin-bottom: 0;
}

.pd-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pd-stat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-top: 3px;
}

.pd-section {
  margin-bottom: 60px;
}

.pd-section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-500);
  margin: 0 0 12px;
}

.pd-text {
  color: var(--gray-600);
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pd-resultados {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 60px;
}

@media (max-width: 640px) {
  .pd-resultados {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pd-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-result-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--purple-600);
  line-height: 1;
}

.pd-result-lbl {
  font-size: 13px;
  color: var(--gray-500);
}

/* Galería del proyecto */
.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 60px;
}

.pd-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
  background: var(--gray-100, #f3f4f6);
}

.pd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  transition: transform .4s ease;
}

.pd-gallery-item:hover img {
  transform: scale(1.04);
}

.pd-gallery-item--wide {
  grid-column: span 2;
}

.pd-gallery-item--wide img {
  aspect-ratio: 16/8;
}

@media (max-width: 560px) {
  .pd-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pd-gallery-item--wide {
    grid-column: span 1;
  }

  .pd-gallery-item--wide img {
    aspect-ratio: 4/3;
  }
}

/* ── Hero proyecto ── */
.pd-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 4, 30, .75) 0%, rgba(10, 4, 30, .4) 60%, transparent 100%);
}

.pd-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
}

.pd-breadcrumb a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
}

.pd-breadcrumb span {
  color: rgba(255, 255, 255, .82);
}

.pd-hero-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin: 0 0 10px;
}

.pd-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

/* ── Meta-bar ── */
.pd-meta {
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

.pd-meta-inner {
  display: flex;
}

.pd-meta-item {
  padding: 20px 32px;
  border-right: 1px solid var(--gray-200, #e5e7eb);
  flex: 1;
  min-width: 0;
}

.pd-meta-item:last-child {
  border-right: none;
}

.pd-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 4px;
}

.pd-meta-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800, #1a1a2e);
}

@media (max-width: 768px) {
  .pd-meta-inner {
    flex-wrap: wrap;
  }

  .pd-meta-item {
    flex: 1 1 50%;
    min-width: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
  }

  .pd-meta-val {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ── Proceso (cards en grid) ── */
.pd-process {
  padding: 72px 0;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  margin-bottom: 0;
}

.pd-process-hd {
  text-align: center;
  margin-bottom: 48px;
}

.pd-process-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-600, #7c3aed);
  letter-spacing: .05em;
  margin: 0 0 8px;
}

.pd-process-hd h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0;
}

.pd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pd-step {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 16px;
  padding: 28px 24px;
}

.pd-step-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--gray-200, #e5e7eb);
  line-height: 1;
  margin-bottom: 20px;
}

.pd-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0 0 8px;
}

.pd-step p {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .pd-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pd-steps {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   ARCHIVO DE PROYECTOS
══════════════════════════════════════ */
.pf-section {
  padding: 80px 0 100px;
}

.pf-header {
  text-align: center;
  margin-bottom: 48px;
}

.pf-header .h2 {
  margin: 12px 0 16px;
}

.pf-header p {
  font-size: 15px;
  color: var(--gray-500, #6b7280);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.pf-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.pf-btn {
  background: var(--gray-50, #f9fafb);
  border: 1.5px solid var(--gray-200, #e5e7eb);
  color: var(--gray-600, #4b5563);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
  font-family: inherit;
}

.pf-btn:hover {
  border-color: var(--purple-400, #a78bfa);
  color: var(--purple-600, #7c3aed);
  background: var(--purple-50, #faf5ff);
}

.pf-btn.active {
  background: var(--purple-600, #7c3aed);
  border-color: var(--purple-600, #7c3aed);
  color: #fff;
}

.pf-count {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 28px;
}

.pf-count strong {
  color: var(--gray-800, #1a1a2e);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }
}

.pf-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-100, #f3f4f6);
  display: block;
  text-decoration: none;
}

.pf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.pf-card:hover img {
  transform: scale(1.08);
}

.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 0, 80, .85) 0%, rgba(40, 0, 80, .2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.pf-card:hover .pf-card-overlay {
  opacity: 1;
}

.pf-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin: 0 0 6px;
}

.pf-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.pf-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  flex-shrink: 0;
}

.pf-cta-card {
  border-radius: 20px;
  background: var(--purple-50, #faf5ff);
  border: 2px dashed var(--purple-300, #c4b5fd);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
}

.pf-cta-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--purple-700, #5b21b6);
  margin: 0;
}

.pf-cta-card p {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  margin: 0;
}

/* ── Otros proyectos ── */
.pd-related {
  padding: 0 0 80px;
}

.pd-related-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.pd-related-hd h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0;
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  /* Mismo problema que "Nuestro Trabajo": el botón "Ver todos" empujaba
     la página. Se apilan título y botón. */
  .pd-related-hd {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pd-related-grid {
    grid-template-columns: 1fr;
  }
}

.pd-related-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
}

.pd-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}

.pd-related-card:hover img {
  transform: scale(1.06);
}

.pd-related-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 4, 30, .85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.pd-related-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin: 0 0 4px;
}

.pd-related-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 768px) {
  .pd-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pd-related-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-grid--sm .portfolio-item {
  height: 200px;
}

.bl-post-wrap {
  padding: 60px 0 100px;
}

.bl-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .bl-post-layout {
    grid-template-columns: 1fr;
  }
}

.bl-post-content {
  max-width: none;
}

.bl-post-content h2 {
  font-size: 22px;
  margin: 40px 0 16px;
}

.bl-post-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.bl-post-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ph--blog {
  background-size: cover;
  background-position: center;
  position: relative;
}

.ph--blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 40, .55);
}

.ph--blog .container,
.ph--blog h1,
.ph--blog .bl-post-hero-meta,
.ph--blog .bl-post-author-meta {
  position: relative;
  z-index: 1;
}

.ph--blog h1,
.ph--blog .bl-post-author-meta {
  color: #fff;
}

.bl-post-author-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 12px;
}

.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--purple-100);
  color: var(--purple-600);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Proceso steps ── */
.proceso-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proceso-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.proceso-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--purple-100);
  color: var(--purple-600);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.proceso-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.proceso-content p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* ── Opciones del tema — tabs ── */
.ep-options-page .ep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e0d9ff;
  padding-bottom: 0;
}

.ep-tab {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  background: #f3f0ff;
  color: #7C3AED;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
}

.ep-tab.active {
  background: #7C3AED;
  color: #fff;
  border-color: #7C3AED;
}

.ep-tab-content {
  display: none;
}

.ep-tab-content.active {
  display: block;
}

.ep-field {
  margin: 0 0 10px;
}

.ep-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
}

.ep-field--inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-field--inline label {
  margin: 0;
  min-width: 100px;
}

.ep-section-title {
  font-weight: 700;
  font-size: 13px;
  color: #7C3AED;
  margin: 20px 0 8px;
  border-top: 1px solid #e5e0f8;
  padding-top: 16px;
}

.ep-metabox {
  padding: 4px 0;
}


/* ===================================================================
   SERVICIO — Hero (ph--servicio)
   =================================================================== */
.ph--servicio {
  background: linear-gradient(135deg, var(--purple-700, #5b21b6) 0%, var(--blue, #1e0a4e) 100%);
  padding: 100px 0 0;
  overflow: hidden;
  position: relative;
}

.ph-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: flex-end;
}

@media (max-width: 860px) {
  .ph-content {
    grid-template-columns: 1fr;
  }

  .ph-visual {
    display: none;
  }
}

.ph-text {
  padding-bottom: 60px;
}

/* Breadcrumb */
.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ph-breadcrumb a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .15s;
}

.ph-breadcrumb a:hover {
  color: #fff;
}

.ph-breadcrumb span:last-child {
  color: rgba(255, 255, 255, .9);
}

.ph-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 20px;
}

.ph-title em {
  font-style: italic;
  color: #c4b5fd;
}

.ph-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 520px;
}

.ph-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Botones para fondo oscuro */
.btn-white {
  background: #fff;
  color: var(--purple-700, #5b21b6);
  border: 2px solid #fff;
  font-weight: 700;
}

.btn-white:hover {
  background: #f3e8ff;
  color: var(--purple-800, #3b0764);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .4);
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, .25);
}

/* Imagen + badge + glow */
.ph-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.ph-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(167, 139, 250, .35) 0%, transparent 70%);
  pointer-events: none;
}

.ph-cutout {
  position: relative;
  z-index: 1;
  max-height: 420px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 -8px 40px rgba(139, 92, 246, .4));
}

.ph-badge {
  position: absolute;
  bottom: 40px;
  left: -10px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800, #1a1a2e);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  z-index: 2;
}

.ph-badge-emoji {
  font-size: 18px;
}

/* ── Imagen principal del servicio (dentro del main) ── */
.svc-main-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 360px;
}

.svc-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-main-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--purple-500);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Bloques de contenido (sec-block) ── */
.sec-block .h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 12px 0 20px;
  line-height: 1.3;
}

.sec-block .h2:first-child {
  margin-top: 0;
}

.sec-block .h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 16px;
  line-height: 1.35;
}

.sec-block .lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700, #374151);
  line-height: 1.7;
  margin-bottom: 14px;
}

.sec-block p {
  color: var(--gray-600, #4b5563);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* ── Fases ── */
.phases {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  position: relative;
}

.phases::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: 52px;
  width: 2px;
  background: var(--gray-100, #f3f4f6);
  z-index: 0;
}

.phase {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  align-items: flex-start;
  position: relative;
}

.phase-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--purple-600, #7c3aed);
  border-radius: 50%;
  border: 2px solid var(--purple-200, #e9d5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px #fff;
}

.phase-body {
  flex: 1;
  padding-top: 10px;
}

.phase-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--gray-800, #1a1a2e);
}

.phase-desc {
  font-size: 14px;
  color: var(--gray-500, #6b7280);
  margin: 0;
  line-height: 1.65;
}

/* ── Grid Texto + Imagen ── */
.it-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.it-grid--left {
  direction: rtl;
}

.it-grid--left>* {
  direction: ltr;
}

@media (max-width: 720px) {
  .it-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ── Cards Modelo ── */
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .model-cards {
    grid-template-columns: 1fr;
  }
}

.model-card {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-100, #f3f4f6);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}

.model-card:hover {
  box-shadow: 0 8px 28px rgba(107, 33, 168, .10);
  transform: translateY(-3px);
}

.mc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--purple-100, #f3e8ff);
  border-radius: 50%;
  color: var(--purple-600, #7c3aed);
}

.mc-icon svg {
  width: 28px;
  height: 28px;
}

.mc-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--gray-800, #1a1a2e);
}

.mc-desc {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  margin: 0;
  line-height: 1.65;
}

/* ── Catálogo (.pg) ── */
.pg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.pg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700, #374151);
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-100, #f3f4f6);
  border-radius: 8px;
  padding: 10px 14px;
}

.pg-item svg {
  flex-shrink: 0;
  color: var(--purple-500, #8b5cf6);
}

/* ── CTA interno (i-cta) ── */
.i-cta {
  background: linear-gradient(135deg, var(--blue, #5b21b6) 0%, var(--purple-900, #1e0a4e) 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-bottom: 0;
}

.i-cta-emoji {
  font-size: 36px;
  margin-bottom: 12px;
}

.i-cta h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.3;
}

.i-cta p {
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.i-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sidebar de servicios ── */
.sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-600, #7c3aed);
  margin: 0 0 12px;
}

.sidebar-services {
  background: #fff;
  border: 1px solid var(--gray-100, #f3f4f6);
  border-radius: 14px;
  overflow: hidden;
}

.sidebar-section-title--svc {
  background: var(--purple-700, #5b21b6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
  padding: 14px 18px;
}

.sidebar-svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-svc-list li {
  border-bottom: 1px solid var(--gray-50, #f9fafb);
}

.sidebar-svc-list li:last-child {
  border-bottom: none;
}

.sidebar-svc-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700, #374151);
  text-decoration: none;
  padding: 13px 18px;
  transition: background .15s, color .15s;
}

.sidebar-svc-list li a svg {
  flex-shrink: 0;
  color: var(--gray-400, #9ca3af);
  transition: color .15s;
}

.sidebar-svc-list li a:hover {
  background: var(--purple-50, #faf5ff);
  color: var(--purple-700, #5b21b6);
}

.sidebar-svc-list li a:hover svg {
  color: var(--purple-500, #8b5cf6);
}

.sidebar-svc-list li.cur a {
  background: var(--purple-50, #faf5ff);
  color: var(--purple-700, #5b21b6);
  font-weight: 700;
}

.sidebar-svc-list li.cur a svg {
  color: var(--purple-600, #7c3aed);
}

.sidebar-contact {
  background: #fff;
  border: 1px solid var(--gray-100, #f3f4f6);
  border-radius: 14px;
  padding: 20px;
}

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50, #f9fafb);
  transition: opacity .15s;
}

.sidebar-contact-item:last-child {
  border-bottom: none;
}

.sidebar-contact-item:hover {
  opacity: .8;
}

.sbc-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--purple-100, #f3e8ff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600, #7c3aed);
}

.sidebar-contact-item--wa .sbc-icon {
  background: #dcfce7;
  color: #15803d;
}

.sbc-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sbc-label {
  font-size: 11px;
  color: var(--gray-400, #9ca3af);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sbc-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800, #1a1a2e);
}

.sidebar-contact-item--wa .sbc-value {
  color: #15803d;
}

.sidebar-cta-box {
  background: linear-gradient(135deg, var(--purple-700, #5b21b6) 0%, var(--purple-900, #1e0a4e) 100%);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.scb-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.scb-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.scb-text {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 14px;
  line-height: 1.55;
}

.scb-link {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background .15s;
}

.scb-link:hover {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* ── Contact Form 7 — schedule card ── */
.schedule-form-card .wpcf7-form p {
  display: contents;
}

.schedule-form-card .wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 14px;
}

.schedule-form-card .wpcf7-form input[type="text"],
.schedule-form-card .wpcf7-form input[type="email"],
.schedule-form-card .wpcf7-form input[type="tel"],
.schedule-form-card .wpcf7-form select,
.schedule-form-card .wpcf7-form textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  box-sizing: border-box;
}

.schedule-form-card .wpcf7-form input:focus,
.schedule-form-card .wpcf7-form select:focus,
.schedule-form-card .wpcf7-form textarea:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 4px rgba(123, 47, 165, .10);
}

.schedule-form-card .wpcf7-form textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 110px;
}

.schedule-form-card .wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.schedule-form-card .wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 13px 24px;
  margin-top: 6px;
  background: var(--purple-600);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--ease), transform var(--ease);
}

.schedule-form-card .wpcf7-form input[type="submit"]:hover {
  background: var(--purple-700);
  transform: translateY(-1px);
}

.schedule-form-card .wpcf7-response-output {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  border: none !important;
}

.schedule-form-card .wpcf7-mail-sent-ok {
  background: #dcfce7;
  color: #166534;
}

.schedule-form-card .wpcf7-validation-errors,
.schedule-form-card .wpcf7-mail-sent-ng {
  background: #fef2f2;
  color: #991b1b;
}

.schedule-form-card .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #dc2626;
  margin-top: 3px;
  font-weight: 400;
}

.schedule-form-card .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .schedule-form-card .cf7-row {
    grid-template-columns: 1fr;
  }
}

/* ── Home — Blog grid (front-page.php) ── */
.blog-header .btn {
  flex-shrink: 0;
}

.blog-read-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.blog-read:hover .blog-read-icon {
  background: var(--purple-500);
  color: #fff;
}