/*
Theme Name: Talents Code Theme
Theme URI: https://www.talentscode.com/
Author: Talents Code
Author URI: https://www.talentscode.com/
Description: Tema personalizado para la Landing Page de Talents Code.
Version: 2.7.0
License: GNU General Public License v2 or later
Text Domain: talents-code
*/

:root {
  /* Paleta base (colores del logo: negro, grises y blanco) */
  --color-brand-darker: #0A0A0A;     /* Profundización para secciones */

  /* Derivaciones (tints/shades en la misma familia neutra) */
  --color-primary-lighter: #EDEDED;  /* Casi blanco para highlights (ajustado) */
  --color-primary: #C2C2C2;          /* Gris claro principal = texto del logo (ajustado) */
  --color-primary-mid: #AFAFAF;      /* Gris medio de transición (ajustado) */
  --color-primary-dark: #6E6E6E;     /* Gris oscuro del isotipo (hover/énfasis) */

  /* Alias para compatibilidad previa */
  --color-primary-rgb: 194,194,194;  /* RGB del gris del logo (ajustado) */

  /* Texto y fondos (modo oscuro coherente con el logo) */
  --color-text: #D3D3D3;             /* Un punto más claro para mejor contraste (ajustado) */
  --color-muted: #9A9A9A;            /* Texto secundario */
  --color-bg: #0A0A0A;               /* Fondo base (negro suave) */
  --color-bg-alt: #141414;           /* Paneles / tarjetas */
  --color-border: #2A2A2A;           /* Bordes sutiles en oscuro */

  /* Layout */
  --container-width: 1200px;
  --gutter: 2rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-full: 999px;

  /* Sombras (neutras, discretas en UI oscura) */
  --shadow-sm: 0 4px 10px -4px rgba(0,0,0,.35);
  --shadow-md: 0 8px 26px -10px rgba(0,0,0,.5);
  --shadow-lg: 0 22px 50px -18px rgba(0,0,0,.65);

  /* Timing */
  --transition: .35s cubic-bezier(.16,.8,.32,1);
  --color-brand-dark: #181818;         /* Fondo caja */
  --color-brand-light: #d3d3d3;        /* Texto y bordes */
  --color-brand-xlight: #fff;          /* Botón principal y highlights */
  --color-btn-bg: #fff;
  --color-btn-text: #222;
  --color-btn-border: #d3d3d3;
  --radius-hero: 32px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-lighter); }
:focus-visible { outline: 3px solid rgba(var(--color-primary-rgb), .65); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-brand-dark);
  padding: .8rem 1.2rem;
  z-index: 200;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  transition: top .25s;
}
.skip-link:focus { top: 0; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }

.section__title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--color-brand-light);
}

.highlight { color: var(--color-primary-lighter); font-weight: 600; }
.u-muted { color: var(--color-muted); }
.u-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.96);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  height: 100%;
}

.brand__logo,
.custom-logo,
.custom-logo-link img {
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  max-width: 165px !important;
  object-fit: contain !important;
  display: block !important;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: .88rem;
  letter-spacing: .02em;
}

.brand__name {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--color-brand-light);
  line-height: 1;
}
.brand__name--alt { color: var(--color-primary); }
.brand__tagline {
  font-weight: 300;
  color: var(--color-primary-mid);
  margin-top: .25rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-brand-light);
  padding: .6rem;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav__toggle:focus-visible,
.nav__toggle:hover { background: rgba(var(--color-primary-rgb), .12); }
.nav__toggle-bar {
  width: 26px;
  height: 3px;
  background: var(--color-brand-light);
  display: block;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform .4s, opacity .3s;
}

.nav__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav__list a {
  font-weight: 400;
  position: relative;
  padding: .55rem .1rem;
  color: var(--color-primary-lighter);
  font-size: .92rem;
  letter-spacing: .03em;
  line-height: 1.1;
  transition: color var(--transition);
}

.nav__list a.is-active,
.nav__list a:hover { color: var(--color-primary); }

.nav__list a.is-active::after,
.nav__list a:hover::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.35rem;
  height: 3px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), .35);
}

/* Botón de Contacto en la barra de navegación (WordPress y Estático) */
.nav__list .btn,
.nav__list .btn--outline,
.nav__list li:last-child a {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 999px !important;
  padding: 0.45rem 1.25rem !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15) !important;
  transition: all 0.25s ease !important;
}

.nav__list .btn::after,
.nav__list .btn--outline::after,
.nav__list li:last-child a::after {
  display: none !important;
}

.nav__list .btn:hover,
.nav__list .btn--outline:hover,
.nav__list li:last-child a:hover {
  background: #F1F5F9 !important;
  color: #0A0A0A !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.25) !important;
}

/* ABOUT / GENERIC MEDIA GRID */
.about__grid {
  display: grid;
  gap: 3.3rem 4rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.about__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 5/4;
  transition: transform var(--transition), filter var(--transition);
  filter: saturate(.94);
  transform: scale(1.02);
}
.about__media:hover img { transform: scale(1.06); filter: saturate(1); }

.about__bullets {
  margin: 1.2rem 0 1.8rem;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: .55rem;
  font-size: .97rem;
  line-height: 1.45;
}
.about__bullets li::marker { color: var(--color-primary-dark); }

/* SERVICES (tarjetas reutilizadas en páginas internas) */
.services__grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.service-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  isolation: isolate;
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-mid);
}

.service-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #121212;
}

.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.94) saturate(.92);
  transition: transform var(--transition), filter var(--transition);
}

.service-card:hover .service-card__media img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1);
}

.service-card__icon {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  background: var(--color-brand-dark);
  color: var(--color-brand-light);
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.service-card__body {
  padding: 1.7rem 1.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.service-card__title {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-brand-light);
}

.service-card__cta {
  margin-top: auto;
  font-weight: 500;
  color: var(--color-primary-lighter);
  position: relative;
  width: fit-content;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.service-card__cta::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-primary-dark);
  transition: width var(--transition), background var(--transition);
}
.service-card__cta:hover { color: var(--color-primary); }
.service-card__cta:hover::after { width: 100%; }

.service-card--accent {
  background: linear-gradient(158deg,#151515,#0f0f0f 55%);
  border: 1px solid var(--color-border);
}

/* CLIENTS */
.clients__grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 2.6rem clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  justify-items: center;
}

.client {
  filter: grayscale(1) brightness(.9);
  opacity: .55;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  max-height: 76px;
}

.client img { max-width: 140px; max-height: 60px; object-fit: contain; }

.client img[src*="logo_hint_white"],
.client img[src*="white"] {
  filter: invert(1) brightness(0.2);
}

.client:hover {
  filter: grayscale(.15) brightness(1);
  opacity: 1;
  transform: translateY(-4px);
}

.client:hover img[src*="logo_hint_white"],
.client:hover img[src*="white"] {
  filter: invert(1) brightness(0);
}

.client--featured {
  background: var(--color-primary-lighter);
  border-radius: 6px;
  padding: .9rem .9rem;
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 3px var(--color-primary-mid) inset;
}

.clients__subtitle {
  text-align: center;
  margin-top: 4.2rem;
  font-size: 1.25rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-brand-light);
}

.clients__grid--faded .client {
  opacity: .35;
  filter: grayscale(1) brightness(.9);
}
.clients__grid--faded .client:hover {
  opacity: .9;
  filter: grayscale(.15) brightness(1);
}

