/* ============================================
   EDP STUDIO — COMPONENTS
   Botones, links, CTAs, badges
   ============================================ */

/* ───── BOTONES ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.2rem;
  border-radius: 999px;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-osmo);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-osmo);
  z-index: 0;
}

.btn--primary:hover::before {
  transform: translateY(0);
}

.btn--primary span,
.btn--primary svg {
  position: relative;
  z-index: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--gray-700);
  transition: border-color 0.3s var(--ease-osmo),
              color 0.3s var(--ease-osmo);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--ink);
}

/* ───── LINK CON UNDERLINE ANIMADO ───── */
.link-underline {
  position: relative;
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 2px;
  cursor: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.4s var(--ease-osmo);
}

.link-underline:hover::after {
  transform: scaleX(0);
  transform-origin: left;
  animation: link-underline-redraw 0.8s var(--ease-osmo) 0.4s forwards;
}

@keyframes link-underline-redraw {
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ───── BADGE / CHIP ───── */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--gray-700);
  border-radius: 999px;
  color: var(--gray-300);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.chip--cyan    { border-color: var(--cyan);    color: var(--cyan); }
.chip--magenta { border-color: var(--magenta); color: var(--magenta); }
.chip--yellow  { border-color: var(--yellow);  color: var(--yellow); }
.chip--orange  { border-color: var(--orange);  color: var(--orange); }

.chip--filled {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

/* ───── SECTION LABEL ───── */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-2);
}

.section-label::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--orange);
}

/* ───── CTA ACTIONS (compartido entre páginas) ───── */
.cta-final__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* ───── ARROW ICON ───── */
.arrow-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  transition: transform 0.3s var(--ease-osmo);
}

.btn:hover .arrow-icon,
a:hover .arrow-icon {
  transform: translateX(4px);
}


/* ───── AURORA — capas de fondo reutilizables ─────
   Usadas en .hero, .estudio-hero, .trabajo-hero.
   El section padre requiere: position:relative; isolation:isolate; overflow:hidden.
   El __inner de contenido requiere: position:relative; z-index:4.
   ───── */
.hero__base {
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: 0;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-blend-mode: screen;
  filter: blur(8px) saturate(1.15);
  z-index: 1;
  will-change: background-image;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(13,13,13,0.88) 92%);
  z-index: 2;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .hero__mesh { animation: none !important; }
}


/* ───── BOTÓN FLOTANTE WHATSAPP ───── */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: var(--z-overlay);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease-osmo), box-shadow 0.3s ease;
  cursor: pointer;
}

.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
}

@media (max-width: 600px) {
  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ===== CLIENTES — logo wall (text left / logos right, truus-style) =====
   - Explicit card heights (no aspect-ratio): iOS Safari mis-sizes aspect-ratio
     on flex items and blows the logos up to full screen.
   - Spacing via card margin (NOT flex gap): translate(-50%) then lands EXACTLY
     on a duplicated card, so the loop is perfectly seamless (no jump). */
.clients { padding: 120px 6vw; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 64px; }
.clients__intro { flex: 0 1 440px; text-align: left; margin: 0; }
.clients__intro h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; margin-top: 14px; font-weight: 700; }
.cw { flex: 0 1 600px; position: relative; height: 620px; display: flex; align-items: flex-start; gap: 18px; overflow: hidden; margin: 0;
  -webkit-mask: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }
.cw__track { flex: 1; display: flex; flex-direction: column; will-change: transform; }
.cw__track.up { animation: cwUp 30s linear infinite; }
.cw__track.down { animation: cwDown 30s linear infinite; }
@keyframes cwUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes cwDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes cwLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cwRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.cw__card { flex: none; width: 100%; height: 230px; margin-bottom: 18px; border-radius: 18px; overflow: hidden; background: #f4f1ea;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 34px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center; padding: 22px; }
.cw__card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 760px) {
  .clients { flex-direction: column; align-items: stretch; gap: 28px; padding: 70px 0; }
  .clients__intro { flex: none; padding: 0 6vw; text-align: left; }
  .cw { flex: none; flex-direction: column; height: auto; width: 100%; max-width: none; gap: 12px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .cw__track { flex: none; flex-direction: row; }
  .cw__track.up { animation: cwRight 26s linear infinite; }
  .cw__track.down { animation: cwLeft 26s linear infinite; }
  .cw__card { width: 130px; height: 130px; margin-bottom: 0; margin-right: 12px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cw__track { animation: none !important; } }


/* ───────────────────────────────────────────────
   FOOTER MÍNIMO (compartido — index, trabajo, estudio)
   ─────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: var(--z-content);
  border-top: 1px solid var(--gray-800);
  padding: 2rem var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__logo img {
  height: 28px;
  width: auto;
  display: block;
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.site-footer__made {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

.site-footer__made a {
  color: var(--gray-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.site-footer__made a:hover {
  color: var(--orange);
  border-color: var(--orange);
}
