/* ===========================================================
   ESSENCIA — Components & sections
   =========================================================== */

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: center;
  padding: 0 16px; pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  width: min(1180px, 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 10px 9px 14px;
  border-radius: 22px;
  background: linear-gradient(100deg, rgba(32,32,35,0.82) 0%, rgba(18,18,20,0.78) 58%, rgba(13,13,15,0.78) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 20px 54px -22px rgba(0,0,0,0.78), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.nav.scrolled .nav__inner {
  background: linear-gradient(100deg, rgba(26,26,28,0.9) 0%, rgba(12,12,14,0.9) 100%);
  box-shadow: 0 24px 64px -22px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav__links { display: flex; gap: 0.3rem; align-items: center; }
.nav__link {
  font-size: 0.88rem; font-weight: 450; color: rgba(255,255,255,0.74);
  padding: 0.5em 0.95em; border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.09); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 18px; border-radius: 999px;
  background: #ffffff;
  color: #0a0b0d; font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,0.6);
  transition: filter 0.3s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 38px -12px rgba(0,0,0,0.7); }
.nav-cta__arrow {
  width: 31px; height: 31px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: #0a0b0d;
  transition: transform 0.4s var(--ease);
}
.nav-cta:hover .nav-cta__arrow { transform: translateX(2px); }
.nav-cta__arrow svg { width: 15px; height: 15px; stroke: #fff; }
.nav__menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); cursor: pointer;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; user-select: none; }
.brand__badge {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #2c2c30, #141416);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}
.brand__badge img { width: 58%; height: 58%; object-fit: contain; }
.brand__name { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; color: #fff; }
.brand__name span { color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 0.22em; }
.brand__logo { height: 30px; width: auto; display: block; }
.footer__brand .brand__logo { height: 40px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 110px;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  left: 50%; top: 38%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, oklch(0.62 0.12 235 / 0.05) 35%, transparent 68%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(-54%, -52%) scale(1); }
  100% { transform: translate(-46%, -46%) scale(1.18); }
}
.hero__grid {
  position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 30%, transparent 40%, var(--bg) 100%);
}
.hero .eyebrow { margin-bottom: 2rem; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero__sub { margin: 2rem auto 0; max-width: 56ch; text-align: center; }
.hero__cta { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero video frame */
.video-frame {
  position: relative; margin: 4.5rem auto 0; width: min(880px, 100%);
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.7s var(--ease);
}
.video-frame:hover {
  border-color: oklch(0.72 0.105 235 / 0.35);
  box-shadow: 0 60px 140px -40px rgba(0,0,0,0.95), 0 0 80px -30px var(--accent-glow);
}
.video-frame image-slot { width: 100%; height: 100%; }
.video-frame__overlay {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
}
.play-btn {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: auto; cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.play-btn::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.6;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
.play-btn svg { width: 26px; height: 26px; fill: var(--white); margin-left: 4px; }
.play-btn:hover { transform: scale(1.08); background: var(--white); box-shadow: 0 0 50px -8px var(--accent-glow); }
.play-btn:hover svg { fill: #0a0b0d; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-2);
  pointer-events: none;
}
@media (max-height: 920px) { .scroll-cue { display: none; } }
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(var(--muted-2), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after { content:""; position:absolute; top:0; left:0; width:100%; height:40%; background: var(--accent); animation: scrollDot 2.2s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(-100%);} 100% { transform: translateY(280%);} }

/* ---------- Marquee (clients) ---------- */
.clients { padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients__label { text-align: center; color: var(--muted-2); font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 38px; }
.marquee { display: flex; 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: flex; align-items: center; gap: clamp(40px, 6vw, 92px); padding-right: clamp(40px, 6vw, 92px); animation: scrollX 38s linear infinite; flex-shrink: 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-100%); } }
.client-logo {
  font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.02em;
  color: var(--muted-2); white-space: nowrap; opacity: 0.6;
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
  cursor: default;
}
.client-logo:hover { color: var(--white); opacity: 1; transform: translateY(-2px); }
.client-logo em { font-style: normal; color: var(--accent); }

/* ---------- Section heading block ---------- */
.section { padding: clamp(90px, 13vh, 160px) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 84px); }
.section__head .eyebrow { margin-bottom: 1.4rem; }
.section--center .section__head { margin-inline: auto; text-align: center; }
.section--center .section__head .eyebrow { justify-content: center; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about__media image-slot { width: 100%; height: 100%; }
.about__media::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow: inset 0 0 120px 20px rgba(0,0,0,0.6); border-radius: var(--radius); }
.about__media-tag {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.about p { color: var(--muted); margin-top: 1.4rem; max-width: 48ch; }
.quote { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.quote blockquote { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; color: var(--text); }
.quote blockquote .accent-text { font-weight: 400; }
.quote__author { display: flex; align-items: center; gap: 14px; margin-top: 1.8rem; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); flex-shrink: 0; }
.quote__avatar image-slot { width: 100%; height: 100%; }
.quote__name { font-weight: 500; font-size: 0.95rem; }
.quote__role { color: var(--muted-2); font-size: 0.8rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(180deg, var(--surface), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { position: relative; padding: 10px 4px; }
.stat + .stat::before { content:""; position:absolute; left: -15px; top: 10%; height: 80%; width: 1px; background: var(--line); }
.stat__num { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat__num .plus { color: var(--accent); font-weight: 400; }
.stat__num .unit { font-size: 0.5em; font-weight: 500; }
.stat__label { color: var(--muted); font-size: 0.86rem; margin-top: 0.9rem; max-width: 24ch; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc {
  position: relative; background: var(--bg); padding: clamp(28px, 3vw, 44px);
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
.svc::before {
  content:""; position:absolute; inset:0; opacity:0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), var(--accent-soft), transparent 60%);
  transition: opacity 0.5s var(--ease);
}
.svc:hover { background: var(--surface); }
.svc:hover::before { opacity: 1; }
.svc__icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 1.8rem; }
.svc__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.3; }
.svc h3 { font-size: 1.18rem; font-weight: 500; margin-bottom: 0.7rem; }
.svc p { color: var(--muted); font-size: 0.92rem; }
.svc__num { position: absolute; top: 24px; right: 26px; font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.1em; }

/* ---------- Portfolio / Trabajo ---------- */
.work__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px);
}
.work__head h2 { margin-top: 1.3rem; max-width: 15ch; }
.work__head-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
  max-width: 34ch;
}
.work__head-note { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.work__head-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.work__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.work__col { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-height: 0; }

.pf-card {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 100% at 0% 0%, var(--surface), var(--bg) 70%);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pf-card:hover {
  transform: translateY(-6px);
  border-color: oklch(0.72 0.12 var(--accent-h) / 0.4);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), 0 0 70px -30px var(--accent-glow);
}

/* browser chrome */
.pf-card__chrome {
  display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 42px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--line);
}
.pf-card__url {
  font-size: 0.72rem; letter-spacing: 0.02em; color: var(--muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 7px;
  padding: 0.34em 1em; display: inline-flex; align-items: center; gap: 0.5em;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pf-card__url svg { width: 0.85em; height: 0.85em; stroke: var(--accent-bright); fill: none; stroke-width: 1.6; }
.pf-card:hover .pf-card__url { color: var(--text); border-color: var(--line-strong); }

/* shot */
.pf-card__shot { position: relative; overflow: hidden; flex: 1 1 auto; min-height: 0; background: var(--surface); }
.pf-card__shot image-slot { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.pf-card:hover .pf-card__shot image-slot { transform: scale(1.05); }
.pf-card--reg .pf-card__shot { aspect-ratio: 16 / 8.4; }
.pf-card--feature .pf-card__shot { min-height: 260px; }

/* footer caption */
.pf-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0;
  padding: clamp(15px,1.5vw,20px) clamp(18px,1.9vw,26px);
  border-top: 1px solid var(--line);
}
.pf-card__tag { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.pf-card__title { font-size: clamp(1.08rem,1.5vw,1.34rem); font-weight: 500; margin-top: 6px; }
.pf-card__cta {
  display: inline-flex; align-items: center; gap: 0.45em; flex-shrink: 0;
  font-size: 0.8rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.4s var(--ease), gap 0.4s var(--ease);
}
.pf-card__cta svg { width: 1.05em; height: 1.05em; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pf-card:hover .pf-card__cta { color: var(--accent-bright); gap: 0.75em; }

@media (max-width: 860px) {
  .work__head { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .work__grid { grid-template-columns: 1fr; }
  .work__col { grid-template-rows: none; }
  .pf-card--feature .pf-card__shot { aspect-ratio: 16 / 9.5; min-height: 0; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(80px, 12vh, 150px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band__glow { position:absolute; inset:0; z-index:-1; background: radial-gradient(ellipse 50% 60% at 50% 60%, var(--accent-soft), transparent 70%); }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1.6rem; }
.cta-band p { color: var(--muted); max-width: 54ch; margin: 0 auto 2.6rem; }
.cta-strip { margin-top: 4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; 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); }
.cta-strip__track { display:flex; gap: 0; align-items:center; animation: scrollX 28s linear infinite; flex-shrink: 0; white-space: nowrap; }
.cta-strip__item { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; color: var(--muted-2); display:inline-flex; align-items:center; transition: color 0.4s; }
.cta-strip__item::after { content:"✦"; color: var(--accent); font-size: 0.5em; margin: 0 0.7em; }
.cta-strip:hover .cta-strip__track { animation-play-state: paused; }

/* ---------- Footer ---------- */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 96px) 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { max-width: 260px; }
.footer__brand .brand { align-items: flex-start; }
.footer__brand p { color: var(--muted-2); font-size: 0.84rem; margin-top: 1.4rem; }
.footer__col h4 { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1.3rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col a, .footer__col span { color: var(--muted); font-size: 0.88rem; transition: color 0.3s var(--ease); }
.footer__contact { gap: 1.05rem; }
.footer__contact li { display: flex; flex-direction: column; gap: 3px; }
.footer__sub { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display:flex; justify-content: space-between; align-items:center; flex-wrap: wrap; gap: 16px; margin-top: clamp(50px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.78rem; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.footer__legal a { color: var(--muted-2); font-size: 0.78rem; transition: color 0.3s var(--ease); }
.footer__legal a:hover { color: var(--accent); }
.footer__legal a[aria-current="page"] { color: var(--text); }

/* ---------- Page hero (portfolio) ---------- */
.page-hero { padding: clamp(150px, 20vh, 230px) var(--gutter) clamp(60px, 8vh, 100px); text-align: center; position: relative; overflow: hidden; }
.page-hero .hero__glow { top: 30%; }
.page-hero h1 { max-width: 18ch; margin: 1.8rem auto 0; }
.page-hero p { margin: 1.8rem auto 0; max-width: 54ch; color: var(--muted); }

/* ---------- Tabs (portfolio) ---------- */
.tabs { display:flex; justify-content:center; gap: 8px; margin: 0 auto clamp(44px,6vw,72px); padding: 6px; border: 1px solid var(--line); border-radius: 999px; width: fit-content; background: var(--surface); }
.tab { display:flex; align-items:center; gap: 0.6em; padding: 0.7em 1.5em; border-radius: 999px; font-size: 0.85rem; color: var(--muted); cursor: pointer; border: 0; background: transparent; transition: color 0.4s var(--ease), background 0.4s var(--ease); font-family: var(--font); }
.tab svg { width: 1.05em; height: 1.05em; }
.tab.active { background: var(--white); color: #0a0b0d; }
.tab:not(.active):hover { color: var(--white); }

/* Reels grid */
.reels__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reel { position: relative; aspect-ratio: 9 / 13; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: var(--surface); transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.reel image-slot { width:100%; height:100%; transition: transform 1.1s var(--ease); }
.reel:hover { transform: translateY(-6px); border-color: oklch(0.72 0.105 235 / 0.4); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), 0 0 60px -28px var(--accent-glow); }
.reel:hover image-slot { transform: scale(1.07); }
.reel__top { position:absolute; top:0; left:0; right:0; z-index:2; display:flex; align-items:center; gap:8px; padding: 14px; background: linear-gradient(180deg, rgba(0,0,0,0.7), transparent); }
.reel__badge { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display:grid; place-items:center; font-size: 0.6rem; font-weight: 700; color: var(--accent); }
.reel__name { font-size: 0.82rem; font-weight: 500; }
.reel__name small { display:block; color: var(--muted-2); font-size: 0.64rem; font-weight: 300; }
.reel__bottom { position:absolute; left:0; right:0; bottom:0; z-index:2; padding: 14px; display:flex; justify-content: space-between; align-items:center; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent); }
.reel__yt { display:flex; align-items:center; gap: 6px; font-size: 0.7rem; color: var(--text); }
.reel__yt svg { width: 18px; height: 14px; }
.reel__play { position:absolute; inset:0; display:grid; place-items:center; z-index:1; opacity: 0.85; }
.reel__play .play-btn { width: 58px; height: 58px; }
.reel__play .play-btn svg { width: 18px; height: 18px; }

/* Testimonials list */
.testi__grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.testi { padding: clamp(28px,3vw,40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; transition: border-color 0.5s var(--ease), transform 0.5s var(--ease); }
.testi:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.testi__mark { font-size: 3rem; line-height: 0.6; color: var(--accent); font-weight: 600; opacity: 0.5; }
.testi p { font-size: 1.08rem; font-weight: 300; line-height: 1.5; margin: 1rem 0 1.8rem; color: var(--text); }
.testi__who { display:flex; align-items:center; gap: 12px; }
.testi__av { width: 42px; height: 42px; border-radius: 50%; overflow:hidden; border: 1px solid var(--line-strong); }
.testi__av image-slot { width:100%; height:100%; }
.testi__name { font-weight: 500; font-size: 0.9rem; }
.testi__co { color: var(--muted-2); font-size: 0.78rem; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav-cta { display: none; }
  .nav__menu-btn { display: grid; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; aspect-ratio: 4/3; }
  .stats__grid { grid-template-columns: repeat(2,1fr); gap: 40px 20px; }
  .stat:nth-child(3)::before, .stat:nth-child(odd)::before { display:none; }
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .reels__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .teaser__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .testi__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .tabs { width: 100%; }
}

/* =========================================================
   PORTFOLIO PAGE (portafolio.html)
   ========================================================= */
.pf-hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(165px, 21vh, 250px) 0 clamp(56px, 7vw, 92px);
  background:
    radial-gradient(ellipse 56% 50% at 50% 20%,
      oklch(0.68 0.18 var(--accent-h) / calc(0.42 * var(--glow-boost))) 0%,
      oklch(0.56 0.17 var(--accent-h) / calc(0.16 * var(--glow-boost))) 30%,
      oklch(0.5 0.16 var(--accent-h) / calc(0.04 * var(--glow-boost))) 50%,
      transparent 66%),
    var(--bg);
}
.pf-hero .eyebrow { justify-content: center; margin-bottom: 1.6rem; }
.pf-hero h1 { max-width: 16ch; margin: 0 auto; }
.pf-hero .lede { margin: 1.7rem auto 0; text-align: center; }
.pf-hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 2.4rem; }
.pf-hero__tag {
  font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted);
  padding: 0.5em 1.05em; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.pf-hero__tag em { font-style: normal; color: var(--accent-bright); }

/* gallery of browser-window cards */
.pf-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pf-card--wide { grid-column: 1 / -1; }
.pf-card--wide .pf-card__shot { aspect-ratio: 16 / 6.4; min-height: 0; }
.pf-card--reg .pf-card__shot { aspect-ratio: 16 / 9; }

/* featured testimonial */
.testi-feature {
  position: relative; overflow: hidden; text-align: center;
  max-width: 940px; margin: 0 auto clamp(40px, 5vw, 64px);
  padding: clamp(40px, 5.5vw, 80px) clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background:
    radial-gradient(130% 130% at 50% 0%, oklch(0.5 0.13 var(--accent-h) / 0.22), transparent 60%),
    radial-gradient(120% 120% at 0% 0%, var(--surface-2), var(--surface) 65%);
}
.testi-feature__mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(5rem, 9vw, 8rem); line-height: 0.5; color: var(--accent);
  opacity: 0.5; height: 0.5em; display: block;
}
.testi-feature blockquote {
  font-size: clamp(1.4rem, 2.7vw, 2.25rem); font-weight: 400; line-height: 1.28;
  letter-spacing: -0.02em; max-width: 22ch; margin: 0.6rem auto 0; text-wrap: balance;
}
.testi-feature blockquote .accent-text { color: var(--accent-bright); }
.testi-feature__who {
  display: inline-flex; align-items: center; gap: 0.8em; margin-top: 2.2rem;
}
.testi-feature__av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); }
.testi-feature__av image-slot { width: 100%; height: 100%; }
.testi-feature__meta { text-align: left; }
.testi-feature__name { font-weight: 500; font-size: 1.02rem; }
.testi-feature__co { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 860px) {
  .pf-gallery { grid-template-columns: 1fr; }
  .pf-card--wide .pf-card__shot { aspect-ratio: 16 / 9.5; }
}