/* FOOTER (sección amplia) */
.footer {
  background: var(--color-brand-darker);
  color: var(--color-primary-mid);
  margin-top: 4rem;
  position: relative;
}

.footer__grid {
  display: grid;
  gap: 3rem 4rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 4rem 0 2rem;
}

.footer__title {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-brand-light);
}

.footer__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: .55rem;
  font-size: .92rem;
}

.footer__list a {
  color: var(--color-primary);
  transition: color var(--transition);
}
.footer__list a:hover { color: var(--color-primary-dark); }

.contact-form { display: grid; gap: .85rem; }

.form-field { display: flex; flex-direction: column; gap: .35rem; }

.form-label {
  font-size: .7rem;
  letter-spacing: .09em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary-mid);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-primary-lighter);
  font-family: inherit;
  font-size: .9rem;
  resize: vertical;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-mid);
  background: #1b1b1b;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .25);
}

.form-disclaimer {
  font-size: .65rem;
  line-height: 1.3;
  color: var(--color-muted);
  margin: .3rem 0 0;
}

.footer__bottom {
  border-top: 1px solid #1b1b1b;
  text-align: center;
  padding: 1.4rem 0 1.8rem;
  font-size: .78rem;
  color: var(--color-primary-dark);
}

/* BOTONES */
.btn {
  --btn-bg: var(--color-primary);
  --btn-color: var(--color-brand-dark);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  padding: .85rem 1.6rem;
  font-size: .93rem;
  border-radius: var(--radius-full);
  background: var(--btn-bg);
  color: var(--btn-color);
  line-height: 1.1;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition);
  letter-spacing: .02em;
  text-decoration: none;
  position: relative;
  border: 1px solid var(--color-primary-mid);
}

.btn--primary {
  background: linear-gradient(92deg, var(--color-primary), var(--color-primary-mid));
  color: var(--color-brand-dark);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.45);
}

.btn--primary:hover {
  background: linear-gradient(92deg, var(--color-primary-mid), var(--color-primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(0,0,0,.55);
}

.btn--ghost {
  --btn-bg: rgba(var(--color-primary-rgb), .12);
  --btn-color: var(--color-brand-light);
  border: 1px solid rgba(var(--color-primary-rgb), .28);
  backdrop-filter: blur(5px);
}
.btn--ghost:hover {
  background: rgba(var(--color-primary-rgb), .22);
  color: var(--color-brand-light);
}

.btn--outline {
  background: transparent;
  color: var(--color-brand-light);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-brand-dark);
}

.btn--dark {
  --btn-bg: var(--color-brand-dark);
  --btn-color: var(--color-brand-light);
  border: 1px solid var(--color-primary-mid);
}
.btn--dark:hover {
  background: var(--color-brand-darker);
}

.btn--sm { padding: .55rem 1.2rem; font-size: .78rem; font-weight: 500; }
.btn--full { width: 100%; }

/* NAV Responsive */
@media (max-width: 900px) {
  .nav__toggle { display: inline-block; }
  .nav__list {
    position: absolute;
    top: 72px; right: 0;
    background: #0A0A0A;
    flex-direction: column;
    width: min(290px, 88vw);
    padding: 1.4rem 1.3rem 1.8rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
    border-radius: 0 0 0 16px;
    transform-origin: top right;
    transform: scale(.95) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav__list.is-open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }
  .nav__list a::after { display: none; }
  .nav__list a { padding: .6rem 0; width: 100%; }
  body.menu-open { overflow: hidden; }
  .nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle.is-active .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 1.1rem;
  }

  .container {
    padding-inline: 1.1rem !important;
  }

  .header__inner {
    height: 64px !important;
    gap: 1rem;
  }

  .brand__logo,
  .custom-logo,
  .custom-logo-link img {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 130px !important;
  }

  .nav__list {
    top: 64px !important;
  }
}

/* Ajustes móviles */
@media (max-width: 620px) {
  .hero__box { padding: 1.6rem 1.15rem 2.1rem; }
  .hero__title { font-size: 1.5rem; }
  .hero__lead { font-size: .9rem; }
}

/* Hero multimedia base */
.hero {
  position: relative;
  min-height: clamp(520px, 70vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Contenedor multimedia */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-brand-dark); /* fallback si el video tarda */
}

/* Poster / imagen de respaldo */
.hero__poster-wrapper,
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Poster visible antes del video */
.hero__poster {
  filter: brightness(.60) saturate(.9);
  transition: opacity .8s ease;
  opacity: 1;
}

/* Video */
.hero__video {
  opacity: 1;
  filter: brightness(.60) saturate(.95);
  transition: opacity 1s ease;
  will-change: opacity;
}

/* Cuando el video está listo (ver JS) */
.hero--video.is-ready .hero__video { opacity: 1; }
.hero--video.is-ready .hero__poster { opacity: 0; }

/* Overlay */
.hero__overlay--brand {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
    rgba(0,0,0,.80),
    rgba(0,0,0,.55),
    rgba(0,0,0,.88));
}

/* Contenido encima */
.hero__content,
.hero__box {
  position: relative;
  z-index: 2;
}

/* Accesibilidad (reduce motion) */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none !important; }
  .hero__poster { opacity: 1 !important; }
}

/* Ajuste móvil extra */
@media (max-width: 600px) {
  .hero__box {
    padding: 1.6rem 1.2rem 2rem;
  }
  .hero__title { font-size: 1.55rem; }
  .hero__lead { font-size: .9rem; }
}

/* === CONTACT SECTION (Oscura & Ultra-Pulida) === */
.contact-section {
  padding: clamp(4.5rem, 7vw, 6rem) 0;
  background: #0A0A0A;
  color: #FFFFFF;
  position: relative;
}

.contact-section__grid {
  display: grid;
  gap: 3.5rem clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
}

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

.contact-section__intro {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem 0;
  max-width: 480px;
}

/* Enlaces e íconos columna izquierda */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.2s ease;
}

.contact-info-item a:hover {
  color: #F1F5F9;
  transform: translateX(4px);
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.contact-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.8rem;
}

.contact-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

