/* ==========================================================================
   DLabs Landing — Componentes y comportamientos no-utility
   Tokens en tailwind.config (inline en index.html). Aquí va todo lo que
   Tailwind no cubre o rompería la legibilidad si se hiciera con utilities.
   ========================================================================== */

:root {
  --azul-principal: #0E344A;
  --azul-corp: #123D56;
  --azul-petroleo: #1F536B;
  --azul-grisaceo: #496F82;
  --titular: #16384C;
  --cta-hover: #0d2d42;
  --blanco: #FFFFFF;
  --gris-fondo: #f7fafb;
  --gris-borde: #e5ecef;
  --gris-borde-card: #e7edf0;
  --gris-borde-icon: #dce6eb;
  --gris-input: #d6e0e5;
  --gris-texto-2: #778891;
  --gris-microcopy: #89979f;
  --azul-footer: #183f55;
  --whatsapp: #25D366;
  --estrella: #f5c451;

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--titular);
  background: #fff;
  line-height: 1.5;
}

/* ---------- Container ---------- */
.dlabs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 768px) {
  .dlabs-container { padding-left: 20px; padding-right: 20px; }
}

/* Container con form lateral activo (desktop) */
@media (min-width: 1024px) {
  body main > section .dlabs-container {
    max-width: none;
    margin-left: 0;
    padding-left: max(24px, calc((100vw - 1200px) / 2));
    padding-right: calc(50vw + 32px);
    transition: padding-right 0.4s var(--easing), padding-left 0.4s var(--easing);
  }
  body.form-compact main > section .dlabs-container {
    padding-right: 454px;
  }
  }

/* ---------- Tipografía base ---------- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--azul-petroleo);
}
.section-eyebrow.on-dark { color: rgba(255, 255, 255, 0.7); }
.section-eyebrow.footer-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--titular);
}
.section-title.on-dark { color: #fff; }

.section-copy {
  font-size: 17px;
  line-height: 1.6;
  color: var(--titular);
}
@media (max-width: 768px) { .section-copy { font-size: 16px; } }
.section-copy.on-dark { color: rgba(255, 255, 255, 0.78); font-size: 15px; }

.service-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--titular);
}
.service-title.on-dark { color: #fff; }

.service-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gris-texto-2);
}
.service-text.on-dark { color: rgba(255, 255, 255, 0.78); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--easing),
              box-shadow 0.45s var(--easing),
              border-color 0.45s var(--easing),
              background-color 0.45s var(--easing);
}
.site-header.header-scrolled {
  box-shadow: 0 10px 30px rgba(10, 43, 61, 0.08);
  border-bottom-color: rgba(214, 224, 229, 0.95);
}
.site-header.header-hidden { transform: translateY(-100%); }

.header-logo { height: 54px; width: auto; display: block; }
@media (max-width: 640px) { .header-logo { height: 44px; } }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--titular);
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-phone:hover { color: var(--azul-petroleo); }
.header-phone svg { width: 18px; height: 18px; stroke: currentColor; }

/* ---------- Hero ---------- */
.hero-home {
  background-color: #0b2b42;
  min-height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0;
  color: #fff;
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/hero-dlabs.webp") 25% center / cover no-repeat;
  z-index: -2;
}
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 39, 58, .55) 0%, rgba(9, 39, 58, .25) 35%, rgba(9, 39, 58, .15) 60%, rgba(9, 39, 58, .55) 100%),
    linear-gradient(180deg, rgba(9, 39, 58, .15) 0%, rgba(9, 39, 58, .35) 100%);
  z-index: -1;
}
@media (max-width: 1023px) {
  .hero-home {
    min-height: auto;
    padding: 72px 0 56px;
  }
  .hero-home::before {
    background-position: 35% center;
  }
  .hero-home::after {
    background:
      linear-gradient(180deg, rgba(9, 39, 58, .45) 0%, rgba(9, 39, 58, .85) 100%),
      linear-gradient(90deg, rgba(9, 39, 58, .55) 0%, rgba(9, 39, 58, .35) 100%);
  }
}

.hero-h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}
@media (max-width: 768px) { .hero-h1 { font-size: 38px; } }

.hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-badge .stars { color: var(--estrella); letter-spacing: 1px; }
.hero-badge .score { font-weight: 700; color: #fff; }

/* ---------- CTAs ---------- */
.cta-primary,
.cta-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-primary {
  background: var(--azul-footer);
  color: #fff;
}
.cta-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #0E344A, #1F536B, #496F82);
  opacity: 0.42;
  filter: blur(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: -1;
}
.cta-primary:hover { background: var(--cta-hover); }
.cta-primary:hover::before { opacity: 0.95; transform: scale(1.08); }

.cta-light {
  background: #fff;
  color: var(--azul-footer);
}
.cta-light::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(215, 235, 244, 0.95), rgba(255, 255, 255, 0.9));
  opacity: 0.7;
  filter: blur(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: -1;
}
.cta-light:hover { background: #f4f9fc; }
.cta-light:hover::before { opacity: 1; transform: scale(1.06); }

/* ---------- Cards ---------- */
.card-home {
  background: #fff;
  border: 1px solid var(--gris-borde-card);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(10, 43, 61, 0.08);
  padding: 32px;
}
@media (max-width: 768px) { .card-home { padding: 24px; } }

.card-home.card-inverted {
  background: var(--azul-footer);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.card-home.card-inverted .icon-box {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

/* ---------- Icon box ---------- */
.icon-box {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gris-borde-icon);
  background: var(--gris-fondo);
  color: var(--azul-petroleo);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-box svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Form (línea, no caja) ---------- */
.form-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--gris-input);
  padding: 13px 0;
  font-size: 13px;
  color: var(--titular);
  outline: none;
  background: transparent;
  font-family: inherit;
  border-radius: 0;
}
.form-input::placeholder { color: var(--gris-microcopy); }
.form-input:focus { border-color: var(--titular); }

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316384C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

textarea.form-input {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--gris-texto-2);
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--azul-footer);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.form-checkbox a {
  color: var(--titular);
  font-weight: 700;
  text-decoration: underline;
}

.form-microcopy {
  font-size: 12px;
  color: var(--gris-microcopy);
  text-align: center;
  line-height: 1.5;
}

.form-h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--titular);
  line-height: 1.15;
}
@media (max-width: 768px) { .form-h2 { font-size: 22px; } }

/* ---------- Form lateral fijo (3 estados) ---------- */
.fixed-form-shell {
  display: none;
}
@media (min-width: 1024px) {
  .fixed-form-shell {
    display: block;
    position: fixed;
    top: 104px;
    right: 24px;
    width: calc(50vw - 48px);
    max-width: 540px;
    background: #fff;
    border: 1px solid var(--gris-borde-card);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(10, 43, 61, 0.08);
    padding: 32px;
    z-index: 50;
    opacity: 1;
    transform: translateX(0);
    transition: width 0.45s var(--easing),
                right 0.45s var(--easing),
                top 0.45s var(--easing),
                background 0.45s var(--easing),
                padding 0.45s var(--easing),
                opacity 0.32s ease,
                transform 0.4s var(--easing),
                visibility 0s linear 0s;
    will-change: opacity, transform;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
  body.form-compact .fixed-form-shell {
    width: 400px;
    right: 30px;
    top: 96px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
  }
  body.form-compact .fixed-form-shell .form-h2 { font-size: 1.35rem; }

  body.form-contact-fade .fixed-form-shell {
    opacity: 0;
    transform: translateX(42px) scale(0.98);
    pointer-events: none;
  }

  .fixed-form-shell.form-contact-stopped {
    position: absolute;
  }
}

/* Form móvil — sólo móvil */
.form-movil {
  display: block;
}
@media (min-width: 1024px) {
  .form-movil { display: none; }
}

/* ---------- Trust box ---------- */
.trust-box {
  border: 1px solid var(--gris-borde);
  background: #fff;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(10, 43, 61, 0.05);
}

/* ---------- Banda CTA azul (sección 7) ---------- */
.cta-band {
  background: var(--azul-footer);
  padding: 40px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 20px;
}
@media (min-width: 768px) {
  .cta-band {
    padding: 48px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}
.cta-band .h2-azul {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
}
@media (max-width: 768px) { .cta-band .h2-azul { font-size: 24px; } }

/* ---------- FAQ visual ---------- */
.faq-visual {
  position: relative;
  overflow: hidden;
  background: var(--azul-footer);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 20px;
}
@media (min-width: 768px) { .faq-visual { padding: 40px; } }
.faq-visual .bg-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s var(--easing);
}
.faq-visual .bg-photo.bg-loaded {
  background-image: url('assets/images/faq-dlabs.webp');
  opacity: 0.85;
}
.faq-visual .bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 52, 74, 0.10) 0%,
    rgba(14, 52, 74, 0.45) 50%,
    rgba(14, 52, 74, 0.88) 100%
  );
}
.faq-visual > * { position: relative; z-index: 1; }
.faq-visual .section-eyebrow.on-dark {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.22em;
}

