/* =========================================================
   ESTUDIO COLTELLINI — styles.css
   ========================================================= */

/* ── Tipografía Satoshi (self-hosted) ── */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variables globales ── */
:root {
  --blue:       #005187;
  --blue-hover: #00406d;
  --blue-glow:  rgba(0, 81, 135, 0.35);
  --black:      #000000;
  --white:      #ffffff;
  --font:       'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-btn: 15px;
  --radius-box: 20px;
  --max-w:      1200px;
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Satoshi en todo: la familia se hereda y cada clase ajusta tamaño y peso */
h1, h2, h3, p, a, span, div, li, button, input, textarea, select {
  font-family: var(--font);
}

h1, h2, h3, p {
  margin: 0;
}

p {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* =========================================================
   HEADER (menú existente)
   ========================================================= */

/* ── Variables ── */
#ec-header {
  --ec-blue:        #005187;
  --ec-blue-hover:  #00406d;
  --ec-blue-glow:   rgba(0, 81, 135, 0.15);
  --ec-bg:          #ffffff;
  --ec-surface:     #f7f8fa;
  --ec-border:      rgba(0,0,0,0.08);
  --ec-text:        #0a0a0a;
  --ec-text-muted:  rgba(0,0,0,0.45);
  --ec-h:           80px;
  --ec-h-small:     54px;
  --ec-logo-h:      38px;
  --ec-logo-h-small:26px;
  --ec-radius:      6px;
  font-family: var(--font);
}

/* ── Reset ── */
#ec-header, #ec-header * { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Estructura ── */
#ec-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: var(--ec-h);
  background: var(--ec-bg);
  border-bottom: 1px solid var(--ec-border);
  transition: height 0.35s cubic-bezier(.4,0,.2,1),
              box-shadow 0.35s ease;
}

/* Estado scrolled — solo desktop */
@media (min-width: 769px) {
  #ec-header.ec-scrolled {
    height: var(--ec-h-small);
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  }

  #ec-header.ec-scrolled .ec-logo img {
    height: var(--ec-logo-h-small) !important;
  }

  #ec-header.ec-scrolled .ec-link {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.9rem !important;
  }

  #ec-header.ec-scrolled .ec-cta {
    padding: 0.4rem 1rem !important;
  }
}

.ec-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ── Logo ── */
.ec-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.ec-logo:hover { opacity: 1; }

.ec-logo img {
  height: var(--ec-logo-h);
  width: auto;
  display: block;
  filter: none;
  transition: height 0.35s cubic-bezier(.4,0,.2,1);
}

/* ── Nav desktop ── */
#ec-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ec-link {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--ec-text-muted) !important;
  text-decoration: none !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--ec-radius) !important;
  border: 1px solid transparent !important;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease !important;
  white-space: nowrap !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.ec-link:hover {
  color: var(--ec-text) !important;
  background: rgba(0,0,0,0.04) !important;
  border-color: var(--ec-border) !important;
}

.ec-link.active {
  color: var(--ec-text) !important;
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.1) !important;
}

/* CTA Contacto */
.ec-cta {
  color: #ffffff !important;
  background: var(--ec-blue) !important;
  border-color: transparent !important;
  padding: 0.5rem 1.2rem !important;
  gap: 7px !important;
}

.ec-cta svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.ec-cta:hover {
  background: var(--ec-blue-hover) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 3px var(--ec-blue-glow);
  color: #ffffff !important;
}

.ec-cta:hover svg { transform: translateX(3px); }

/* ── Hamburguesa ── */
.ec-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  cursor: pointer;
  padding: 9px 8px;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ec-burger:hover {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.15);
}

.ec-bar {
  display: block;
  height: 1.5px;
  background: var(--ec-text);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.25s ease, width 0.25s ease;
}

.ec-bar:nth-child(2) { width: 65%; align-self: flex-end; }

.ec-burger.open .ec-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ec-burger.open .ec-bar:nth-child(2) { opacity: 0; width: 100%; }
.ec-burger.open .ec-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Drawer mobile ── */
#ec-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}

#ec-drawer.open { display: block; }

.ec-drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: ecFadeIn 0.22s ease;
}

.ec-drawer-panel {
  position: absolute;
  top: var(--ec-h);
  left: 0;
  right: 0;
  background: var(--ec-bg);
  border-top: 1px solid var(--ec-border);
  border-bottom: 2px solid var(--ec-blue);
  padding: 1.5rem 1.5rem 2rem;
  animation: ecSlideDown 0.25s cubic-bezier(.4,0,.2,1);
  width: 100%;
}

@keyframes ecFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ecSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo dentro del drawer */
.ec-drawer-logo {
  display: flex;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--ec-border);
}

.ec-drawer-logo img {
  height: 30px;
  width: auto;
  filter: none;
  opacity: 0.75;
}

/* Links del drawer */
.ec-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.ec-dlink {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ec-text-muted);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--ec-radius);
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ec-dlink:hover {
  color: var(--ec-text);
  background: rgba(0,0,0,0.04);
  border-color: var(--ec-border);
}