/* Formulario Contacto (Ultra-Pulido) */
.contact-section__col--form {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-form__title {
  margin: 0 0 1.6rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 580px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.contact-form__eyebrow {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}

.contact-form__title {
  margin: 0 0 1.2rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.contact-form .form-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 0.8rem 1.05rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 12px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.contact-form textarea {
  resize: vertical;
  min-height: 68px;
  max-height: 140px;
}

.contact-form .btn--submit {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  margin-top: 0.2rem;
  background: #FFFFFF !important;
  color: #0A0A0A !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  padding: 0.8rem 2.2rem !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12) !important;
  transition: all 0.25s ease !important;
  cursor: pointer;
}

.contact-form .btn--submit svg {
  transition: transform 0.25s ease;
}

.contact-form .btn--submit:hover {
  background: #F1F5F9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.22) !important;
}

.contact-form .btn--submit:hover svg {
  transform: translateX(4px);
}

/* === MINIMAL SITE FOOTER === */
.site-footer {
  background: var(--color-brand-darker);
  color: #c3d2dc;
  padding: 1.2rem 0;
  font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-footer__left { justify-self: start; }
.site-footer__center { justify-self: center; text-align: center; }
.site-footer__right { justify-self: end; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.footer-brand__logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-email {
  font-weight: 500;
  color: var(--color-primary-lighter);
  text-decoration: none;
  margin-right: .5rem;
}
.footer-email:hover { text-decoration: underline; }

.footer-copy {
  display: inline-block;
  margin-left: .5rem;
  color: var(--color-primary-dark);
  font-size: .78rem;
}

.footer-divider { margin: 0 .4rem; color: #5e7686; }

.social-links {
  list-style: none;
  display: flex;
  gap: .75rem;
  padding: 0;
  margin: 0;
}

.social-links a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: var(--color-brand-darker);
  transition: background .3s, border-color .3s, transform .25s;
}

.social-links a:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-2px);
}

.social-links img.icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(1.15);
}

/* Responsivo */
@media (max-width: 820px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer__left,
  .site-footer__center,
  .site-footer__right {
    justify-self: center;
  }
  .footer-brand__logo {
    height: 42px;
  }
  .footer-email { display: block; margin: 0 0 .4rem; }
  .footer-divider { display: none; }
}

@media (max-width: 520px) {
  .contact-section__grid {
    grid-template-columns: 1fr;
  }
  .contact-section__col--form {
    margin-top: .5rem;
  }
}

/* Bloque de contacto (lado izquierdo) */
.footer-contact {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  font-size: .72rem;
}

.footer-phone,
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .4px;
  padding: .42rem .85rem;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  color: var(--color-primary-lighter);
  border-radius: 999px;
  transition: background .28s, border-color .28s;
  line-height: 1;
  position: relative;
}

.footer-phone__label {
  opacity: .75;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .6rem;
  letter-spacing: 1px;
}

.footer-phone:hover,
.footer-whatsapp:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.55);
}