.faq-card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--titular);
  line-height: 1.3;
}

/* ---------- Mapa block ---------- */
.map-block {
  background: var(--azul-footer);
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
}
@media (min-width: 768px) { .map-block { padding: 40px; } }
.map-block iframe {
  width: 100%;
  border: 0;
  display: block;
}
.map-frame {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}


/* ---------- Recuadro foto contacto final ---------- */
.photo-placeholder-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 20px;
  background: var(--azul-footer);
  color: #fff;
  display: flex;
  align-items: flex-start;
  padding: 40px;
  box-shadow: 0 18px 42px rgba(10, 43, 61, 0.08);
}
.photo-placeholder-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s var(--easing);
}
.photo-placeholder-bg.bg-loaded {
  background-image: url('assets/images/contacto-dlabs.webp');
  opacity: 0.52;
}
.photo-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 63, 85, 0.12), rgba(24, 63, 85, 0.58));
}
.photo-placeholder-content {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .photo-placeholder-card {
    min-height: 360px;
    padding: 28px;
  }
}



/* ---------- Sección final equilibrada con formulario lateral ---------- */
@media (min-width: 1024px) {
  #contacto-final {
    --contact-card-height: 620px;
  }

  #contacto-final .dlabs-container {
    padding-right: 454px;
  }

  #contacto-final .grid {
    align-items: stretch;
  }

  #contacto-final .photo-placeholder-card,
  #contacto-final .map-block {
    height: var(--contact-card-height);
    min-height: var(--contact-card-height);
  }

  #contacto-final .map-block {
    display: flex;
    flex-direction: column;
  }

  #contacto-final .map-frame {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }

  #contacto-final .map-frame iframe {
    height: 100% !important;
    min-height: 0 !important;
  }

  .fixed-form-shell.form-contact-stopped {
    position: absolute;
  }
}

.photo-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-proof-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (max-width: 1023px) {
  #contacto-final .photo-placeholder-card,
  #contacto-final .map-block {
    min-height: 420px;
  }
}

/* ---------- Footer ---------- */
.footer-dark {
  background: var(--azul-footer);
  color: #fff;
  padding: 56px 0;
}
.footer-logo { height: 64px; width: auto; display: block; }
@media (max-width: 640px) { .footer-logo { height: 52px; } }

.footer-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; }


/* ---------- Header phone como botón ---------- */
.header-phone {
  background: var(--azul-footer);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(10, 43, 61, 0.12);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.header-phone:hover {
  background: var(--cta-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(10, 43, 61, 0.18);
}
.header-phone svg {
  stroke: currentColor;
}


/* ---------- Contacto final en tres tarjetas ---------- */
@media (min-width: 1024px) {
  #contacto-final {
    --contact-card-height: 620px;
  }

  #contacto-final .contact-final-grid {
    align-items: stretch;
  }

  #contacto-final .photo-placeholder-card,
  #contacto-final .map-block,
  #contacto-final .contact-conversion-card {
    height: var(--contact-card-height);
    min-height: var(--contact-card-height);
  }

  #contacto-final .map-block {
    display: flex;
    flex-direction: column;
  }

  #contacto-final .map-frame {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }

  #contacto-final .map-frame iframe {
    height: 100% !important;
    min-height: 0 !important;
  }
}

