/*
Theme Name: Mafia del Arte
Theme URI: https://mafiadelarte.com
Author: Mafia del Arte
Author URI: https://mafiadelarte.com
Description: Landing page de una sola pagina para Mafia del Arte, estudio creativo de elite (estetica Dossier Negro). Fotografia, video, diseno, redes (Cortisol Studio), dron, astrofotografia, peritaje y asesoramiento. Animaciones resilientes y graficos interactivos.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mafia-del-arte
*/

/* ============================================================
     TOKENS
     ============================================================ */
  :root {
    --bg:        #0a0908;   /* negro cálido */
    --bg-2:      #0f0d0c;
    --surface:   #151210;
    --surface-2: #1c1815;
    --glass:     rgba(30,25,22,0.5);
    --glass-brd: rgba(244,239,230,0.09);
    --ink:       #f4efe6;
    --ink-soft:  #cfc7b8;
    --muted:     #9c9284;   /* ~5:1 sobre --bg */
    --accent:    #ff3b2f;   /* bermellón */
    --accent-2:  #ff5a4d;
    --gold:      #d9b25f;
    --line:      rgba(244,239,230,0.10);
    --line-2:    rgba(244,239,230,0.055);
    --wa:        #25d366;

    --maxw: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.75rem);
    --radius: 16px;
    --radius-lg: 24px;

    /* Curvas de easing premium */
    --e-out:  cubic-bezier(0.22, 1, 0.36, 1);
    --e-io:   cubic-bezier(0.7, 0, 0.2, 1);
    --e-soft: cubic-bezier(0.16, 1, 0.3, 1);

    --z-nav: 100; --z-float: 90; --z-progress: 120; --z-menu: 200;
  }

  /* ============================================================
     BASE
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  h1,h2,h3,h4 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
  p { margin: 0; text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  ul { margin: 0; padding: 0; list-style: none; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: var(--accent); color: #fff; }

  .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
  .section-pad { padding-block: clamp(5rem, 12vw, 10rem); }
  section { position: relative; }

  /* Grain fijo */
  .grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  /* Viñeta cinematográfica fija */
  .vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 240px 40px rgba(0,0,0,0.75); }

  /* ============================================================
     SCROLL PROGRESS — nativo (scroll-driven) + fallback JS
     ============================================================ */
  .progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--accent), var(--gold)); z-index: var(--z-progress); }
  @supports (animation-timeline: scroll()) {
    .progress { animation: progressGrow linear both; animation-timeline: scroll(root block); }
  }
  @keyframes progressGrow { to { transform: scaleX(1); } }

  /* ============================================================
     ANIMACIÓN RESILIENTE DE REVEALS
     Estado oculto SOLO bajo .js. Reveal por @keyframes con
     estado final explícito en .revealed (no depende del fill).
     ============================================================ */
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].revealed {
    opacity: 1;
    animation: reveal-up 0.9s var(--e-out) forwards;
  }
  .js [data-reveal].r-mask.revealed { opacity: 1; animation: reveal-mask 1s var(--e-io) forwards; }
  .js [data-reveal].r-fade.revealed  { opacity: 1; animation: reveal-fade 1s var(--e-out) forwards; }
  .js [data-reveal].force-final { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; animation: none !important; }
  [data-delay="1"] { animation-delay: 0.08s !important; }
  [data-delay="2"] { animation-delay: 0.16s !important; }
  [data-delay="3"] { animation-delay: 0.24s !important; }
  [data-delay="4"] { animation-delay: 0.32s !important; }
  [data-delay="5"] { animation-delay: 0.40s !important; }

  @keyframes reveal-up   { from { opacity: 0; transform: translateY(34px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes reveal-mask { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

  @media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; animation: none !important; }
    .kenburns, .marquee-track, .wa-float::after { animation: none !important; }
  }

  /* ============================================================
     LABELS / KICKERS (dossier)
     ============================================================ */
  .kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Manrope"; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
  .kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.75; }
  .file-no { font-family: "Manrope"; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

  /* ============================================================
     BUTTONS
     ============================================================ */
  .btn { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; transition: transform 0.55s var(--e-out), background-color 0.4s var(--e-out), color 0.4s var(--e-out), border-color 0.4s; will-change: transform; }
  .btn:active { transform: scale(0.97); }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-2); }
  .btn-ghost { color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { border-color: var(--ink-soft); background: rgba(255,255,255,0.03); }
  .btn .ico { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; flex: none; background: rgba(0,0,0,0.2); transition: transform 0.55s var(--e-out); }
  .btn-ghost .ico { background: rgba(255,255,255,0.07); }
  .btn:hover .ico { transform: translate(2px, -2px); }
  .btn svg { width: 15px; height: 15px; }
  .link-underline { position: relative; }
  .link-underline::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0; background: currentColor; transition: width 0.45s var(--e-out); }
  .link-underline:hover::after { width: 100%; }

  /* ============================================================
     NAV
     ============================================================ */
  header.nav { position: fixed; top: 0; inset-inline: 0; z-index: var(--z-nav); border-bottom: 1px solid transparent; transition: background-color 0.4s var(--e-out), border-color 0.4s, backdrop-filter 0.4s; }
  header.nav.scrolled { background: rgba(10,9,8,0.7); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line-2); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
  .brand { display: flex; align-items: center; gap: 0.65rem; font-family: "Bricolage Grotesque"; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
  .brand .mark { width: 32px; height: 32px; border-radius: 9px; flex: none; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.05rem; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
  .brand small { display: block; color: var(--muted); font-weight: 500; font-family: "Manrope"; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; }
  .nav-links { display: flex; align-items: center; gap: 1.9rem; }
  .nav-links a { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; transition: color 0.3s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta { display: flex; align-items: center; gap: 0.9rem; }
  .nav-cta .btn { padding: 0.58rem 1.05rem; font-size: 0.88rem; }
  .burger { display: none; width: 46px; height: 46px; border-radius: 11px; position: relative; }
  .burger span { position: absolute; left: 12px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.45s var(--e-out), opacity 0.3s; }
  .burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: rgba(8,7,6,0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--e-out), visibility 0.5s; }
  body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
  .mobile-menu a { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -0.03em; padding-block: 0.35rem; color: var(--ink); opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--e-out), transform 0.6s var(--e-out); }
  body.menu-open .mobile-menu a { opacity: 1; transform: none; }
  body.menu-open .mobile-menu a:nth-child(1){transition-delay:.06s} body.menu-open .mobile-menu a:nth-child(2){transition-delay:.11s} body.menu-open .mobile-menu a:nth-child(3){transition-delay:.16s} body.menu-open .mobile-menu a:nth-child(4){transition-delay:.21s} body.menu-open .mobile-menu a:nth-child(5){transition-delay:.26s} body.menu-open .mobile-menu a:nth-child(6){transition-delay:.31s}
  .mobile-menu .mm-cta { margin-top: 2rem; }

  /* ============================================================
     HERO
     ============================================================ */
  .hero { min-height: 100dvh; display: flex; align-items: flex-end; padding-top: 74px; padding-bottom: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; z-index: 0; }
  .hero-bg .media { position: absolute; inset: -6% ; background-size: cover; background-position: center; }
  .kenburns { animation: kenburns 22s var(--e-soft) both alternate; }
  @keyframes kenburns { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.14) translateY(-2%); } }
  .hero-bg::after { content: ""; position: absolute; inset: 0; background:
      linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.35) 35%, rgba(10,9,8,0.85) 78%, var(--bg) 100%),
      radial-gradient(120% 80% at 15% 20%, transparent 40%, rgba(10,9,8,0.6) 100%); }
  .hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.42; }
  .hero-bg .orb-1 { width: 42vw; height: 42vw; top: -12vw; right: -6vw; background: radial-gradient(circle, rgba(255,59,47,0.5), transparent 65%); }
  .hero-inner { position: relative; z-index: 2; width: 100%; }
  .hero-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: clamp(2rem, 6vw, 4rem); flex-wrap: wrap; }
  .hero h1 { font-size: clamp(3rem, 9vw, 6rem); max-width: 16ch; font-weight: 800; }
  .hero h1 em { font-style: italic; color: var(--accent); }
  .hero .sub { margin-top: 1.6rem; max-width: 54ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); }
  .hero .cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
  .hero .trust { margin-top: clamp(2.6rem, 6vw, 4rem); display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 2rem; }
  .hero .trust .stat b { font-family: "Bricolage Grotesque"; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; display: block; letter-spacing: -0.04em; }
  .hero .trust .stat span { color: var(--muted); font-size: 0.82rem; }

  /* ============================================================
     MANIFIESTO
     ============================================================ */
  .manifesto { background: var(--bg-2); border-block: 1px solid var(--line-2); }
  .manifesto .big { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.12; max-width: 22ch; }
  .manifesto .big span.hl { color: var(--accent); }
  .manifesto .big span.dim { color: var(--muted); }
  .manifesto-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
  .manifesto .aside p { color: var(--ink-soft); margin-bottom: 1.1rem; }
  .manifesto .aside p strong { color: var(--ink); font-weight: 600; }
  .sig { font-family: "Bricolage Grotesque"; font-style: italic; font-size: 1.3rem; color: var(--gold); margin-top: 1.5rem; }

  /* ============================================================
     SECTION HEADER
     ============================================================ */
  .sec-head { max-width: 34ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
  .sec-head.center { margin-inline: auto; text-align: center; }
  .sec-head.center .kicker { justify-content: center; }
  .sec-head h2 { font-size: clamp(2.1rem, 5.5vw, 3.7rem); margin-top: 1.1rem; font-weight: 700; }
  .sec-head p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 50ch; }
  .sec-head.center p { margin-inline: auto; }

  /* ============================================================
     GLASS + TILT CARDS (servicios)
     ============================================================ */
  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
  .tilt { transform-style: preserve-3d; transition: transform 0.4s var(--e-out); will-change: transform; }
  .card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.5vw, 2.3rem);
    background: var(--glass); border: 1px solid var(--glass-brd);
    backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
  .card .glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; z-index: 1;
    background: radial-gradient(300px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.10), transparent 60%); }
  .card:hover .glare { opacity: 1; }
  .card > * { position: relative; z-index: 2; }
  .card .svc-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,59,47,0.13); color: var(--accent); margin-bottom: 1.3rem; }
  .card .svc-ico svg { width: 23px; height: 23px; }
  .card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
  .card h3 .tag-sub { display: inline-block; font-family: "Manrope"; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(217,178,95,0.4); border-radius: 999px; padding: 0.18rem 0.5rem; vertical-align: middle; margin-left: 0.5rem; }
  .card p { color: var(--muted); font-size: 0.96rem; }
  .card .meta { margin-top: 1.2rem; font-size: 0.82rem; color: var(--gold); font-weight: 600; letter-spacing: 0.02em; }
  .card.feat { background: linear-gradient(150deg, rgba(40,17,15,0.8), var(--glass)); border-color: rgba(255,59,47,0.28); }
  .card .badge-pop { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 3; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); border: 1px solid rgba(255,59,47,0.4); padding: 0.3rem 0.6rem; border-radius: 999px; }
  .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; }

  /* ============================================================
     PORTFOLIO
     ============================================================ */
  .filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.2rem; }
  .filter { padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; transition: all 0.4s var(--e-out); }
  .filter:hover { border-color: var(--ink-soft); }
  .filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .port-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 1rem; }
  .port-item { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); transition: opacity 0.5s var(--e-out), transform 0.5s var(--e-out); }
  .port-item.hide { display: none; }
  .port-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.05) brightness(0.85); transition: transform 0.9s var(--e-out), filter 0.6s; }
  .port-item:hover img { transform: scale(1.07); filter: grayscale(0) contrast(1.05) brightness(1); }
  .port-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(8,7,6,0.9)); opacity: 0.85; transition: opacity 0.5s; }
  .port-cap { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 2; transform: translateY(8px); opacity: 0; transition: all 0.5s var(--e-out); }
  .port-item:hover .port-cap { transform: none; opacity: 1; }
  .port-cap .cat { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
  .port-cap h4 { font-size: 1.15rem; margin-top: 0.25rem; font-family: "Bricolage Grotesque"; }
  .p-tall { grid-row: span 2; } .p-wide { grid-column: span 4; } .p-med { grid-column: span 2; } .p-3 { grid-column: span 3; }

  /* ============================================================
     RESULTS / CHARTS
     ============================================================ */
  .results { background: var(--bg-2); border-block: 1px solid var(--line-2); }
  .res-tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
  .res-tab { padding: 0.7rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; transition: all 0.4s var(--e-out); }
  .res-tab:hover { border-color: var(--ink-soft); }
  .res-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .res-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
  .kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
  .kpi b { font-family: "Bricolage Grotesque"; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.04em; display: block; color: var(--ink); }
  .kpi b .u { color: var(--accent); }
  .kpi span { color: var(--muted); font-size: 0.84rem; }
  .res-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
  .rc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.6rem; }
  .rc-head h4 { font-size: 1.02rem; font-family: "Manrope"; font-weight: 700; letter-spacing: 0; }
  .rc-tag { font-size: 0.74rem; color: var(--muted); }
  .bars { display: flex; align-items: flex-end; gap: 1.4rem; height: 220px; padding-top: 1.2rem; }
  .bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.7rem; }
  .bar-pair { display: flex; align-items: flex-end; gap: 0.5rem; height: 100%; width: 100%; justify-content: center; }
  .bar { width: 34px; border-radius: 7px 7px 0 0; height: 0; transition: height 1.1s var(--e-out); position: relative; }
  .bar.before { background: var(--surface-2); border: 1px solid var(--line); }
  .bar.after { background: linear-gradient(180deg, var(--accent), #b8281e); }
  .bar .val { position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 700; opacity: 0; transition: opacity 0.5s 0.6s; white-space: nowrap; }
  .bar.show .val { opacity: 1; }
  .bar-group .lbl { font-size: 0.78rem; color: var(--muted); }
  .bars-legend { display: flex; gap: 1.4rem; margin-top: 1.2rem; font-size: 0.8rem; color: var(--muted); }
  .bars-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 0.4rem; vertical-align: middle; }
  .linewrap svg { width: 100%; height: 220px; overflow: visible; }
  .line-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.7s var(--e-out); }
  .line-path.draw { stroke-dashoffset: 0; }
  .line-area { fill: url(#lg); opacity: 0; transition: opacity 1s 0.6s; }
  .line-area.draw { opacity: 1; }
  .line-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; opacity: 0; transition: opacity 0.4s; }
  .line-dot.draw { opacity: 1; }
  .line-x { font-size: 10px; fill: var(--muted); font-family: "Manrope"; }
  .line-val { font-size: 9.5px; font-weight: 600; fill: var(--ink-soft); font-family: "Manrope"; opacity: 0; transition: opacity 0.4s; }
  .line-val.draw { opacity: 1; }
  .line-grid { stroke: var(--line-2); stroke-width: 1; }

  /* ============================================================
     MODELO DE TRABAJO
     ============================================================ */
  .model-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.1rem; }
  .model-card { border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.5vw, 2.2rem); background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 0.8rem; }
  .model-card.hi { background: linear-gradient(150deg, rgba(40,17,15,0.7), var(--surface)); border-color: rgba(255,59,47,0.25); }
  .model-card .n { font-family: "Bricolage Grotesque"; color: var(--gold); font-weight: 700; font-size: 0.9rem; }
  .model-card h3 { font-size: 1.35rem; }
  .model-card p { color: var(--muted); font-size: 0.95rem; }
  .model-card .fig { font-family: "Bricolage Grotesque"; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; margin-top: auto; }
  .model-card .fig small { display: block; font-family: "Manrope"; font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

  /* ============================================================
     CLIENTES / LOGOS
     ============================================================ */
  .logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.8rem, 6vw, 4.5rem); }
  .logos span { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--ink-soft); opacity: 0.7; letter-spacing: -0.02em; transition: opacity 0.4s, color 0.4s; }
  .logos span:hover { opacity: 1; color: var(--ink); }
  .logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .logo-track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4rem); width: max-content; animation: logoslide 60s linear infinite; }
  .logo-marquee:hover .logo-track { animation-play-state: paused; }
  .logo-track span { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--ink-soft); opacity: 0.6; letter-spacing: -0.02em; white-space: nowrap; transition: opacity 0.4s, color 0.4s; }
  .logo-track span:hover { opacity: 1; color: var(--ink); }
  @keyframes logoslide { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1.2rem; } }

  /* ============================================================
     TESTIMONIOS
     ============================================================ */
  .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .testi { background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; gap: 1.2rem; }
  .stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.95rem; }
  .testi blockquote { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.55; }
  .testi .who { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
  .testi .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: "Bricolage Grotesque"; font-weight: 700; color: var(--gold); }
  .testi .who b { font-size: 0.92rem; font-family: "Manrope"; }
  .testi .who span { font-size: 0.8rem; color: var(--muted); display: block; }

  /* ============================================================
     FAQ
     ============================================================ */
  .faq { max-width: 780px; margin-inline: auto; }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; font-family: "Bricolage Grotesque"; font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -0.02em; }
  .faq-q .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: background-color 0.4s, border-color 0.4s; }
  .faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--e-out), opacity 0.3s; }
  .faq-q .plus::before { width: 12px; height: 2px; } .faq-q .plus::after { width: 2px; height: 12px; }
  .faq-item.open .plus { background: var(--accent); border-color: var(--accent); }
  .faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--e-io); }
  .faq-a p { padding-bottom: 1.5rem; color: var(--muted); }

  /* ============================================================
     CONTACT
     ============================================================ */
  .contact { background: var(--bg-2); border-top: 1px solid var(--line-2); }
  .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
  .contact-info h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.3rem; }
  .contact-info p.lead { color: var(--ink-soft); margin-bottom: 2rem; max-width: 42ch; }
  .contact-list { display: flex; flex-direction: column; margin-bottom: 2rem; }
  .contact-list a, .contact-list div.ci-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-2); color: var(--ink-soft); transition: color 0.3s; }
  .contact-list a:hover { color: var(--ink); }
  .contact-list .ci { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; color: var(--gold); }
  .contact-list .ci svg { width: 17px; height: 17px; }
  .contact-list b { color: var(--ink); font-weight: 600; display: block; font-size: 0.95rem; }
  .contact-list small { color: var(--muted); }
  .map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
  .map-embed iframe { display: block; width: 100%; height: 200px; border: 0; filter: grayscale(0.5) invert(0.9) hue-rotate(180deg) contrast(0.9); }
  form.contact-form { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
  .field { margin-bottom: 1.2rem; }
  .field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink-soft); }
  .field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; color: var(--ink); font: inherit; font-size: 0.98rem; transition: border-color 0.3s, box-shadow 0.3s; }
  .field input::placeholder, .field textarea::placeholder { color: #6b6357; }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,59,47,0.15); }
  .field textarea { resize: vertical; min-height: 120px; }
  .field .err { color: #ff6b5f; font-size: 0.8rem; margin-top: 0.4rem; display: none; }
  .field.invalid .err { display: block; }
  .field.invalid input, .field.invalid textarea { border-color: #ff6b5f; }
  form.contact-form .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
  .form-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 1rem; }
  .form-success { display: none; text-align: center; padding: 2rem 0; }
  .form-success.show { display: block; }
  .form-success .ok { width: 60px; height: 60px; border-radius: 50%; background: rgba(37,211,102,0.15); color: var(--wa); display: grid; place-items: center; margin: 0 auto 1rem; }

  /* ============================================================
     FOOTER
     ============================================================ */
  footer.site { padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; border-top: 1px solid var(--line-2); }
  .foot-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 3rem; }
  .foot-brand { max-width: 36ch; }
  .foot-brand p { color: var(--muted); margin-top: 1rem; font-size: 0.95rem; }
  .foot-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
  .foot-col h5 { font-family: "Manrope"; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
  .foot-col a { display: block; color: var(--ink-soft); font-size: 0.94rem; padding: 0.35rem 0; transition: color 0.3s; }
  .foot-col a:hover { color: var(--accent); }
  .socials { display: flex; gap: 0.7rem; }
  .socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: all 0.4s var(--e-out); }
  .socials a:hover { color: var(--ink); border-color: var(--ink-soft); transform: translateY(-3px); }
  .socials svg { width: 18px; height: 18px; }
  .foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 0.85rem; }

  /* WHATSAPP FLOAT */
  .wa-float { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float); width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,0.4); transition: transform 0.5s var(--e-out); }
  .wa-float:hover { transform: scale(1.08); }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s var(--e-out) infinite; }
  @keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

  /* PARALLAX helper */
  .parallax { will-change: transform; }

  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 1000px) {
    .manifesto-grid { grid-template-columns: 1fr; }
    .res-panel { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .model-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .col-3, .col-2 { grid-column: span 3; }
    .port-grid { grid-template-columns: repeat(4, 1fr); }
    .p-wide { grid-column: span 4; } .p-3 { grid-column: span 2; }
  }
  @media (max-width: 720px) {
    .nav-links, .nav-cta .btn { display: none; }
    .burger { display: block; }
    .bento { grid-template-columns: 1fr; }
    .col-3, .col-2 { grid-column: span 1; }
    .testi-grid { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .port-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
    .p-wide, .p-3, .p-med { grid-column: span 2; } .p-tall { grid-row: span 1; }
    .foot-top { flex-direction: column; }
    /* Sin tilt/parallax en móvil */
    .tilt { transform: none !important; }
  }