.footer-whatsapp {
  background: linear-gradient(135deg,#1fae58,#23c866);
  border-color: rgba(255,255,255,.18);
  color: #0F1D2B; /* Mantiene contraste en el chip verde */
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 4px 10px -4px rgba(35,200,102,.55);
}

.footer-whatsapp:hover {
  filter: brightness(1.08);
}

/* Responsive ajuste */
@media (max-width: 880px) {
  .footer-contact {
    justify-content: center;
  }
}
/* ========== TEMA CLARO GLOBAL (resto del sitio) ========== */
:root {
  --color-text: #1F2937;
  --color-muted: #6B7280;
  --color-bg: #F8FAFC;
  --color-bg-alt: #FFFFFF;
  --color-border: #E5E7EB;

  /* Acentos neutros que no rompen con el logo */
  --color-primary: #334155;
  --color-primary-mid: #475569;
  --color-primary-dark: #0F172A;
  --color-primary-lighter: #111827;

  --color-heading: #111827;
}

body { background: var(--color-bg); color: var(--color-text); }

/* Títulos en claro */
.section__title,
.service-card__title,
.clients__subtitle { color: var(--color-heading); }

.service-card {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

/* ========== ZONAS OSCURAS (solo header, footer, contacto) ========== */
.site-header,
.footer,
.site-footer,
.contact-section {
  --color-text: #D3D3D3;
  --color-muted: #9A9A9A;
  --color-bg: #0A0A0A;
  --color-bg-alt: #141414;
  --color-border: #2A2A2A;

  --color-primary-lighter: #EDEDED;
  --color-primary: #C2C2C2;
  --color-primary-mid: #AFAFAF;
  --color-primary-dark: #6E6E6E;

  --color-primary-rgb: 194,194,194;
  --color-heading: var(--color-brand-light);
}

/* Utilidades de contexto para contenido embebido (como logos dentro de secciones) */
.on-dark {
  --color-text: #D3D3D3;
  --color-muted: #9A9A9A;
  --color-bg: #0A0A0A;
  --color-bg-alt: #141414;
  --color-border: #2A2A2A;

  --color-primary-lighter: #EDEDED;
  --color-primary: #C2C2C2;
  --color-primary-mid: #AFAFAF;
  --color-primary-dark: #6E6E6E;
  --color-primary-rgb: 194,194,194;
  --color-heading: var(--color-brand-light);
}

.on-light {
  --color-text: #1F2937;
  --color-muted: #6B7280;
  --color-bg: #F8FAFC;
  --color-bg-alt: #FFFFFF;
  --color-border: #E5E7EB;

  --color-primary: #334155;
  --color-primary-mid: #475569;
  --color-primary-dark: #0F172A;
  --color-primary-lighter: #111827;
  --color-heading: #111827;
}

/* Swap de logo por contexto (dos <img>, uno por variante) */
.brand__logo { max-height: 38px; height: auto; width: auto; display: block; }
.logo--darkbg { display: inline-block; }  /* claro sobre fondo oscuro */
.logo--lightbg { display: none; }         /* oscuro sobre fondo claro */

/* En contenedores claros, mostramos la variante para fondo claro */
.on-light .logo--darkbg { display: none; }
.on-light .logo--lightbg { display: inline-block; }

/* Header/footer/contacto ya son oscuros: aseguran la variante darkbg */
.site-header .logo--darkbg,
.footer .logo--darkbg,
.site-footer .logo--darkbg,
.contact-section .logo--darkbg { display: inline-block; }
.site-header .logo--lightbg,
.footer .logo--lightbg,
.site-footer .logo--lightbg,
.contact-section .logo--lightbg { display: none; }

/* Hero más luminoso (opcional) */
.hero__overlay--brand {
  background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.12), rgba(0,0,0,.28));
}
/* Viewport */
.testimonials__viewport {
  position: relative;
  background:
    radial-gradient(1200px 60% at 15% 10%, rgba(0,0,0,.06), transparent 60%),
    var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(3.2rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

/* Pasarela: track horizontal */
.testimonials__track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform .6s cubic-bezier(.22,.75,.25,1);
}

/* Cada slide ocupa 100% del viewport */
.testimonial {
  flex: 0 0 100%;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
}
.testimonial > * {
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Header */
.testimonial__header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.testimonial__brand {
  width: var(--brand-size, 64px);
  height: var(--brand-size, 64px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.testimonial__brand img,
.testimonial__brand svg {
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.testimonial__meta {
  display: grid; grid-auto-flow: column; align-items: center; gap: .8rem; justify-content: start;
}
.testimonial__avatar {
  width: var(--avatar-size, 64px);
  height: var(--avatar-size, 64px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  display: block;
  box-shadow: 0 0 0 3px var(--color-bg-alt), 0 0 0 4px var(--color-border);
}
.testimonial__identity { display: grid; gap: .15rem; }
.testimonial__name {
  font-weight: 700;
  color: var(--color-brand-light);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.testimonial__role { font-size: .95rem; }

/* Cuerpo */
.testimonial__quote {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  line-height: 1.9;
  max-width: 92ch;
}
.testimonial__quote p { margin: 0 0 .9rem; }

/* Comillas decorativas */
.testimonial__quote-mark {
  position: absolute;
  right: clamp(.5rem, 2vw, 1rem);
  bottom: clamp(.4rem, 2vw, .8rem);
  color: var(--color-border);
  opacity: .9;
  z-index: 0;
}
.testimonial__quote-mark svg { width: 54px; height: 54px; }

/* Barra de progreso */
.testimonials__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.testimonials__progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  transition: width .15s linear;
}

/* Controles */
.testimonials__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}
.tnav {
  justify-self: end;
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-brand-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.tnav--next { justify-self: start; }
.tnav:hover { transform: translateY(-2px); border-color: var(--color-primary-mid); }
.tnav svg { width: 22px; height: 22px; }

.testimonials__pagination {
  justify-self: center;
  font-weight: 700;
  color: var(--color-brand-light);
}
.testimonials__pagination .sep { margin: 0 .25rem; color: var(--color-muted); }
.testimonials__pagination .total { color: var(--color-muted); }

/* Responsive */
@media (max-width: 620px) {
  .testimonial__header { grid-template-columns: 52px 1fr; }
  .testimonial__brand { width: 52px; height: 52px; border-radius: 10px; }
  .testimonial__avatar { width: 52px; height: 52px; }
  .testimonials__controls { grid-template-columns: auto 1fr auto; }
}

.hero {
  background: #000;
  min-height: clamp(540px, 70vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__overlay--brand {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,0,0,.80),
    rgba(30,30,30,.55),
    rgba(0,0,0,.88));
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.85) 100%);
  z-index: 1;
}

.hero__box {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 1.5rem 0 !important;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.hero__title {
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin: 0 auto 1.2rem auto;
  max-width: 100%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__title .highlight {
  color: #FFFFFF;
  font-weight: 800;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto 2.2rem auto;
  font-weight: 400;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.hero__actions .btn--primary {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.95rem 2.4rem;
  font-size: 1.05rem;
  border: 1px solid #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.hero__actions .btn--primary:hover {
  background: #E2E8F0 !important;
  color: #0A0A0A !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.hero__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.95rem 2.4rem;
  font-size: 1.05rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-3px);
}

.section--brand-cta {
  background: #FFFFFF;
  padding: 5rem 0 4.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.section--brand-cta .section__title {
  text-align: center;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  color: #0A0A0A;
  margin: 0 auto 1.4rem auto;
  max-width: 940px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section--brand-cta .section__title .highlight {
  color: #0A0A0A;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section--brand-cta .section__lead {
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  color: #4A5568;
  font-size: 1.15rem;
  line-height: 1.65;
}

.section__actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botón principal: fondo negro, texto blanco */
.btn--primary {
  background: #000;
  color: #fff;
  font-weight: bold;
  border-radius: 2rem;
  padding: 0.8rem 2.1rem;
  font-size: 1.08rem;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  transition: background .2s, color .2s;
}
.btn--primary:hover {
  background: #444;
  color: #fff;
}

/* Botón secundario: fondo blanco, borde negro */
.btn--ghost {
  background: #fff;
  color: #222;
  border: 2px solid #222;
  font-weight: bold;
  border-radius: 2rem;
  padding: 0.8rem 2.1rem;
  font-size: 1.08rem;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--ghost:hover {
  background: #eee;
  color: #000;
  border-color: #000;
}
.section.testimonials {
  background: #fff; /* Fondo blanco, igual que el resto de la página */
  padding: 5rem 0 5rem 0;
}

.section__title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #222;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.testimonials__viewport {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 40px -14px rgba(0,0,0,0.11);
  padding: 3rem 3rem 4rem 3rem;
}

.testimonials__track {
  list-style: none;
  padding: 0;
  margin: 0;
}

.testimonial {
  text-align: left;
  display: block;
  margin-bottom: 2.7rem;
}

.testimonial__header {
  display: flex;
  align-items: center;
  margin-bottom: 1.3rem;
}

.testimonial__meta {
  display: flex;
  align-items: center;
}

.testimonial__avatar {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(60,60,60,0.10);
  margin-right: 1.4rem;
  width: 68px; height: 68px;
}

.testimonial__identity {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial__name {
  font-size: 1.18rem;
  font-weight: 600;
  color: #222;
}

.testimonial__role {
  font-size: 1rem;
  color: #777;
  margin-top: 2px;
}

.testimonial__quote {
  font-size: 1.16rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 0;
}

.testimonial__quote-mark {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 52px; height: 52px;
  color: #e2e2e5;
  opacity: 0.5;
}

.testimonials__progress {
  margin-top: 2.2rem;
  background: #e2e2e5;
  height: 4px;
  border-radius: 2px;
  width: 100%;
  overflow: hidden;
}
.testimonials__progress-fill {
  background: #222;
  height: 100%;
  width: 33%; /* ajusta dinámicamente con JS si quieres */
  transition: width .3s;
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.tnav {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: background .2s, border-color .2s;
}
.tnav:hover {
  background: #f0f0f3;
  border-color: #222;
}

.testimonials__pagination {
  font-size: 1.16rem;
  color: #222;
  font-weight: 500;
}

.current, .sep, .total {
  display: inline-block;
  margin: 0;
}

/* Responsive: que no se vea comprimido en móvil */
@media (max-width: 600px) {
  .testimonials__viewport {
    padding: 1.2rem 1.1rem 2.2rem 1.1rem;
    border-radius: 18px;
  }
  .testimonial__avatar {
    width: 48px; height: 48px;
    margin-right: 0.6rem;
  }
  .section__title {
    font-size: 1.5rem;
  }
}
.clients.section {
  background: #fff; /* Fondo blanco, igual que las demás secciones */
  padding: 5rem 0 5rem 0;
}

.section__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: #222;
  font-weight: 700;
  margin-bottom: 2rem;
}

.section__title .highlight {
  color: #000;
  font-weight: bold;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.6rem 2.2rem; /* Espacio aireado entre logos */
  justify-items: center;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
}

.client img {
  display: block;
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  margin: 0 auto;
  filter: grayscale(0.1); /* Muy sutil para que combine con el estilo, puedes ajustar a 0 para color full */
  transition: filter .2s, transform .2s;
}

.client--featured img {
  filter: none; /* Destacado: sin filtro */
  transform: scale(1.07); /* Un poco más grande */
  box-shadow: 0 4px 28px -10px rgba(0,0,0,0.10);
  border-radius: 12px;
}

.client img:hover {
  filter: none;
  transform: scale(1.08);
}

/* Logos blancos invertidos para fondo claro (Hint, etc.) */
.client img[src*="logo_hint_white"],
.client img[src*="white"] {
  filter: invert(1) brightness(0.2);
}

.client img[src*="logo_hint_white"]:hover,
.client img[src*="white"]:hover {
  filter: invert(1) brightness(0) scale(1.08);
}

/* Responsive: para que no se comprima en móvil */
@media (max-width: 700px) {
  .clients__grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.5rem 1rem;
    max-width: 100%;
  }
  .section__title {
    font-size: 1.2rem;
  }
}
/* Responsive-enhanced testimonials CSS (v2)
   - Includes card layout at wide widths, reduced-motion, and improved focus/tap targets
*/

/* Viewport */
.testimonials__viewport {
  position: relative;
  background:
    radial-gradient(1200px 60% at 15% 10%, rgba(0,0,0,.06), transparent 60%),
    var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(3.2rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  max-width: 1200px;
  margin-inline: auto;
}

/* Internal wrapper to constrain text width */
.testimonial__content {
  width: min(92ch, 100%);
  margin-inline: auto;
  display: grid;
  gap: clamp(.6rem, 1.2vw, 1rem);
}

/* Track (carousel) */
.testimonials__track {
  display: flex;
  align-items: stretch;
  gap: clamp(.8rem, 1.2vw, 1rem);
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform .6s cubic-bezier(.22,.75,.25,1);
}

/* Each slide is full width by default */
.testimonial {
  flex: 0 0 100%;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
}
.testimonial > * { padding-inline: clamp(1rem, 3vw, 2rem); }

/* Card-style option: show two per view on wide screens */
@media (min-width: 1100px) {
  .testimonials__track { gap: 1rem; }
  .testimonial { flex: 0 0 50%; }
}

/* Header */
.testimonial__header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.testimonial__brand {
  width: var(--brand-size, 64px);
  height: var(--brand-size, 64px);
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial__brand img, .testimonial__brand svg {
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.testimonial__meta {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: .8rem;
  justify-content: start;
}
.testimonial__avatar {
  width: var(--avatar-size, 64px);
  height: var(--avatar-size, 64px);
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  display: block;
  box-shadow: 0 0 0 3px var(--color-bg-alt), 0 0 0 4px var(--color-border);
  flex-shrink: 0;
}
.testimonial__identity { display: grid; gap: .15rem; }
.testimonial__name { font-weight: 700; color: var(--color-brand-light); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.testimonial__role { font-size: .95rem; }

/* Quote */
.testimonial__quote {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  line-height: 1.9;
  max-width: 92ch;
  position: relative;
  z-index: 1;
}
.testimonial__quote p { margin: 0 0 .9rem; }

/* Decorative quote mark */
.testimonial__quote-mark {
  position: absolute;
  right: clamp(.5rem, 2vw, 1rem);
  bottom: clamp(.4rem, 2vw, .8rem);
  color: var(--color-border);
  opacity: .9;
  z-index: 0;
  pointer-events: none;
}
.testimonial__quote-mark svg {
  width: clamp(34px, 4vw, 54px);
  height: auto;
  display: block;
}

/* Progress bar */
.testimonials__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.testimonials__progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  transition: width .15s linear;
}

/* Controls */
.testimonials__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}
.tnav {
  justify-self: end;
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-brand-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tnav--next { justify-self: start; }
.tnav:hover { transform: translateY(-2px); border-color: var(--color-primary-mid); }
.tnav:focus {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  outline-offset: 3px;
}
.tnav svg { width: 22px; height: 22px; }

/* Pagination text */
.testimonials__pagination {
  justify-self: center;
  font-weight: 700;
  color: var(--color-brand-light);
}
.testimonials__pagination .sep { margin: 0 .25rem; color: var(--color-muted); }
.testimonials__pagination .total { color: var(--color-muted); }

/* Responsive breakpoints */
@media (max-width: 900px) {
  .testimonials__viewport { padding: clamp(1rem, 4vw, 1.6rem) 0 clamp(2rem, 6vw, 3rem); }
  .testimonial__brand { width: 56px; height: 56px; border-radius: 10px; }
  .testimonial__avatar { width: 56px; height: 56px; }
  .testimonial__quote { font-size: clamp(.98rem, 1.1vw, 1rem); }
}

@media (max-width: 620px) {
  .testimonial__header { grid-template-columns: 1fr; grid-auto-rows: auto; align-items: start; gap: .6rem; }
  .testimonial__brand { width: 52px; height: 52px; border-radius: 10px; }
  .testimonial__meta { grid-auto-flow: column; gap: .6rem; align-items: center; }
  .testimonial__avatar { width: 52px; height: 52px; }
  .testimonial__quote { font-size: clamp(.98rem, 2.6vw, 1rem); line-height: 1.7; }
  .testimonials__controls { grid-template-columns: auto 1fr auto; gap: .6rem; margin-top: .8rem; }
  .tnav { width: 48px; height: 48px; }
  .tnav svg { width: 24px; height: 24px; }
  .testimonials__pagination { justify-self: center; font-size: .95rem; }
}

@media (max-width: 420px) {
  .testimonials__viewport { padding: .8rem 0 1.2rem; }
  .testimonial { padding: 0 .6rem; }
  .testimonial__brand { width: 48px; height: 48px; }
  .testimonial__avatar { width: 44px; height: 44px; }
  .testimonial__quote { font-size: .95rem; line-height: 1.6; max-width: 55ch; }
  .testimonial__quote-mark { display: none; }
  .tnav { width: 52px; height: 52px; }
}

/* Landscape small tablet tweak */
@media (min-width: 621px) and (max-width: 760px) and (orientation: landscape) {
  .testimonial__header { grid-template-columns: auto 1fr; align-items: center; gap: .8rem; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .testimonials__track { transition: none !important; }
  .testimonials__progress-fill { transition: none !important; }
}

/* Reduce heavy shadows on very small devices */
@media (max-width: 480px) {
  .testimonials__viewport { box-shadow: none; border-radius: 10px; }
}

/* Utility for JS-driven hidden state */
.is-hidden { display: none !important; }

/* Fallback backgrounds for images */
.testimonial__brand img, .testimonial__avatar {
  background-color: color-mix(in srgb, var(--color-bg) 90%, transparent);
}

/* ==========================================================================
   Estilos de la Página de Metodología (Smart Hiring)
   ========================================================================== */

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.methodology-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.methodology-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(10, 10, 10, 0.2);
}

.methodology-card__step {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0A0A0A;
  background: #F1F5F9;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1.2rem;
}

.methodology-card__title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 0.9rem 0;
  line-height: 1.35;
}

.methodology-card__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #4A5568;
  margin: 0;
}

.methodology-card__list {
  margin: 1rem 0 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #2D3748;
  font-size: 0.95rem;
  line-height: 1.5;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1040px;
  margin: 2.5rem auto 0 auto;
}

.result-badge-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.result-badge-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0A0A0A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.result-badge-card__text {
  font-size: 1.02rem;
  font-weight: 600;
  color: #1A202C;
  line-height: 1.4;
}

/* ==========================================================================
   Estilos Ultra-Premium para la Página de Servicios (Soluciones)
   ========================================================================== */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.solution-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09);
  border-color: rgba(10, 10, 10, 0.2);
}

.solution-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.solution-card__badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A0A0A;
  background: #F1F5F9;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.solution-card__icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0A0A0A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-card__icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2;
}

.solution-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0 0 1.2rem 0;
  letter-spacing: -0.01em;
}

.solution-card__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin-bottom: 1.4rem;
}

.solution-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex-grow: 1;
}

.solution-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #334155;
}

.solution-card__check {
  width: 18px;
  height: 18px;
  stroke: #0A0A0A;
  fill: none;
  stroke-width: 2.8;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Tarjetas de modelos de trabajo */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.model-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.model-card--featured {
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.model-card--featured .model-card__title {
  color: #FFFFFF;
}

.model-card--featured .model-card__desc {
  color: rgba(255, 255, 255, 0.8);
}

.model-card--featured .model-card__list li {
  color: rgba(255, 255, 255, 0.9);
}

.model-card__tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #FFFFFF;
  color: #0A0A0A;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1rem;
}

.model-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0 0 0.6rem 0;
}

.model-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4A5568;
  margin: 0 0 1.2rem 0;
}

.model-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.model-card__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #2D3748;
}