.ec-dlink.active {
  color: var(--ec-text);
  background: rgba(0,0,0,0.04);
  border-color: var(--ec-border);
  border-left: 2px solid var(--ec-blue);
  border-radius: 0 var(--ec-radius) var(--ec-radius) 0;
}

.ec-dlink-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.04);
  border-radius: var(--ec-radius);
  flex-shrink: 0;
  color: var(--ec-text-muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.ec-dlink:hover .ec-dlink-icon,
.ec-dlink.active .ec-dlink-icon {
  background: var(--ec-blue-glow);
  color: var(--ec-blue);
}

/* CTA drawer */
.ec-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem;
  background: var(--ec-blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--ec-radius);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ec-drawer-cta:hover {
  background: var(--ec-blue-hover);
  box-shadow: 0 0 0 3px var(--ec-blue-glow);
  color: #fff;
}

.ec-drawer-cta svg { transition: transform 0.2s ease; flex-shrink: 0; }
.ec-drawer-cta:hover svg { transform: translateX(3px); }
#ec-header .ec-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* ── Responsive header ── */
@media (max-width: 768px) {
  .ec-burger         { display: flex !important; }
  #ec-nav            { display: none !important; }
  .ec-inner          { padding: 0 1.25rem !important; }
  .ec-logo img       { height: 33px !important; }
  #ec-header         { position: relative !important; }
}

@media (max-width: 480px) {
  .ec-logo img       { height: 28px !important; }
  .ec-drawer-panel   { padding: 1.25rem 1.25rem 1.75rem !important; }
}



/* =========================================================
   SECCIÓN 1 — HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 220px);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Velo oscuro para asegurar la lectura del texto sobre la imagen */

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* Contenedor transparente del texto */
.hero-content {
  max-width: 620px;
  background: transparent;
  text-align: left;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--blue);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.125rem, 5.4vw, 3.25rem); /* 52px en desktop */
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  color: var(--white);
}

.hero-title-accent {
  display: block;
  color: var(--blue);
}

.hero-text {
  max-width: 400px;
  margin-top: 1.25rem;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  color: var(--white);
}

/* ── Botones ── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.75rem;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--blue);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.btn-outline {
  background: var(--black);
  border-color: var(--white);
}

.btn-outline:hover {
  background: transparent;
}

/* ── Tarjetas de valores ── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.25rem 0;
  background: var(--black);
  border: 0;
  border-radius: var(--radius-box);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid var(--white);
}

.feature:last-child {
  border-right: 0;
}

.feature img {
  flex-shrink: 0;
  width: 44px;
  height: auto;
}

.feature h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: left;
  color: var(--white);
}

.feature p {
  margin-top: 0.25rem;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  color: var(--white);
}

/* ── Banda de contadores ── */
.stats {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--blue) url('/images/stats-bg.webp') center / cover no-repeat;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.55);
}

.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.stat-label {
  margin-top: 0.75rem;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}

/* =========================================================
   SECCIÓN 2 — ACERCA DE
   ========================================================= */
.about {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--black);
}

.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-box);
}

.about-title {
  font-size: 30px;
  font-weight: 700;
  text-align: left;
  color: var(--white);
}

.about-text {
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
  color: var(--white);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 1.75rem 0 1.25rem;
  background: var(--black);
  border-top: 1px solid var(--white);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-item:nth-child(1) { justify-content: flex-start; }
.footer-item:nth-child(2) { justify-content: center; }
.footer-item:nth-child(3) { justify-content: flex-end; }

.footer-item img {
  flex-shrink: 0;
  width: 20px;
  height: auto;
}

.footer-item p {
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
}

.footer-item a {
  color: inherit;
  text-decoration: none;
}

.footer-item a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.footer-copy {
  font-size: 11px;
  font-weight: 400;
  text-align: center;
  color: var(--white);
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
  color: var(--white);
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-credit img {
  width: 18px;
  height: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  /* Tarjetas: 2 x 2 */
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(2) {
    border-right: 0;
  }

  .feature:nth-child(-n+2) {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--white);
  }

  .feature:nth-child(n+3) {
    padding-top: 1.25rem;
  }

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

@media (max-width: 768px) {
  .hero-inner,
  .stats-grid,
  .about-grid,
  .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .footer-item:nth-child(n) {
    justify-content: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  /* Tarjetas: 1 columna */
  .features {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(n) {
    padding: 1rem 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--white);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ── Accesibilidad: respeta "reducir movimiento" ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================================================
   PÁGINA NOSOTROS
   ========================================================= */

/* ── Hero de Nosotros: texto un poco más ancho por la extensión del párrafo ── */

.hero--nosotros .hero-content {
  max-width: 550px;
}

.hero--nosotros .hero-text {
  max-width: 620px;
}

/* ── Ante-título azul (reutilizable en otras secciones) ── */
.section-eyebrow {
  margin-bottom: 1rem;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--blue);
}

/* ── Sección Nuestros Valores ── */
.values {
  margin-top: 0px;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--black);
}

.values-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* La línea blanca superior mide solo el ancho del contenido */
.values-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--white);
}

.values-title {
  font-size: clamp(1.625rem, 3vw, 1.875rem); /* 30px en desktop */
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  color: var(--white);
}

.values-intro-text {
  margin-top: 1rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  color: var(--white);
}

.value img {
  width: 44px;
  height: auto;
  margin-bottom: 1rem;
}

.value-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--white);
}

