/* =============================================================
   Capa «minimalismo + UI espacial» — PREVISUALIZACIÓN
   Se carga encima de styles.css (no lo modifica) y no cambia ni un color
   de la paleta: solo superficies, profundidad, radios, luz y espacio.
   Para quitarla basta con no enlazar este archivo.
   ============================================================= */
:root {
  --glass:        rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-line:   rgba(255, 255, 255, .85);
  --hair:         rgba(3, 44, 40, .08);
  --r-lg: 26px;
  --r-md: 18px;
  --depth-1: 0 1px 1px rgba(3,44,40,.04), 0 8px 24px -10px rgba(3,44,40,.14);
  --depth-2: 0 1px 1px rgba(3,44,40,.04), 0 18px 40px -16px rgba(3,44,40,.22), 0 40px 80px -40px rgba(3,44,40,.18);
  --depth-3: 0 2px 2px rgba(3,44,40,.05), 0 30px 60px -20px rgba(3,44,40,.30), 0 70px 120px -50px rgba(169,90,57,.28);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Tipografía: más aire, trazo más fino ---------- */
.section-title { font-weight: 500; letter-spacing: -.015em; line-height: 1.08; }
.section-head { margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem .95rem .42rem .8rem;
  border: 1px solid var(--hair); border-radius: 999px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .68rem; letter-spacing: .2em;
}
.kicker::before { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(169,90,57,.16); }
.section-head .section-title::after { height: 1px; opacity: .6; }

/* ---------- Atmósfera: luz ambiental sobre las secciones claras ---------- */
.advantages, .team, .offices, .testimonials, .cases { position: relative; isolation: isolate; overflow: clip; }
.advantages::before, .team::before, .offices::before, .testimonials::before {
  content: ""; position: absolute; inset: -10% -10% auto auto; width: 56vw; height: 56vw; max-width: 760px; max-height: 760px;
  z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228,145,101,.20), rgba(228,145,101,0) 70%);
  filter: blur(10px);
}
.advantages::after, .team::after, .offices::after {
  content: ""; position: absolute; inset: auto auto -12% -10%; width: 50vw; height: 50vw; max-width: 680px; max-height: 680px;
  z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,70,63,.12), rgba(10,70,63,0) 70%);
}

/* ---------- Navegación: píldora de cristal flotante ---------- */
.nav { padding-block: 1rem; }
.nav.is-scrolled {
  inset-inline: clamp(.6rem, 3vw, 2.4rem); top: .7rem;
  padding-block: .55rem;
  border-radius: 999px;
  background: rgba(247,243,237,.80);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-line);
  box-shadow: var(--depth-2), inset 0 1px 0 rgba(255,255,255,.9);
}
.nav.is-scrolled .nav-inner { padding-inline: .4rem; }
.nav-link { font-weight: 500; }
.nav-cta {
  border-radius: 999px; background: rgba(255,255,255,.55);
  border: 1px solid var(--hair);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, box-shadow .3s, transform .4s var(--ease-soft);
}
.nav-cta:hover { background: var(--white); box-shadow: var(--depth-1); transform: translateY(-1px); }

/* ---------- Botones: cobre con gradiente y halo ---------- */
.btn { padding: 1rem 2rem; font-weight: 500; letter-spacing: .02em; }
.btn-primary {
  color: var(--paper);
  background: linear-gradient(135deg, var(--copper-mid) 0%, var(--copper) 55%, var(--copper-deep) 100%);
  box-shadow: 0 10px 28px -10px rgba(169,90,57,.65), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.12);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--copper-claro, #e49165) 0%, var(--copper-mid) 55%, var(--copper) 100%); box-shadow: 0 18px 40px -12px rgba(169,90,57,.75), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost { background: rgba(255,255,255,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--hair); }

/* ---------- Superficies de cristal con profundidad ---------- */
.advantage-card, .case-card, .testimonial-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--depth-1), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  transform-style: preserve-3d;
}
.advantage-card:hover, .case-card:hover, .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--depth-3), inset 0 1px 0 rgba(255,255,255,1);
}
/* foco de luz que sigue al puntero (lo mueve espacial.js) */
.advantage-card::after, .case-card::after, .testimonial-card::after, .team-photo .spot {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(255,255,255,.55), rgba(255,255,255,0) 55%);
  opacity: 0; transition: opacity .4s;
}
.advantage-card:hover::after, .case-card:hover::after, .testimonial-card:hover::after, .team-card:hover .team-photo .spot { opacity: 1; }
.advantage-num {
  display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: 1.6rem;
  border-radius: 50%; border: 1px solid var(--hair); background: rgba(255,255,255,.7);
  font-size: .72rem; letter-spacing: .04em;
}

/* ---------- Equipo: retratos como paneles flotantes ---------- */
.team-grid { gap: clamp(1.1rem, 2vw, 1.8rem); }
.team-photo {
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--depth-1);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
  background: linear-gradient(180deg, #ffffff 0%, #f4efe8 100%);
}
.team-card:hover .team-photo { transform: translateY(-8px) scale(1.012); box-shadow: var(--depth-3); }
.team-photo img { filter: grayscale(.08) contrast(1.02); }
.team-photo::after { height: 2px; }
.team-card h3 { font-weight: 500; letter-spacing: -.01em; }
.team-link { border-radius: 999px; }
.team-link-mail {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hair);
}
.team-link-wa { box-shadow: 0 8px 20px -8px rgba(37,160,90,.55), inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- Oficinas: mosaico con marcos suaves ---------- */
.offices-grid { gap: clamp(.6rem, 1.4vw, 1.1rem); }
.office-photo {
  border-radius: var(--r-md); border: 1px solid var(--glass-line);
  box-shadow: var(--depth-1);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.office-photo:hover { transform: translateY(-5px); box-shadow: var(--depth-2); }

/* ---------- Secciones oscuras: paneles de vidrio ahumado + resplandor ---------- */
.stats, .lema, .contact { position: relative; isolation: isolate; }
.stats::before, .lema::before { pointer-events: none; }
.stat {
  padding: clamp(1.1rem, 2vw, 1.8rem);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.contact-panel, .contact-card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
}
.lema::after, .contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(212,135,83,.16), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(228,145,101,.10), transparent 70%);
}

/* ---------- Formularios ---------- */
input, textarea, select { border-radius: 14px; }

/* ---------- Chat y WhatsApp flotantes: cristal ---------- */
.chat-widget button, .chat-widget a { box-shadow: 0 14px 34px -10px rgba(3,44,40,.45), inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- Movimiento: entrada con profundidad (si el usuario lo permite) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .advantage-card, .team-card, .case-card, .testimonial-card { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .advantage-card, .case-card, .testimonial-card, .team-photo, .office-photo { transition: none; }
}

/* Mapa de contacto con las mismas esquinas suaves */
.contact iframe { border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.14) !important; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55); }