.model-card__list li::before {
  content: "•";
  color: currentColor;
  font-weight: bold;
}

/* ==========================================================================
   Talents Code: Estilos Premium Light para Blog, Artículos y Páginas Legales
   ========================================================================== */

/* --- 1. Casilla de Política de Privacidad en Formulario de Contacto --- */
.form-field--checkbox {
  margin: 1.25rem 0 1.5rem !important;
}

.form-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  font-size: 0.86rem !important;
  color: var(--color-muted) !important;
  cursor: pointer !important;
  line-height: 1.45 !important;
  user-select: none !important;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 0.18rem !important;
  width: 17px !important;
  height: 17px !important;
  cursor: pointer !important;
  accent-color: #ffffff !important;
  flex-shrink: 0 !important;
  border-radius: 4px !important;
}

.form-checkbox-label a {
  color: var(--color-primary-lighter) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color var(--transition) !important;
}

.form-checkbox-label a:hover {
  color: #ffffff !important;
}

.footer-privacy-link {
  color: var(--color-muted) !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: color var(--transition) !important;
}

.footer-privacy-link:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   TALENTS CODE BRAND EXTENSIONS - BLOG, ARTÍCULOS & MULTIMEDIA
   ========================================================================== */


/* --- Cabecera Editorial Limpia Tipo Revista (Sin Bloque Negro, 100% Contenido) --- */
.tc-blog-editorial-header {
  background: #FAFAFB;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: clamp(2.4rem, 4vh, 3.4rem) 0 clamp(1.8rem, 3vh, 2.5rem) 0;
  text-align: center;
}

