/* ===== arroba.es — tema claro cálido + 3D ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #faf5f3;      /* hueso cálido, tirando a rojo */
  --bg-soft-2: #f5ecea;
  --ink: #17120f;          /* casi negro cálido */
  --ink-2: #3d352f;
  --muted: #726a63;
  --line: rgba(23, 18, 15, 0.08);
  --line-2: rgba(23, 18, 15, 0.14);
  --card: #ffffff;

  /* marca: gama de ROJOS del arco del logo (#c0392b). Sin naranja. */
  --brand: #c0392b;
  --brand-2: #8e1b16;      /* rojo profundo, para texto sobre blanco */
  --brand-3: #e04a3c;      /* rojo claro */
  --grad: linear-gradient(100deg, #e04a3c, #c0392b 48%, #8e1b16);
  --grad-soft: linear-gradient(135deg, #fdeeeb, #fbe1dc);

  /* sombras suaves, cálidas y en capas (profundidad) */
  --sh-sm: 0 2px 6px rgba(23, 18, 15, 0.06);
  --sh-md: 0 10px 30px -12px rgba(192, 57, 43, 0.18), 0 4px 12px rgba(23, 18, 15, 0.05);
  --sh-lg: 0 40px 80px -30px rgba(192, 57, 43, 0.28), 0 12px 30px -12px rgba(23, 18, 15, 0.10);
  --sh-xl: 0 60px 120px -40px rgba(192, 57, 43, 0.32), 0 20px 50px -20px rgba(23, 18, 15, 0.12);

  --radius: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.025em; margin: 0; }
h2 { text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
strong { color: var(--ink); font-weight: 650; }
/* height:auto es imprescindible: las <img> llevan width/height en el HTML (evita saltos de
   maquetación al cargar) y sin esto el navegador mantiene ese alto fijo aunque el ancho se
   reduzca, deformando la imagen. */
img { max-width: 100%; height: auto; display: block; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Blobs de fondo (mesh cálido) ===== */
.blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.blob-1 { width: 620px; height: 620px; top: -220px; right: -140px; background: radial-gradient(circle, #ffcabf, transparent 70%); }
.blob-2 { width: 520px; height: 520px; top: 480px; left: -220px; background: radial-gradient(circle, #ffbcaf, transparent 70%); opacity: 0.45; }
.blob-3 { width: 680px; height: 680px; bottom: -260px; right: -180px; background: radial-gradient(circle, #ffd7cd, transparent 70%); opacity: 0.4; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto;
  /* Altura FIJA a propósito: si la cabecera encoge al hacer scroll, el contenido de
     debajo se desplaza, eso cambia el scroll y se vuelve a disparar el cambio. Vibra.
     Aquí solo animamos cosas que no afectan al espacio que ocupa. */
  padding: 0.8rem 1.5rem;
}
.nav.scrolled::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  z-index: -1;
}
.brand { display: inline-flex; align-items: center; }
/* el logo "encoge" con transform, que no ocupa espacio ni provoca reflujo */
.brand-logo { height: 46px; width: auto; transform-origin: left center; transition: transform 0.3s var(--ease); }
.nav.scrolled .brand-logo { transform: scale(0.84); }

.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  padding: 0.5rem 0.9rem; border-radius: 999px;
  color: var(--ink-2); font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--brand); background: var(--bg-soft); }
.nav-tel { font-weight: 700; color: var(--brand-2) !important; white-space: nowrap; }
.nav-tel:hover { background: var(--grad-soft) !important; }
.nav-cta {
  color: #fff !important;
  background: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(192, 57, 43, 0.6);
}
.nav-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid #f6c8bf;
  font-size: 0.82rem; color: var(--brand-2); font-weight: 600;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); } }

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; margin: 1.3rem 0 1.1rem; text-wrap: balance; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.9rem 0 1.8rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -10px rgba(192, 57, 43, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(192, 57, 43, 0.7); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

.hero-mini { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.4rem; }
.hero-mini > div:not(.sep) { display: grid; align-content: center; }
.hero-mini b { font-size: 1.05rem; font-weight: 750; color: var(--ink); }
.hero-mini span { font-size: 0.8rem; color: var(--muted); }
.hero-mini .sep { width: 1px; height: 34px; background: var(--line-2); align-self: center; display: none; }

/* ===== Escena 3D ===== */
.hero-scene { perspective: 1400px; display: grid; place-items: center; }
.scene {
  position: relative; width: 100%; max-width: 460px; height: 420px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg));
  transition: transform 0.35s var(--ease);
}
.scene-sm { max-width: 380px; height: 380px; transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -10deg)); }
.scene-layer { position: absolute; transform-style: preserve-3d; }