.contact-conversion-card {
  background:
    radial-gradient(circle at 80% 20%, rgba(73, 111, 130, 0.35), transparent 34%),
    linear-gradient(135deg, var(--azul-principal), var(--azul-footer));
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 18px 42px rgba(10, 43, 61, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.contact-conversion-cta {
  width: 100%;
}

@media (max-width: 1023px) {
  #contacto-final .photo-placeholder-card,
  #contacto-final .map-block,
  #contacto-final .contact-conversion-card {
    min-height: 420px;
  }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-fixed {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.45);
}
.whatsapp-fixed svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .whatsapp-fixed { left: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Utilidades menores ---------- */
.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

@media (min-width: 1024px) {
  body main > section.no-aside-padding .dlabs-container,
  body main > section.section-cta-band .dlabs-container,
  body main > section#contacto-final .dlabs-container,
  body main > section.section-clients .dlabs-container {
    /* default: usa padding adaptativo de arriba */
  }
}


/* ---------- Contacto final a ancho completo (MED-15: padding unificado) ----------
   Estados:
   - body sin clase / body.form-compact: el form lateral ocupa la derecha,
     dejamos sitio con padding-right: 454px (lo aplica la regla de la línea ~603).
   - body.form-contact-fade: el form lateral está en fade-out, la sección puede
     ocupar casi todo el ancho con padding pequeño. */
@media (min-width: 1024px) {
  body.form-contact-fade main > section#contacto-final .dlabs-container {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(24px, 4vw, 72px);
    padding-right: clamp(24px, 4vw, 72px);
  }

  #contacto-final .contact-final-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 2.2vw, 40px);
  }

  #contacto-final .photo-placeholder-card,
  #contacto-final .map-block,
  #contacto-final .contact-conversion-card {
    width: 100%;
  }
}


@media (min-width: 1024px) and (max-width: 1280px) {
  #contacto-final .section-title {
    font-size: clamp(26px, 2.4vw, 34px);
  }

  #contacto-final .photo-placeholder-card,
  #contacto-final .map-block,
  #contacto-final .contact-conversion-card {
    padding: 32px;
  }
}

/* ---------- Variante blanca para bloque mapa ---------- */
#contacto-final .map-block {
  background: #ffffff;
  color: var(--titular);
  border: 1px solid var(--gris-borde-card);
  box-shadow: 0 18px 42px rgba(10, 43, 61, 0.08);
}

#contacto-final .map-block .section-title,
#contacto-final .map-block .section-title.on-dark {
  color: var(--titular);
}

#contacto-final .map-block .section-copy,
#contacto-final .map-block .section-copy.on-dark {
  color: var(--gris-texto-2);
}

#contacto-final .map-frame {
  border: 1px solid var(--gris-borde);
  background: var(--gris-fondo);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

#contacto-final .map-frame iframe {
  border-radius: 8px;
}

/* ---------- Cards clickables (UX mejora 2026-05-04) ---------- */
.card-clickable {
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s var(--easing),
              transform 0.45s var(--easing),
              border-color 0.45s var(--easing),
              background-color 0.45s var(--easing);
}
.card-clickable:hover {
  box-shadow: 0 22px 50px rgba(10, 43, 61, 0.12);
}
.card-clickable.card-inverted:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.card-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: inherit;
}
.card-stretched-link:focus-visible {
  outline: 2px solid var(--azul-petroleo);
  outline-offset: 4px;
}

/* ---------- Carrusel de logos clientes (marquee) — 2026-05-04 ---------- */
.logos-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  --marquee-shift: calc(-50% - 32px); /* mitad del set + mitad del gap */
  animation: marquee-scroll 40s linear infinite;
}
.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}
.logo-marquee-item {
  max-height: 40px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.3s var(--easing);
}
.logo-marquee-item.logo-invertido {
  filter: invert(1) brightness(0.85) grayscale(100%) opacity(0.7);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift)); }
}
@media (max-width: 768px) {
  .logos-track {
    gap: 48px;
    --marquee-shift: calc(-50% - 24px);
  }
  .logo-marquee-item { max-height: 32px; }
}
/* El bloque global prefers-reduced-motion vive al final del archivo (MIN-19) */

/* ---------- Highlight del hero (rotulador blanco) ---------- */
.hero-highlight {
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--azul-principal);
  padding: 4px 8px;
  /* box-decoration-break: clone hace que si el highlight rompe
     en varias líneas, cada línea tenga su propia caja con padding
     completo, en lugar de una única caja gigante mal recortada. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  /* Pequeño ajuste para evitar que el padding empuje líneas
     adyacentes hacia arriba */
  line-height: inherit;
}