.tc-blog-editorial-header__top {
  max-width: 780px;
  margin: 0 auto 1.6rem auto;
}

.tc-blog-editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: #EDF2F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #4A5568;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.tc-blog-editorial-title {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}

.tc-blog-editorial-title .highlight-dark,
.tc-blog-editorial-title .highlight {
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
  font-weight: 800;
}

.tc-blog-editorial-lead {
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  line-height: 1.65;
  color: #4A5568;
  margin: 0 auto;
  max-width: 660px;
}

/* Toolbar Integrada: Buscador + Filtros */
.tc-blog-editorial-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto;
}

.tc-blog-search-form {
  position: relative;
  width: 100%;
  max-width: 290px;
}

.tc-blog-search-input {
  width: 100%;
  padding: 0.52rem 2.4rem 0.52rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 0.86rem;
  background: #FFFFFF;
  color: #0A0A0A;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tc-blog-search-input:focus {
  border-color: #0A0A0A;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.tc-blog-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #0A0A0A;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tc-blog-search-btn:hover {
  background: #2D3748;
  transform: translateY(-50%) scale(1.05);
}

.tc-blog-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* Sección del Feed de Artículos */
.tc-blog-feed-section {
  padding: clamp(2rem, 3.5vh, 3rem) 0 clamp(3.5rem, 5vh, 4.5rem) 0;
  background: #FFFFFF;
}

/* --- 0. Tarjetas de Blog Proporcionadas, Responsivas y Adaptadas a Pantalla --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

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

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.blog-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 165px;
  overflow: hidden;
  background: #0A0A0A;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

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

.blog-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.85);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  margin: 0;
}

.blog-card__body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  color: #667085;
  font-weight: 500;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0A0A0A;
  margin: 0 0 0.55rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  letter-spacing: -0.01em;
}

.blog-card__title a {
  color: #0A0A0A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card__title a {
  color: #4A5568;
}

.blog-card__excerpt {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #4A5568;
  margin: 0 0 0.65rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.blog-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4A5568;
  background: #F1F5F9;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-card__tag:hover {
  background: #0A0A0A;
  color: #FFFFFF;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: auto;
}

.blog-card__author {
  font-size: 0.76rem;
  color: #667085;
  font-weight: 600;
}

/* Botón Oficial "Leer más" para Tarjetas del Blog */
.blog-card__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.38rem !important;
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 0.44rem 1rem !important;
  border-radius: 999px !important;
  border: 1px solid #0A0A0A !important;
  text-decoration: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.blog-card__btn:hover {
  background: #2D3748 !important;
  border-color: #2D3748 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.blog-card__btn svg {
  display: inline-block !important;
  transition: transform 0.2s ease !important;
}

.blog-card__btn:hover svg {
  transform: translateX(3px) !important;
}

/* Filtros Interactivos del Blog */
.tc-filter-btn {
  font-family: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.38rem 0.95rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background: #FFFFFF !important;
  color: #4A5568 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.tc-filter-btn:hover {
  background: #F1F5F9 !important;
  color: #0A0A0A !important;
  border-color: rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px) !important;
}

.tc-filter-btn.is-active,
.tc-filter-btn.active {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  border-color: #0A0A0A !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

/* --- 1. Tipografía y Estructura Editorial del Artículo --- */
.tc-article-content {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  color: #2D3748;
  word-break: normal; overflow-wrap: break-word;
}

.tc-article-content p {
  margin: 0 0 1.8rem 0;
}

.tc-article-content h1,
.tc-article-content h2,
.tc-article-content h3,
.tc-article-content h4,
.tc-article-content h5,
.tc-article-content h6 {
  color: #0A0A0A;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.tc-article-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.tc-article-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 2.4rem 0 1rem;
}

.tc-article-content h4 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.8rem;
}

.tc-article-content strong,
.tc-article-content b {
  color: #0A0A0A;
  font-weight: 700;
}

.tc-article-content a {
  color: #0A0A0A;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.tc-article-content a:hover {
  color: #4A5568;
}

.tc-article-content ul,
.tc-article-content ol {
  margin: 0 0 2rem 0;
  padding-left: 1.8rem;
}

.tc-article-content li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
}

.tc-article-content blockquote {
  margin: 2.5rem 0;
  padding: 1.4rem 1.8rem;
  background: #FAFAFB;
  border-left: 4px solid #0A0A0A;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #1A202C;
}

.tc-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.tc-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

/* --- 2. Soporte Oficial de Video y Audio Responsivo (YouTube, Vimeo, MP4 con Audio) --- */
.wp-block-embed,
.wp-block-embed__wrapper,
.wp-block-video,
.tc-video-player-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 2.5rem auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0A0A0A;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed iframe,
.tc-video-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.wp-block-video video,
.tc-video-player-wrap video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  outline: none;
  background: #0A0A0A;
}

/* Audio Player */
.wp-block-audio audio {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 999px;
}

/* --- 3. Paginación Oficial del Blog --- */
.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(10, 10, 10, 0.2);
  background: #FFFFFF;
  color: #0A0A0A;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
}

.page-numbers.current {
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
}

/* --- 4. Maquetación Editorial Limpia y Responsiva del Artículo (single.php) --- */
.tc-single-header {
  padding: 3.5rem 0 2rem 0;
  background: #FAFAFB;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tc-single-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tc-single-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4A5568;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.tc-single-back-link:hover {
  color: #0A0A0A;
  border-color: #0A0A0A;
  transform: translateX(-3px);
}

.tc-single-categories {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tc-single-cat-badge {
  display: inline-block;
  text-decoration: none;
  color: #FFFFFF;
  background: #0A0A0A;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.tc-single-cat-badge:hover {
  opacity: 0.85;
}

.tc-single-title {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem 0;
  word-break: normal; overflow-wrap: break-word;
}

.tc-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: #64748B;
}

.tc-single-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tc-single-meta__item strong {
  color: #0A0A0A;
  font-weight: 600;
}

.tc-single-meta__dot {
  color: #CBD5E1;
}

.tc-single-section {
  padding: 3rem 0 5rem 0;
  background: #FAFAFB;
}