.glass-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: var(--sh-xl);
}
.card-main { top: 40px; left: 6%; width: 88%; padding: 1.2rem; transform: translateZ(26px); }
.panel-main { top: 30px; left: 4%; width: 90%; padding: 1.2rem; transform: translateZ(24px); }

.mini-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 0.8rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.mini-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mini-bar span:first-child { background: var(--brand); }
.mini-bar em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--muted); }
.mini-row { font-size: 0.86rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.mini-kpis > div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem; text-align: center; }
.mini-kpis b { display: block; font-size: 0.95rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-kpis small { font-size: 0.66rem; color: var(--muted); }
.mini-line { height: 9px; border-radius: 6px; background: var(--bg-soft-2); margin-bottom: 0.55rem; }
.mini-line.w80 { width: 80%; } .mini-line.w60 { width: 60%; }
.mini-chart { display: flex; align-items: flex-end; gap: 7px; height: 68px; padding-top: 0.4rem; }
.mini-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, #f5c6bc, var(--brand)); opacity: 0.9; }

.chip-float, .badge-float {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--sh-lg);
  font-weight: 650; font-size: 0.84rem; color: var(--ink);
  padding: 0.6rem 0.95rem; white-space: nowrap;
}
.chip-float { transform: translateZ(var(--z, 50px)); animation: bob 5s ease-in-out infinite; }
.chip-a { top: 6px; right: 2%; color: var(--brand-2); }
.chip-b { top: 46%; left: -9%; }
.chip-c { bottom: 30px; right: 8%; }
.chip-x { top: 6px; right: 0; color: var(--brand-2); }
.chip-y { bottom: 40px; left: -6%; }
.chip-p1 { top: 18px; right: -6%; color: var(--brand-2); }
.chip-p2 { bottom: 18px; left: -14%; }
.badge-float { top: 120px; right: -8%; display: flex; align-items: center; gap: 0.6rem; transform: translateZ(var(--z, 60px)); animation: bob 6s ease-in-out infinite 0.4s; }
.badge-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--grad-soft); color: var(--brand); font-size: 1rem; }
.badge-float b { display: block; font-size: 0.82rem; }
.badge-float small { font-size: 0.68rem; color: #16a34a; }
@keyframes bob {
  0%, 100% { transform: translateZ(var(--z, 50px)) translateY(0); }
  50% { transform: translateZ(var(--z, 50px)) translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) { .chip-float, .badge-float, .phone { animation: none !important; } }

/* ===== Trust ===== */
.trust { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 1rem; text-align: center; }
.trust-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1.6rem; }
.trust-row span { font-weight: 700; font-size: 1.05rem; color: #a99e95; transition: color 0.2s; }
.trust-row span:hover { color: var(--brand-2); }

/* ===== Secciones ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.9rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 780; margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* ===== Cards con tilt 3D ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  position: relative; padding: 1.8rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform 0.25s var(--ease), box-shadow 0.3s; }
.card:hover { box-shadow: var(--sh-lg); border-color: #f3c1b8; }
.card-icon {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 15px;
  background: var(--grad-soft); border: 1px solid #f9d5cf;
  font-size: 1.45rem; margin-bottom: 1.15rem; color: var(--brand);
  transform: translateZ(30px);
  box-shadow: 0 10px 22px -10px rgba(192, 57, 43, 0.4);
}
.card h3 { font-size: 1.22rem; margin-bottom: 0.6rem; font-weight: 700; transform: translateZ(18px); }
.card p { color: var(--muted); font-size: 0.99rem; transform: translateZ(10px); }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 650; font-size: 0.93rem; color: var(--brand); transform: translateZ(18px); }
.card-link:hover { color: var(--brand-2); }

/* ===== Feature (Gestiona / Plateme) ===== */
.feature.alt { background: var(--bg-soft); border-radius: 32px; }
.feature-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-grid.reverse .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; margin-bottom: 1rem; }
.feature-lead { color: var(--muted); font-size: 1.14rem; margin-bottom: 1.6rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-2); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; color: #fff;
  background: var(--grad); box-shadow: 0 6px 14px -6px rgba(192, 57, 43, 0.6);
}
.soon { margin-top: 1.5rem; display: inline-block; padding: 0.55rem 1.05rem; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.92rem; box-shadow: var(--sh-sm); }
.feature-visual { perspective: 1400px; display: grid; place-items: center; }

