/* =========================================================
   DYSART CONSTRUCTORA — main.css
   Paleta de marca:
   - Navy oscuro   : #10161f  (fondos oscuros, header)
   - Naranja marca : #f5a623  (acento principal, botones)
   - Gris oscuro    : #2b2b2b  (secciones oscuras alternas)
   - Gris claro     : #f2f2f2  (secciones claras alternas)
   - Azul acero     : #a9c0d9  (detalle de la cinta diagonal)
   ========================================================= */

:root {
  --navy: #10161f;
  --navy-2: #1b2430;
  --orange: #f5a623;
  --orange-dark: #d98c12;
  --gray-dark: #2b2b2b;
  --gray-mid: #808080;
  --gray-light: #f2f2f2;
  --steel: #a9c0d9;
  --white: #ffffff;
  --ink: #1a1a1a;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

/* ---------- Header / navegación ---------- */
.site-header .nav__logo img {
  height: 100px;
  width: auto;
  max-height: 100px;
  max-width: 200px;
  object-fit: contain;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 16px;
}
h1 { text-transform: uppercase; letter-spacing: 0.5px; font-style: italic; }
h2 { font-size: 1.9rem; color: var(--navy); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Barra superior de contacto ---------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar a { color: var(--white); }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: color .2s;
}
.nav__links a:hover { color: var(--orange-dark); }
.nav__cta {
  background: var(--gray-mid);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background .2s;
}
.nav__cta:hover { background: var(--orange); color: var(--navy); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero con foto de fondo ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(16,22,31,0.92) 0%, rgba(16,22,31,0.55) 55%, rgba(16,22,31,0.3) 100%),
              url('../imagenes/hero-fondo.png') center/cover no-repeat;
  color: var(--white);
}
.hero__content { max-width: 640px; padding: 60px 0; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__sub {
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  margin-bottom: 26px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-mid);
  color: var(--white);
  padding: 15px 26px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: background .2s;
}
.btn-whatsapp:hover { background: var(--orange); color: var(--navy); }

/* ---------- Cinta diagonal (firma visual tomada del PDF) ---------- */
.ribbon {
  position: relative;
  height: 34px;
  background: var(--gray-mid);
  overflow: hidden;
}
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 160px;
  background: var(--orange);
  transform: skewX(-30deg);
}
.ribbon::before { left: 10%; }
.ribbon::after  { left: 40%; background: var(--steel); }