.tc-article-card {
  padding: clamp(2rem, 4.5vw, 3.8rem);
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  width: 100%;
}

.tc-single-featured-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.8rem;
  background: #0A0A0A;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tc-single-featured-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

/* Author Box - 100% Responsivo */
.tc-author-box {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  width: 100%;
}

.tc-author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.tc-author-box__avatar img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tc-author-box__info {
  flex: 1;
  min-width: 0;
}

.tc-author-box__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0 0 0.35rem 0;
}

.tc-author-box__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4A5568;
  margin: 0;
  word-break: normal; overflow-wrap: break-word;
}

/* Share Box - 100% Responsivo */
.tc-share-box {
  background: #FAFAFB;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

.tc-share-box__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0A0A0A;
}

.tc-share-box__btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Keywords Box - 100% Responsivo */
.tc-keywords-box {
  background: #FAFAFB;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

.tc-keywords-box__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.tc-keywords-box__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0A0A0A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tc-keywords-box__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tc-tag-pill {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0A0A0A;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.tc-tag-pill:hover {
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
}

/* Post Navigation - 100% Responsivo */
.tc-post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tc-post-nav__col--next {
  text-align: right;
}

.tc-post-nav__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #667085;
  display: block;
  margin-bottom: 0.4rem;
}

.tc-post-nav__link {
  font-size: 1rem;
  font-weight: 700;
  color: #0A0A0A;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.tc-post-nav__link:hover {
  color: #4A5568;
}

/* Related Posts */
.tc-related-posts {
  margin-top: 4rem;
}

.tc-related-posts__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0A0A0A;
  text-align: center;
  margin-bottom: 2rem;
}

.tc-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Tablas, iframes y videos en tc-article-content */
.tc-article-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 2rem 0;
}

.tc-article-content iframe,
.tc-article-content video {
  max-width: 100%;
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES EXTREMAS (Breakpoints < 768px y < 480px)
   Garantiza lectura fluida tipo editorial, formularios táctiles y cero desbordes
   ========================================================================== */

@media (max-width: 768px) {
  /* Cabecera Editorial del Artículo */
  .tc-single-header {
    padding: 2rem 0 1.2rem 0 !important;
  }

  .tc-single-header__top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .tc-single-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem) !important;
    line-height: 1.28 !important;
    margin-bottom: 0.8rem !important;
    letter-spacing: -0.01em !important;
  }

  .tc-single-meta {
    font-size: 0.82rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }

  .tc-single-meta__dot {
    display: none !important;
  }

  .tc-single-meta__item {
    width: 100% !important;
  }

  /* Sección de Lectura del Artículo (Elimina el efecto de caja encogida) */
  .tc-single-section {
    padding: 1rem 0 3.5rem 0 !important;
    background: #FAFAFB !important;
  }

  .tc-article-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
  }

  .tc-article-content {
    font-size: 1.02rem !important;
    line-height: 1.72 !important;
    color: #2D3748 !important;
  }

  .tc-article-content h1,
  .tc-article-content h2 {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    margin: 1.8rem 0 0.8rem 0 !important;
    letter-spacing: -0.01em !important;
  }

  .tc-article-content h3 {
    font-size: 1.18rem !important;
    line-height: 1.4 !important;
    margin: 1.5rem 0 0.6rem 0 !important;
  }

  .tc-article-content p {
    margin-bottom: 1.35rem !important;
  }

  .tc-article-content ul,
  .tc-article-content ol {
    margin: 0 0 1.5rem 1.1rem !important;
    padding-left: 0.2rem !important;
  }

  .tc-article-content li {
    margin-bottom: 0.55rem !important;
    line-height: 1.62 !important;
    font-size: 0.98rem !important;
  }

  .tc-single-featured-media {
    margin-bottom: 1.6rem !important;
    border-radius: 12px !important;
  }

  .tc-author-box {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 1.3rem 1rem !important;
    gap: 0.85rem !important;
  }

  .tc-author-box__avatar {
    margin: 0 auto !important;
  }

  .tc-author-box__desc {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }

  .tc-share-box {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    padding: 1.2rem 1rem !important;
    gap: 0.9rem !important;
  }

  .tc-share-box__btns {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .tc-share-box__btns .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .tc-keywords-box {
    padding: 1.2rem 1rem !important;
  }

  .tc-post-nav {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .tc-post-nav__col--next {
    text-align: left !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 1rem !important;
  }

  .tc-related-posts {
    margin-top: 2.5rem !important;
  }

  .tc-related-grid {
    grid-template-columns: 1fr !important;
    gap: 1.4rem !important;
  }

  /* Landing Page Modular en Móviles */
  .tc-landing-content {
    padding: 1.8rem 0 !important;
    font-size: 1rem !important;
  }

  .tc-landing-content h2 {
    font-size: 1.4rem !important;
    margin: 1.8rem 0 0.8rem 0 !important;
  }

  .tc-landing-content h3 {
    font-size: 1.18rem !important;
  }

  .solution-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .tc-stats-row {
    padding: 1.6rem 1rem !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Sección de Contacto Oficial y Formulario en Móviles */
  .contact-section {
    padding: clamp(3.2rem, 6vw, 4.5rem) 0 !important;
  }

  .contact-section__grid {
    grid-template-columns: 1fr !important;
    gap: 2.2rem !important;
  }

  .contact-section .section__title {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem) !important;
    line-height: 1.25 !important;
  }

  .contact-section__intro {
    font-size: 0.98rem !important;
    margin-bottom: 1.5rem !important;
  }

  .contact-form__eyebrow {
    font-size: 0.78rem !important;
    margin-bottom: 0.3rem !important;
  }

  .contact-form__title {
    font-size: 1.35rem !important;
    margin-bottom: 0.9rem !important;
  }

  .contact-form__row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .contact-form .form-field {
    margin-bottom: 0.8rem !important;
  }

  /* 16px evita que iOS Safari haga zoom automático molesto */
  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important;
    padding: 0.75rem 0.95rem !important;
    border-radius: 10px !important;
  }

  .contact-form textarea {
    min-height: 68px !important;
  }

  .contact-form .btn--submit {
    width: 100% !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 0.85rem 1.5rem !important;
    margin-top: 0.2rem !important;
  }

  .contact-info-list {
    margin: 1.4rem 0 !important;
    gap: 0.85rem !important;
  }

  .contact-info-item a {
    font-size: 0.96rem !important;
  }

  .form-checkbox-label {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .tc-article-card {
    padding: 1.25rem 0.85rem !important;
    border-radius: 14px !important;
  }
  
  .container {
    padding-inline: 0.9rem !important;
  }
}

/* ==========================================================================
   LANDING PAGE TEMPLATE STYLES
   ========================================================================== */
.tc-landing-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2D3748;
}

.tc-landing-content h2 {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #0A0A0A;
  margin: 2.5rem 0 1.2rem 0;
  letter-spacing: -0.01em;
}

.tc-landing-content h3 {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: #1A202C;
  margin: 2rem 0 1rem 0;
}

.tc-landing-content p {
  margin-bottom: 1.5rem;
}

.tc-landing-content ul,
.tc-landing-content ol {
  margin: 0 0 1.8rem 1.4rem;
  padding-left: 0.5rem;
}

.tc-landing-content li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

/* Soporte para bloques anchos o alineados de Gutenberg */
.tc-landing-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.tc-landing-content .alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FORMULARIO EN MODO CLARO (PARA BLOQUES Y LANDINGS)
   ========================================================================== */