/* Phone Plateme */
.phone {
  width: 244px; height: 500px; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #2a2320, #17120f);
  position: relative; box-shadow: var(--sh-xl);
  transform: translateZ(22px);
  animation: bob 6.5s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 88px; height: 20px; background: #17120f; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 30px; background: radial-gradient(120% 55% at 50% 0%, #fff1ef, #ffffff 60%); padding: 2.4rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; overflow: hidden; }
.chat { max-width: 84%; padding: 0.55rem 0.8rem; border-radius: 16px; font-size: 0.82rem; box-shadow: var(--sh-sm); }
.chat.you { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink-2); }
.chat.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.plate { margin-top: auto; align-self: center; background: #fff; color: #17120f; font-weight: 800; letter-spacing: 0.12em; padding: 0.45rem 1rem; border-radius: 8px; border: 2px solid #17120f; font-size: 0.95rem; box-shadow: inset 5px 0 0 #1d4ed8; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 2rem 1rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-md); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.stat b { display: block; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 820; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ===== Contacto ===== */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2.2rem, 5vw, 3.8rem); border-radius: 28px;
  background: var(--grad); color: #fff;
  box-shadow: var(--sh-xl);
  position: relative; overflow: hidden;
}
.contact-card::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); top: -180px; right: -120px; }
.contact-card .kicker { color: rgba(255, 255, 255, 0.9); -webkit-text-fill-color: rgba(255, 255, 255, 0.9); background: none; }
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0.5rem 0; position: relative; }
.contact-card p { color: rgba(255, 255, 255, 0.92); position: relative; }
.contact-actions { display: grid; gap: 0.8rem; justify-items: start; position: relative; }
.contact-actions .btn-primary { background: #fff; color: var(--brand-2); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.25); }
.contact-actions .btn-primary:hover { transform: translateY(-2px); filter: none; }
.contact-meta { color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); margin-top: 2rem; background: var(--bg-soft); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.6rem 1.5rem; display: grid; gap: 0.6rem; }
.footer-logo { height: 52px; width: auto; }
.footer-legal { color: var(--ink-2); font-size: 0.9rem; }
.footer-copy { color: var(--muted); font-size: 0.84rem; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   v3 — fotografía real, secciones a sangre y páginas interiores
   ===================================================================== */

/* ===== Hero con foto ===== */
.hero-stage { perspective: 1500px; display: grid; place-items: center; }
.scene-hero { max-width: 540px; height: 460px; }
.photo-frame {
  margin: 0; top: 30px; left: 0; width: 100%;
  border-radius: 24px; overflow: hidden;
  background: var(--bg-soft);
  border: 6px solid #fff;
  box-shadow: var(--sh-xl);
  transform: translateZ(18px);
}
.photo-frame img { width: 100%; height: 340px; object-fit: cover; }
.card-float {
  bottom: -6px; left: -8%; width: 74%; padding: 1rem 1.1rem;
  transform: translateZ(var(--z, 55px));
  animation: bob 7s ease-in-out infinite;
}
.card-float .mini-chart { height: 46px; }

/* ===== Marquee de tecnologías ===== */
.marquee-wrap { padding: 1rem 0 2.5rem; text-align: center; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap; animation: slide 42s linear infinite; }
.marquee-track span { font-weight: 750; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: #b3a79d; }
.marquee-track i { color: var(--brand); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ===== Grid de servicios con foto ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--sh-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: #f3c1b8; }
.svc-media { overflow: hidden; background: var(--bg-soft-2); }
.svc-media img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.6s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.svc-tag {
  align-self: flex-start; margin-bottom: 0.7rem;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid #f9d5cf;
  font-size: 0.72rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-2);
}
.svc-body h3 { font-size: 1.2rem; font-weight: 720; margin-bottom: 0.55rem; }
.svc-body p { color: var(--muted); font-size: 0.98rem; }
.svc-body .card-link { margin-top: auto; padding-top: 1rem; }
.svc-lg { grid-column: span 2; flex-direction: row; }
.svc-lg .svc-media { flex: 1.1; }
.svc-lg .svc-media img { height: 100%; min-height: 260px; }
.svc-lg .svc-body { flex: 1; justify-content: center; padding: 2rem; }
.svc-lg .svc-body h3 { font-size: 1.5rem; }
.svc-more { margin-top: 2rem; text-align: center; color: var(--muted); }
.svc-more a { color: var(--brand); font-weight: 650; white-space: nowrap; }
.svc-more a:hover { color: var(--brand-2); }

/* ===== Showcase a sangre (foto grande + capa cálida) ===== */
.showcase { position: relative; isolation: isolate; margin: clamp(3rem, 7vw, 5rem) 0; overflow: hidden; }
.showcase-media { position: absolute; inset: 0; z-index: -2; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(97, 25, 13, 0.93) 0%, rgba(150, 42, 30, 0.78) 38%, rgba(192, 57, 43, 0.34) 72%, rgba(192, 57, 43, 0.12) 100%);
}
.showcase-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 9vw, 6.5rem) 1.5rem; }
.showcase-copy { max-width: 640px; color: #fff; }
.showcase-copy h2 { font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 800; margin-bottom: 1.1rem; }
.showcase-copy > p { color: rgba(255, 255, 255, 0.92); font-size: 1.12rem; margin-bottom: 1.6rem; }
.showcase-copy strong { color: #fff; }
.kicker.light { background: none; -webkit-text-fill-color: #ffcfc4; color: #ffcfc4; }
.ticks.light li { color: rgba(255, 255, 255, 0.94); }
.ticks.light li::before { background: #fff; color: var(--brand-2); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.4); }
.btn-light { background: #fff; color: var(--brand-2); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.3); margin-top: 1.8rem; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.36); }

/* ===== Pila de fotos con profundidad ===== */
.photo-stack { position: relative; width: 100%; max-width: 460px; padding-bottom: 2rem; }
.photo-card { margin: 0; border-radius: 20px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--sh-lg); background: #fff; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-back { transform: rotate(-3deg) translateX(-4%); }
.ps-back img { height: 240px; }
.ps-front { position: relative; margin-top: -70px; margin-left: 16%; width: 84%; transform: rotate(2deg); box-shadow: var(--sh-xl); }
.ps-front img { height: 220px; }
.chip-solid {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--sh-lg); font-weight: 650; font-size: 0.84rem;
  padding: 0.6rem 0.95rem; white-space: nowrap; display: inline-block;
}
.ps-chip { position: absolute; left: -6%; bottom: 0.5rem; color: var(--brand-2); animation: bob 6s ease-in-out infinite; --z: 0px; }

/* ===== Cómo trabajamos ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
.step { position: relative; padding: 1.9rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-md); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.step b { display: block; font-size: 2.1rem; font-weight: 820; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.5rem; }
.step h3 { font-size: 1.12rem; font-weight: 720; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ===== Nosotros ===== */
.about-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 3rem; }
.about-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 780; margin-bottom: 1rem; }
.about-copy .feature-lead + .feature-lead { margin-top: 1rem; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; border: 6px solid #fff; box-shadow: var(--sh-xl); }
.about-photo figcaption { margin-top: 0.8rem; text-align: center; font-size: 0.86rem; color: var(--muted); }

/* ===== Contacto con formulario ===== */
.contact-card { align-items: stretch; }
.contact-copy { flex: 1 1 320px; position: relative; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; position: relative; }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; color: rgba(255, 255, 255, 0.94); font-size: 0.98rem; }
.contact-list span { opacity: 0.8; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form {
  flex: 1 1 380px; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 22px; padding: 1.5rem;
}
.field { display: grid; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 650; color: rgba(255, 255, 255, 0.92); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.7rem 0.9rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.94);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28); }
.field input:invalid:not(:placeholder-shown) { border-color: #ffd0c4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-foot .btn-light { margin-top: 0; }
.form-note { font-size: 0.88rem; color: #fff; }
.form-note.err { color: #ffe0d6; font-weight: 650; }

/* ===== Footer grande ===== */
.footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; }
.footer-brand { display: grid; gap: 0.9rem; align-content: start; }
.footer-pitch { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer-col { display: grid; gap: 0.5rem; align-content: start; }
.footer-col h3 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.3rem; }
.footer-col a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand); }
.footer-legal-bar {
  max-width: var(--maxw); margin: 0 auto; padding: 1.3rem 1.5rem 2.4rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
}
.footer-legal-bar p { color: var(--muted); font-size: 0.84rem; }

/* ===== Páginas interiores ===== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(97, 25, 13, 0.93), rgba(163, 45, 32, 0.8) 48%, rgba(192, 57, 43, 0.28));
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) 1.5rem; color: #fff; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; margin: 1rem 0 1rem; max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, 0.94); max-width: 620px; }
.breadcrumb { font-size: 0.86rem; color: rgba(255, 255, 255, 0.82); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

.svc-detail { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-detail:last-of-type { border-bottom: 0; }
.svc-detail.reverse .svc-detail-copy { order: 2; }
.svc-detail-copy h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 780; margin-bottom: 0.9rem; }
.svc-detail-copy > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.4rem; }
.svc-detail figure { margin: 0; }
.svc-detail figure img { width: 100%; height: 340px; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--sh-xl); }

.cta-band {
  max-width: var(--maxw); margin: 0 auto 4rem; padding: clamp(2rem, 5vw, 3rem);
  border-radius: 28px; background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 760; }
.cta-band p { color: var(--muted); margin-top: 0.4rem; }

/* ===== Clientes de referencia ===== */
.clientes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cliente {
  padding: 2.2rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-md);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.cliente:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: #f3c1b8; }
.cliente h3 { font-size: 1.55rem; font-weight: 780; margin-bottom: 0.8rem; }
.cliente-que { color: var(--muted); font-size: 1rem; }
.cliente-cifras {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
  margin: 1.6rem 0; padding: 1.2rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cliente-cifras b {
  display: block; font-size: 1.5rem; font-weight: 820; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cliente-cifras span { font-size: 0.82rem; color: var(--muted); }
.cliente-hacemos { margin-top: auto; font-size: 0.98rem; color: var(--ink-2); }
.cliente-hacemos a { color: var(--brand); font-weight: 650; }
.cliente-hacemos a:hover { color: var(--brand-2); }

/* ===== Capturas reales de producto ===== */
/* Pantalla del móvil ocupada por una captura de la app */
.phone-captura { padding: 0; overflow: hidden; background: #000; }
.phone-captura img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Trío de pantallas de móvil */
.pantallas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; justify-items: center; }
.pantalla { margin: 0; max-width: 260px; }
.pantalla img {
  width: 100%; border-radius: 26px;
  border: 8px solid #17120f; background: #17120f;
  box-shadow: var(--sh-xl);
}
.pantalla figcaption { margin-top: 0.9rem; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* Captura grande de pantalla ancha */
.captura-ancha { margin: 0; }
.captura-ancha img {
  width: 100%; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--sh-xl);
}
.captura-ancha figcaption { margin-top: 0.9rem; text-align: center; font-size: 0.88rem; color: var(--muted); }
.captura-alta { max-width: 420px; }
.capturas-par { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }

/* Rejilla de trabajos hechos (webs de clientes) */
.trabajos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.trabajo { margin: 0; }
.trabajo img {
  width: 100%; height: 300px; object-fit: cover; object-position: top center;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--sh-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
.trabajo:hover img { transform: translateY(-6px); box-shadow: var(--sh-xl); }
.trabajo figcaption { margin-top: 1rem; }
.trabajo b { display: block; font-size: 1.1rem; font-weight: 720; }
.trabajo span { color: var(--muted); font-size: 0.95rem; }

/* Hueco de foto pendiente: degradado cálido de marca en vez de imagen rota */
.sin-foto { background: linear-gradient(135deg, #ffe6e1, #f7c3ba 55%, #e79f92); position: relative; }
/* estos dos ya son capas absolutas de fondo: no deben salir del flujo que tienen */
.page-hero-media.sin-foto, .showcase-media.sin-foto { position: absolute; }
.page-hero-media.sin-foto::after, .showcase-media.sin-foto::after { content: none; } /* ya hay degradado encima */
.sin-foto img { visibility: hidden; }
.sin-foto::after {
  content: "@"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; color: rgba(192, 57, 43, 0.18);
}

/* ===== WhatsApp ===== */
/* icono en la lista de contacto: hereda el color del texto (blanco sobre la tarjeta) */
.ico-wa { flex: none; opacity: 0.85; }
.contact-list li a { display: inline-flex; align-items: center; }

/* Botón flotante: verde propio de WhatsApp, que se reconozca de un vistazo */
.wa-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.15rem; border-radius: 999px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.75), 0 4px 12px rgba(23, 18, 15, 0.14);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(37, 211, 102, 0.85), 0 6px 16px rgba(23, 18, 15, 0.16); }
.wa-fab svg { flex: none; }
@media (max-width: 680px) {
  /* en móvil solo el icono, para no tapar contenido */
  .wa-fab { padding: 0.85rem; }
  .wa-fab-txt { display: none; }
}

/* ===== Responsive v3 ===== */
@media (max-width: 960px) {
  .clientes { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-lg { grid-column: span 2; flex-direction: column; }
  .svc-lg .svc-media img { min-height: 0; height: 220px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .svc-detail, .svc-detail.reverse { grid-template-columns: 1fr; }
  .svc-detail.reverse .svc-detail-copy { order: 0; }
  .scene-hero { max-width: 460px; height: 420px; }
  .photo-frame img { height: 300px; }
}
@media (max-width: 680px) {
  .pantallas { grid-template-columns: 1fr; gap: 2.5rem; }
  .trabajos, .capturas-par, .clientes { grid-template-columns: 1fr; }
  .svc-grid, .svc-lg { grid-template-columns: 1fr; }
  .svc-lg { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .scene-hero { height: 380px; }
  .photo-frame img { height: 250px; }
  .card-float { width: 88%; left: 0; }
  .ps-front { margin-left: 8%; width: 92%; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-scene { order: -1; margin-bottom: 1rem; }
  .hero-stage { margin-top: 2rem; }
  .scene { max-width: 420px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    padding: 5rem 1.5rem 1.5rem; margin: 0;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg);
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav-toggle { display: flex; z-index: 60; }
  .cards { grid-template-columns: 1fr; }
  .scene, .scene-sm { height: 360px; }
  .hero-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-mini .sep { display: none; }
}