/* ---------- Sección Nosotros (imágenes + texto) ---------- */
.nosotros {
  padding: 90px 0;
}
.nosotros .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros__imgs { position: relative; }
.nosotros__imgs img:first-child {
  border-radius: 4px;
  width: 100%;
}
.nosotros__imgs img:last-child {
  position: absolute;
  width: 55%;
  bottom: -36px;
  right: -24px;
  border: 6px solid var(--white);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.eyebrow {
  display: inline-block;
  color: var(--gray-mid);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.nosotros__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--gray-mid);
  font-weight: 600;
}
.nosotros__badge span.icono { font-size: 1.4rem; }
.btn-solido {
  display: inline-block;
  background: var(--gray-mid);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-solido:hover { background: var(--orange); color: var(--navy); }

/* ---------- Barra de estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div {
  padding: 34px 20px;
  text-align: center;
  color: var(--white);
}
.stats > div:nth-child(1) { background: var(--gray-mid); }
.stats > div:nth-child(2) { background: #d9d9d9; color: var(--ink); }
.stats > div:nth-child(3) { background: var(--navy); }
.stats > div:nth-child(4) { background: var(--orange); color: var(--navy); }
.stats strong { display: block; font-size: 2.1rem; font-family: var(--font-display); }
.stats span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Servicios (fondo oscuro) ---------- */
.servicios {
  background: var(--gray-dark);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.servicios .eyebrow { color: var(--orange); }
.servicios h2 { color: var(--white); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 40px;
  text-align: left;
}
.servicio-card {
  background: #363636;
  border-radius: 6px;
  overflow: hidden;
}
.servicio-card__img { height: 180px; background-size: cover; background-position: center; }
.servicio-card__body { padding: 20px; }
.servicio-card__body h3 { color: var(--white); font-size: 1.1rem; font-style: normal; margin-bottom: 8px; }
.servicio-card__body p { color: #c9c9c9; font-size: 0.92rem; }
.servicio-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--orange); font-weight: 600; font-size: 0.9rem; }
.servicios__cta {
  margin-top: 40px;
  display: inline-block;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.servicios__cta:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }

/* ---------- Proyectos ---------- */
.proyectos { padding: 80px 0; background: var(--white); text-align: center; }
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
  text-align: left;
}
.proyecto-card {
  background: var(--gray-light);
  border-left: 4px solid var(--orange);
  padding: 18px 20px;
}
.proyecto-card h3 { font-size: 1.05rem; color: var(--navy); font-style: normal; margin-bottom: 6px; }
.proyecto-card p { font-size: 0.92rem; color: #444; margin: 0; }

/* ---------- Por qué nos eligen ---------- */
.razones { padding: 90px 0; background: var(--gray-light); }
.razones .container { text-align: center; }
.razones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}
.razon-card {
  background: var(--white);
  padding: 34px 24px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.razon-card__icono {
  width: 50px; height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.razon-card h3 { font-size: 1.02rem; font-style: normal; margin-bottom: 8px; }
.razon-card p { font-size: 0.9rem; color: #555; margin: 0; }

/* ---------- Equipo ---------- */
.equipo { padding: 80px 0;  text-align: center; }
.lista-check { list-style: none; padding: 0; margin: 18px 0 0; }
.lista-check li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.lista-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* ---------- Contacto (imagen de fondo + formulario) ---------- */
.contacto-hero {
  background: linear-gradient(rgba(16,22,31,0.85), rgba(16,22,31,0.85)), url('../imagenes/hero-fondo.png') center/cover no-repeat;
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.contacto-hero .eyebrow { color: var(--orange); }
.contacto-hero h2 { color: var(--white); }

.contacto {
  background: var(--gray-light);
  padding: 70px 0;
}
.contacto .container {
  max-width: 720px;
}
.contacto__info h3 { color: var(--navy); font-style: normal; margin-top: 26px; }
.form-grid { display: grid; gap: 16px; margin-top: 20px; }
.form-grid input,
.form-grid textarea {
  padding: 13px 16px;
  border-radius: 4px;
  border: 1px solid #d8d8d8;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.btn {
  justify-self: center;
  background: var(--gray-mid);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--orange); color: var(--navy); }
.form-msg { margin-top: 14px; font-size: 0.9rem; }
.form-msg.ok { color: #2e7d32; }
.form-msg.error { color: #c62828; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-light); padding-top: 50px; }
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer img { height: 150px; margin-bottom: 50px; }
.site-footer h4 { color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 12px; }
.site-footer p { font-size: 0.9rem; color: #444; }

.index-footer { background: #ffffff; padding-top: 50px; }
.index-footer h4 { color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 12px; }
.index-footer p { font-size: 0.9rem; color: #444; }
.index-footer .container {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__social { display: flex; gap: 14px; margin-top: 14px; }
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.footer__social a:hover { background: var(--orange); color: var(--navy); }
.footer__bottom {
  background: var(--navy);
  color: #b8c2cf;
  padding: 16px 0;
  font-size: 0.82rem;
}
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom a { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nosotros .container,
  .contacto .container { grid-template-columns: 1fr; }
  .nosotros__imgs img:last-child { position: static; width: 100%; margin-top: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar .container { gap: 18px; font-size: 0.72rem; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 8px 12px rgba(0,0,0,0.08);
  }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
}

/* ---------- Por qué nos eligen ---------- */
.razones { padding: 90px 0; background: var(--gray-light); }
.razones .container { text-align: center; }

.razon-card {
  background: var(--white);
  padding: 34px 24px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
}
.razon-card__icono {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.razon-card__icono svg { width: 26px; height: 26px; }
.razon-card h3 { font-size: 1.02rem; font-style: normal; margin-bottom: 8px; }
.razon-card p { font-size: 0.9rem; color: #555; margin: 0; }


/* ---------- Carrusel (sección "Por qué nos eligen") ---------- */
.carrusel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  width: 100%;
}
.carrusel__track {
  flex: 1 1 0%;
  min-width: 0;              /* 👈 ESTA LÍNEA es el fix: sin ella el track no se encoge y nunca hay overflow que scrollear */
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.carrusel__track::-webkit-scrollbar { display: none; }

.carrusel__item {
  flex: 0 0 calc(25% - 18px); /* 4 tarjetas visibles en desktop */
  scroll-snap-align: start;
  text-align: left;
}

.carrusel__btn {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #d8d8d8;
  background: var(--white);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.carrusel__btn:hover { background: var(--orange); color: var(--navy); border-color: var(--orange); }

.carrusel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carrusel__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: #d8d8d8;
  cursor: pointer;
  padding: 0;
}
.carrusel__dots button.activo { background: var(--orange); }

@media (max-width: 980px) {
  .carrusel__item { flex-basis: calc(50% - 12px); }
}
@media (max-width: 640px) {
  .carrusel__item { flex-basis: 88%; }
  .carrusel__btn { width: 38px; height: 38px; font-size: 1.2rem; }
}
/* ---------- Widget flotante de WhatsApp ---------- */
.wa-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.wa-widget__boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 40px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.wa-widget__boton svg { color: #25D366; }
.wa-widget__boton:hover { background: var(--gray-light); }

.wa-widget__panel {
  display: none;
  flex-direction: column;
  width: 320px;
  max-width: 88vw;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,0.25);
}
.wa-widget__panel.abierto { display: flex; }

.wa-widget__header {
  background: #2196c9;
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wa-widget__header strong { font-family: var(--font-display); font-size: 1.05rem; }
.wa-widget__cerrar {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}

.wa-widget__agente {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #2196c9;
  color: var(--white);
}
.wa-widget__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.wa-widget__agente strong { display: block; font-size: 0.92rem; }
.wa-widget__agente span { font-size: 0.78rem; opacity: 0.9; }

.wa-widget__cuerpo {
  padding: 20px;
  background: var(--gray-light);
  min-height: 90px;
}
.wa-widget__burbuja {
  background: #e2e2e2;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: inline-block;
}

.wa-widget__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #e6e6e6;
}
.wa-widget__form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 8px 0;
}
.wa-widget__form button {
  background: var(--gray-light);
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.wa-widget__form button:hover { background: var(--orange); color: var(--navy); }

@media (max-width: 480px) {
  .wa-widget { right: 14px; bottom: 14px; }
  .wa-widget__boton span { display: none; }
}
/* ---------- Botón de subir (junto al flotante de WhatsApp) ---------- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 96px; /* queda arriba del botón de WhatsApp */
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, background .2s;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--orange); color: var(--navy); }

@media (max-width: 480px) {
  .scroll-top { right: 14px; bottom: 86px; width: 40px; height: 40px; }
}

/* ---------- Tarjetas de contacto rápido ---------- */
.contacto-tarjetas {
  padding: 50px 0 0;
  background: var(--gray-light);
}

.contacto-tarjetas__form {
  max-width: 620px;
  margin: 50px auto 0;
  text-align: left;
}

.contacto-tarjetas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contacto-tarjeta {
  background: var(--white);
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
}
.contacto-tarjeta__icono {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacto-tarjeta__icono svg { width: 22px; height: 22px; }
.contacto-tarjeta h3 {
  font-size: 1.02rem;
  font-style: normal;
  color: var(--navy);
  margin-bottom: 6px;
}
.contacto-tarjeta p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

@media (max-width: 720px) {
  .contacto-tarjetas__grid { grid-template-columns: 1fr; }
}

/* ---------- Botón "Más detalles" (sección Proyectos) ---------- */
.proyectos__toggle {
  display: inline-block;
  margin-top: 30px;
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.proyectos__toggle:hover,
.proyectos__toggle:active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}

/* ---------- Página de proyectos (proyectos.php) ---------- */
.proyectos-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 40px;
}
.proyectos-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.proyectos-hero__volver {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
}
.proyectos-hero__volver:hover { text-decoration: underline; }

.proyectos-detalle-pagina {
  padding: 60px 0 80px;
}
.proyectos-detalle-pagina .proyecto-detalle-card {
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e6e6e6;
}
.proyectos-detalle-pagina .proyecto-detalle-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.proyecto-detalle-card h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.proyecto-detalle-card > p {
  color: #555;
  margin-bottom: 20px;
}
.proyecto-detalle-card__galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.proyecto-detalle-card__galeria img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--gray-light);
}
/* ---------- Equipo con fotos ---------- */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  margin-top: 40px;
  text-align: center;
}
.equipo-persona__foto {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--gray-light);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* Mientras no hay foto real, se ve el círculo con las iniciales.
   En cuanto la imagen cargue bien, tapa automáticamente el texto de abajo. */
.equipo-persona__foto span {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}
.equipo-persona h3 {
  font-size: 1rem;
  font-style: normal;
  color: var(--navy);
  margin-bottom: 4px;
}
.equipo-persona p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* ---------- Empresas que han confiado ---------- */
.clientes {
  padding: 60px 0 80px;
  background: var(--gray-light);
  text-align: center;
}
.clientes h2 {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.5rem;
}
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  align-items: center;
}
.cliente-logo {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}
.cliente-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.9;
  transition: filter .2s, opacity .2s;
}
.cliente-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}