.contact-form--light {
  background: transparent;
}

.contact-form--light .contact-form__title {
  color: #0A0A0A;
}

.contact-form--light .form-label {
  color: #4A5568;
}

.contact-form--light input,
.contact-form--light textarea {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0A0A0A;
}

.contact-form--light input::placeholder,
.contact-form--light textarea::placeholder {
  color: #94A3B8;
}

.contact-form--light input:focus,
.contact-form--light textarea:focus {
  border-color: #0A0A0A;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.contact-form--light .form-checkbox-label {
  color: #4A5568 !important;
}

.contact-form--light .form-checkbox-label a {
  color: #0A0A0A !important;
}

.contact-form--light .btn--submit {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.contact-form--light .btn--submit:hover {
  background: #262626 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}


/* ==========================================================================
   PROTECCIÓN TIPOGRÁFICA Y RESPONSIVIDAD MÓVIL TOTAL (GUTENBERG Y TEMAS)
   Soluciona: Palabras cortadas ("buscamo-s", "compatib-ilidad"), columnas encogidas
   y superposición de textos en pantallas móviles.
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Regla universal contra división arbitraria de palabras por caracteres o guiones */
*, *::before, *::after,
html, body,
h1, h2, h3, h4, h5, h6,
p, li, span, a, summary, label, button,
.tc-single-title, .tc-article-content, .tc-landing-content,
.tc-landing-title, .tc-landing-excerpt, .tc-landing-form-title {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  -ms-hyphens: none !important;
}

/* Protección para que títulos y subtítulos no colapsen su ancho */
.tc-landing-content h1,
.tc-landing-content h2,
.tc-landing-content h3,
.tc-article-content h1,
.tc-article-content h2,
.tc-article-content h3,
.wp-block-heading {
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1.35 !important;
}

/* Stacking responsivo garantizado para Columnas Gutenberg en móviles */
@media (max-width: 782px) {
  .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
  .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Soporte Universal para Acordeones y Detalles (Core WP y Plugins) */
details,
.wp-block-details,
.accordion,
[class*="accordion"],
[class*="faq"],
.tc-accordion {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 1rem;
}

summary,
.wp-block-details summary,
.accordion-header,
[class*="accordion-header"],
[class*="accordion__header"],
[class*="accordion-title-wrapper"],
[class*="faq-question"],
[class*="faq-title"] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
  gap: 1rem !important;
  padding: 0.9rem 0 !important;
}

summary > *,
summary h1, summary h2, summary h3, summary h4,
.wp-block-details summary > *,
.accordion-title,
[class*="accordion-title"],
[class*="accordion__title"],
[class*="question-title"],
[class*="faq-title"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

summary::after,
.accordion-icon,
[class*="accordion-icon"],
[class*="accordion__icon"] {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

details[open] > *:not(summary),
.wp-block-details[open] > *:not(summary),
.accordion-content,
[class*="accordion-content"],
[class*="accordion__content"],
[class*="faq-answer"] {
  width: 100% !important;
  max-width: 100% !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.65 !important;
  box-sizing: border-box !important;
  padding-bottom: 1rem !important;
}

/* Espaciado de seguridad inferior contra barras flotantes de navegadores móviles (iOS Safari) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}


/* ==========================================================================
   PLANTILLA DE LANDING PAGE - DISEÑO SPLIT 2 COLUMNAS
   Desktop: Contenido a la izquierda, Formulario Sticky a la derecha.
   Móvil: Apilamiento 100% fluido, navegación rápida y experiencia táctil premium.
   ========================================================================== */
.tc-landing-page {
  background: #FFFFFF;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 6rem) 0;
  min-height: 100vh;
}

.tc-split-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(2rem, 3.5vw, 3.8rem);
  align-items: start;
}

.tc-split-landing__main {
  min-width: 0;
  width: 100%;
}

.tc-landing-header {
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.tc-landing-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #F1F5F9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0A0A0A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.tc-landing-title {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.tc-landing-excerpt {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #4A5568;
  line-height: 1.68;
  margin: 0;
}

.tc-landing-hero-media {
  margin-bottom: 1.8rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.tc-landing-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 440px;
}

/* Botones de acción rápida para visitantes móviles */
.tc-mobile-quick-cta {
  display: none;
  margin-top: 1.3rem;
  gap: 0.75rem;
  align-items: center;
}

.tc-quick-cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 0.8rem 1.1rem !important;
  border-radius: 999px !important;
  background: #0A0A0A !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.tc-quick-wa-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 0.8rem 1.1rem !important;
  border-radius: 999px !important;
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28) !important;
}

/* Columna Derecha: Tarjeta de Formulario */
.tc-split-landing__sidebar {
  position: sticky;
  top: 88px;
  z-index: 25;
}

.tc-landing-form-card {
  background: #0A0A0A;
  color: #FFFFFF;
  border-radius: 22px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tc-landing-form-header {
  margin-bottom: 1.3rem;
}

.tc-landing-form-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tc-landing-form-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.tc-landing-form-intro {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 0;
}

/* Canales Directos Rápidos */
.tc-landing-channels {
  margin-top: 1.4rem;
}

.tc-landing-channels__divider {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1.1rem;
}

.tc-landing-channels__title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.tc-landing-channels__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tc-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tc-channel-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.tc-channel-link--wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #4ADE80;
}

.tc-channel-link--wa:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #4ADE80;
}

.tc-landing-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.tc-landing-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  flex-shrink: 0;
}

/* ==========================================================================
   PULIDO PROFUNDO PARA DISPOSITIVOS MÓVILES (SMARTPHONES & TABLETS)
   ========================================================================== */
@media (max-width: 991px) {
  .tc-split-landing {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tc-split-landing__sidebar {
    position: static;
    top: auto;
    width: 100%;
  }

  .tc-landing-form-card {
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.2rem) clamp(1.1rem, 3.5vw, 1.6rem);
  }

  .tc-mobile-quick-cta {
    display: flex;
    margin-top: 1.3rem;
  }

  /* Previene auto-zoom molesto en iOS Safari para todos los campos */
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .tc-landing-form-card input,
  .tc-landing-form-card textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  .tc-mobile-quick-cta {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }

  .tc-mobile-quick-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem !important;
    justify-content: center;
  }

  .tc-landing-page {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }

  .tc-landing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .tc-landing-title {
    font-size: clamp(1.75rem, 5.5vw, 2.3rem) !important;
    line-height: 1.22 !important;
  }

  .tc-landing-excerpt {
    font-size: 1.02rem !important;
    line-height: 1.6 !important;
  }

  .tc-landing-form-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 18px !important;
  }

  .tc-landing-form-title {
    font-size: clamp(1.35rem, 4.5vw, 1.6rem) !important;
    line-height: 1.25 !important;
  }

  .tc-channel-link {
    min-height: 46px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
  }

  .contact-form__row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

@media (max-width: 480px) {
  .tc-landing-page {
    padding-top: 1.2rem;
  }

  .tc-landing-title {
    font-size: 1.65rem !important;
  }

  .tc-landing-form-card {
    padding: 1.35rem 1rem !important;
  }
}

/* Contención de bloques anchos dentro del split layout */
.tc-split-landing .alignfull,
.tc-landing-body .alignfull,
.tc-split-landing .alignwide,
.tc-landing-body .alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