@media (max-width: 768px) {
  .hero-highlight {
    padding: 3px 6px;
  }
}

/* ---------- Accesibilidad: reducir movimiento (MIN-19) ----------
   Si el usuario tiene activada la preferencia de reducir movimiento del SO,
   anulamos animaciones y transiciones. Cubre carrusel logos, transiciones
   del header, formulario lateral, hover de cards y CTAs, fade de backgrounds. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .logos-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 32px 64px;
  }
}

/* ---------- Estados del formulario (Web3Forms) ---------- */
.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 10px;
  border-left: 3px solid;
}
.form-message strong { font-weight: 700; }

.form-message-success {
  background: #e8f5ed;
  color: #1e5f3f;
  border-left-color: #2d8659;
}
.form-message-error {
  background: #fbeaea;
  color: #8a2c2c;
  border-left-color: #c04040;
}

/* Estado "enviando" del botón */
.cta-primary[disabled] {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* ---------- Reseñas de Google (sección propia) ---------- */
.dlabs-google-reviews {
  background: var(--gris-fondo);
  padding: 80px 0;
}
/* Override del padding adaptativo: reservamos sólo el ancho del form lateral
   para que el grid de reseñas tenga espacio suficiente en desktop, igual que
   hacía el bloque Trustindex original. */
@media (min-width: 1024px) {
  body main > section.dlabs-google-reviews .dlabs-container,
  body.form-compact main > section.dlabs-google-reviews .dlabs-container {
    padding-left: clamp(24px, 4vw, 72px);
    padding-right: 480px;
  }
  body.form-contact-fade main > section.dlabs-google-reviews .dlabs-container {
    padding-right: clamp(24px, 4vw, 72px);
  }
}
@media (max-width: 768px) {
  .dlabs-google-reviews { padding: 56px 0; }
}
.dlabs-google-reviews__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.dlabs-google-reviews__summary {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.dlabs-google-reviews__eyebrow { margin: 0; }
.dlabs-google-reviews__title { margin: 4px 0 0; }
.dlabs-google-reviews__copy {
  margin: 0;
  color: var(--gris-texto-2);
}
.dlabs-google-reviews__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 6px;
}
.dlabs-google-reviews__rating-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.dlabs-google-reviews__rating-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--titular);
  letter-spacing: 0.01em;
}
.dlabs-google-reviews__rating-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-texto-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.dlabs-google-reviews__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--estrella);
  font-size: 20px;
  line-height: 1;
}
.dlabs-google-reviews__stars--sm { font-size: 15px; }
.dlabs-google-reviews__rating-count {
  margin: 0;
  font-size: 14px;
  color: var(--gris-texto-2);
}
.dlabs-google-reviews__cta { margin-top: 10px; }

.dlabs-google-reviews__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .dlabs-google-reviews__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .dlabs-google-reviews__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dlabs-google-reviews__card {
  background: #fff;
  border: 1px solid var(--gris-borde-card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(10, 43, 61, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s var(--easing), box-shadow 0.25s var(--easing);
}
.dlabs-google-reviews__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10, 43, 61, 0.08);
}
.dlabs-google-reviews__card[data-dlabs-reviews-extra] { display: none; }
.dlabs-google-reviews__cards.is-expanded .dlabs-google-reviews__card[data-dlabs-reviews-extra] {
  display: flex;
}
.dlabs-google-reviews__card-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
}
.dlabs-google-reviews__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azul-footer);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.dlabs-google-reviews__author {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dlabs-google-reviews__author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--titular);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dlabs-google-reviews__author-meta {
  font-size: 12px;
  color: var(--gris-microcopy);
}
.dlabs-google-reviews__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gris-texto-2);
}

.dlabs-google-reviews__more {
  display: flex;
  justify-content: center;
}
.dlabs-google-reviews__toggle {
  appearance: none;
  background: #fff;
  color: var(--azul-footer);
  border: 1px solid var(--gris-borde-card);
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dlabs-google-reviews__toggle:hover,
.dlabs-google-reviews__toggle:focus-visible {
  background: var(--azul-footer);
  color: #fff;
  border-color: var(--azul-footer);
  outline: none;
}