.value-text {
  margin-top: 0.5rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  color: var(--white);
}

/* ── Footer con la línea superior limitada al ancho del contenido ── */
.site-footer--contained {
  padding-top: 0;
  border-top: 0;
}

.site-footer--contained .footer-contact {
  padding-top: 1.75rem;
  border-top: 1px solid var(--white);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .values-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 560px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   PÁGINA SERVICIOS 
   ========================================================= */

/* ── Tarjetas del hero (variante de .features de Inicio) ── */
.features--services {
  margin-top: 120px;
  border-radius: 15px;
}

.features--services .feature {
  align-items: center; /* solo hay ícono y título: se centran en vertical */
}

.features--services .feature h2 {
  text-transform: none; /* los títulos van en minúsculas (como están escritos) */
}

/* ── Ante-título centrado (variante de .section-eyebrow) ── */
.section-eyebrow--center {
  text-align: center;
}

/* ── Sección Nuestros Servicios ── */
.services {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--black);
}

.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.services-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.services-title {
  font-size: clamp(1.625rem, 3vw, 1.875rem); /* 30px en desktop */
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* ── Tarjeta de servicio ── */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  background: var(--blue);
  border: 0;
  border-radius: 15px;
}

.service-card > img {
  width: 56px;
  height: auto;
  margin: 0 auto 1.25rem;
}

/* Recuadro blanco con el título */
.service-label {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.875rem 1rem;
  background: var(--white);
  border-radius: 15px;
}

.service-title {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  color: #0a0a0a;
  overflow-wrap: break-word;
}

/* Texto debajo del recuadro (mismas propiedades que .hero-text, a 12px) */
.service-text {
  margin-top: 1rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  color: var(--white);
}

/* ── Responsive ── */

/* 3 + 2: la segunda fila queda centrada */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-card {
    grid-column: span 2;
  }

  .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* 2 columnas: la última tarjeta queda centrada abajo */
@media (max-width: 768px) {
  .services-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.625rem);
  }
}

/* 1 columna */
@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}
/* =========================================================
   PÁGINA CONTACTO
   ========================================================= */

/* ── Utilidades del formulario ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Campo trampa anti-bots: fuera de pantalla (no usar display:none) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Layout de 2 columnas ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ── Columna 1: datos ── */
.contact-block {
  margin-top: 2rem;
}

.contact-block .hero-eyebrow {
  margin-bottom: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item img {
  flex-shrink: 0;
  width: 32px;
  height: auto;
}

.contact-address {
  margin: 0;
  font-style: normal;
}

/* Mismas propiedades que .hero-text, pero en regular */
.contact-text {
  margin-top: 0;
  max-width: none;
  font-weight: 400;
}

.contact-address .contact-text + .contact-text {
  margin-top: 0.125rem;
}

.contact-text a {
  color: inherit;
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}

/* ── Columna 2: tarjeta del formulario ── */
.contact-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(0, 0, 0, 0.65); /* negro transparente: se ve un poco la foto */
  border: 0;
  border-radius: 15px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
}

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

.field {
  display: flex;
  flex-direction: column;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--white);
  opacity: 1; /* Firefox baja la opacidad por defecto */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Autocompletado del navegador: mantiene el fondo transparente y el texto blanco */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  transition: background-color 9999s ease-in-out 0s;
}

/* ── Errores de validación ── */
.field-msg {
  display: block;
  margin-top: 0.375rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #ff6b6b;
}

.field-msg:empty {
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff6b6b;
}

/* ── Botón Enviar ── */
.form-actions {
  display: flex;
  justify-content: flex-start;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-send:hover {
  background: var(--blue-hover);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Mensaje de estado del envío ── */
.form-status {
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--white);
}

.form-status.is-ok {
  color: #7ddc9a;
}

.form-status.is-error {
  color: #ff6b6b;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .btn-send {
    width: 100%;
  }
}

/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9000; /* por debajo del menú móvil (9998) para que éste lo cubra */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  line-height: 0;
  transition: transform 0.2s ease;
}

.whatsapp-float img {
  display: block;
  width: 56px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 50%;
}

/* En celular: un poco más chico y el footer deja lugar para que no tape el texto */
@media (max-width: 768px) {
  .whatsapp-float {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .whatsapp-float img {
    width: 52px;
  }

  .site-footer {
    padding-bottom: 5rem;
  }
}