/* =====================================================
   AG COMPANY — Portafolio
   Diseño fiel al original (marco de 1366 px): todo se
   escala con rem, así que en pantalla grande o chica
   conserva las mismas proporciones.
   Tipografías del diseño: Questrial (títulos/menú),
   Raleway (texto), DM Sans (lemas), Poppins (contacto).
   ===================================================== */

:root{
  --font-title: "Questrial", "Segoe UI", sans-serif;
  --font-body:  "Raleway", "Segoe UI", sans-serif;
  --font-ui:    "DM Sans", "Segoe UI", sans-serif;
  --font-contact: "Poppins", "Segoe UI", sans-serif;

  --ink: #fff;
  --ink-soft: #d9d8ef;
  --ink-dim: #a9a8d8;
  --blue: #3432c9;
  --ease: cubic-bezier(.22,.61,.36,1);

  --fs-nav: 1.6rem;
  --fs-xl: 3.9rem;
  --fs-lg: 2.7rem;
  --fs-md: 2.2rem;
  --fs-text: 1.6rem;
  --fs-skill: 1.25rem;
  --fs-app: 1.1rem;
  --fs-motto: 1.75rem;
  --fs-contact: 1.8rem;

  --w-panel: min(68.4rem, 94vw);
}

*,*::before,*::after{ box-sizing: border-box; }

html{
  font-size: clamp(13px, 1.17vw, 21px);   /* 16 px en el marco de 1366 */
  scroll-behavior: smooth;
  background: #191853;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: linear-gradient(180deg, #000 0%, #05050f 6%, #0b0b2a 38%, #131246 70%, #191853 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font: inherit; color: inherit; }

.sr-only{
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip{
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: #fff; color: #111; padding: .6rem 1rem; border-radius: .6rem;
  transition: top .2s;
}
.skip:focus{ top: 1rem; }

:focus-visible{ outline: .18rem solid #8f8dff; outline-offset: .2rem; }

/* ================= MENÚ ================= */
.topbar{
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 5.2rem;
  padding: 1.4rem 6.3rem 1.4rem 1.9rem;
  transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.topbar.is-stuck{
  padding-top: .7rem; padding-bottom: .7rem;
  background: rgba(3,3,16,.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 .8rem 2.4rem rgba(0,0,0,.35);
}

.badge{
  flex: none;
  width: 6.7rem; height: 6.7rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: .28rem solid #2b29a8;
  background: #05051a;
  transition: width .3s var(--ease), height .3s var(--ease), transform .3s var(--ease);
}
.badge img{ width: 66%; height: auto; }
.badge:hover{ transform: rotate(-6deg) scale(1.05); }
.is-stuck .badge{ width: 4.8rem; height: 4.8rem; border-width: .22rem; }

.menu{
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 4.6rem;
  padding: 0 3.1rem 0 1.9rem;
  border-radius: 999px;
  border: .14rem solid #8e8ea6;
  background: linear-gradient(90deg, #04041a 0%, #0d0d3d 35%, #1c1b86 72%, #3432c9 100%);
  box-shadow: 0 .6rem 1.8rem rgba(0,0,0,.35);
  transition: height .3s var(--ease);
}
.is-stuck .menu{ height: 3.9rem; }

.menu a{
  position: relative;
  font: 400 var(--fs-nav)/1 var(--font-title);
  text-decoration: none;
  color: rgba(255,255,255,.88);
  padding: .5rem 0;
  white-space: nowrap;
  transition: color .2s;
}
.menu a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -.05rem; height: .14rem;
  border-radius: 1rem; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu a:hover, .menu a.is-active{ color: #fff; }
.menu a:hover::after, .menu a.is-active::after{ transform: scaleX(1); }

.burger{
  display: none;
  margin-left: auto;
  width: 4.4rem; height: 4.4rem;
  border-radius: 50%;
  border: .14rem solid #8e8ea6;
  background: linear-gradient(135deg, #0d0d3d, #3432c9);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: .32rem;
}
.burger span{ width: 1.8rem; height: .14rem; background: #fff; border-radius: 1rem; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(.46rem) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-.46rem) rotate(-45deg); }

/* ================= SECCIONES / PANELES ================= */
.seccion{
  width: var(--w-panel);
  margin: 13rem auto 0;
  scroll-margin-top: 7rem;
  position: relative;
}
.seccion:first-of-type{ margin-top: 3rem; }

.panel{
  position: relative;
  border-radius: 4.2rem;
  padding: 4.5rem 3.8rem 2.2rem;
  background: linear-gradient(165deg, #05051b 0%, #0d0d37 36%, #1b1a5e 74%, #232278 100%);
  box-shadow: 0 2.4rem 5rem rgba(0,0,0,.35);
}
.panel--dark{ background: linear-gradient(168deg, #000 0%, #05051a 20%, #11103f 56%, #232278 100%); }
.panel--video{ background: linear-gradient(160deg, #070716 0%, #0f0f3a 40%, #1f1e6c 80%, #262580 100%); }

.motto{
  margin: 2.6rem 0 0;
  text-align: center;
  font: 400 var(--fs-motto)/1.3 var(--font-ui);
  color: #aeadd8;
  text-shadow: 0 .12rem .4rem rgba(0,0,0,.5);
  letter-spacing: .01em;
}

/* ================= PÍLDORAS DE TÍTULO ================= */
.pill{
  position: relative; z-index: 2;
  display: inline-block;
  margin: 0;
  text-align: center;
  font: 400 var(--fs-md)/1.05 var(--font-title);
  color: #fff;
  border-radius: 999px;
  border: .14rem solid rgba(255,255,255,.26);
  box-shadow: 0 .8rem 1.8rem rgba(0,0,0,.35);
  white-space: nowrap;
}
.pill--xl{ font-size: var(--fs-xl); line-height: 1.15; min-width: 29rem; padding: .02em .8em .06em; }
.pill--lg{ font-size: var(--fs-lg); min-width: 18.9rem; padding: .2em .55em; }
.pill--md{ font-size: var(--fs-md); min-width: 16.5rem; padding: .27em .7em; }

.pill--blue{ background: linear-gradient(90deg, #14136a 0%, #2625a8 55%, #3836d4 100%); border-color: #8e8ea6; }
.pill--grey{ background: rgba(86,86,102,.92); }
.pill--dark{ background: rgba(60,60,76,.95); border-color: rgba(255,255,255,.12); }

.pill--hang{ margin-left: -2.6rem; margin-bottom: -.4rem; }

/* tarjetas translúcidas */
.card{
  position: relative;
  border-radius: 3.9rem;
  color: #fff;
  box-shadow: 0 2rem 4rem rgba(0,0,0,.38), inset 0 .1rem 0 rgba(255,255,255,.07);
  text-align: center;
}
.card p{ margin: 0 0 1.55em; }
.card p:last-child{ margin-bottom: 0; }

/* ---------- Acerca de mi ---------- */
.bio{ position: relative; margin-bottom: 10rem; }
.bio .pill{ margin-left: -1.7rem; margin-bottom: -2.7rem; }
.card--bio{
  padding: 5.2rem 3.6rem 8.2rem;
  background: linear-gradient(155deg, #15151e 0%, #25252f 40%, #363648 100%);
  font-size: var(--fs-text); line-height: 1.52;
  border-top-right-radius: 5rem;
}
.card--bio p{ font-weight: 400; }
.bio__hola{ font-weight: 700 !important; }
.bio__foto{
  position: absolute; left: 50%; bottom: -10rem;
  width: 16.5rem; height: 16.5rem;
  transform: translateX(-50%);
  border-radius: 50%;
  object-fit: cover; object-position: 50% 30%;
  background: #0a0a14;
  box-shadow: 0 1.4rem 3rem rgba(0,0,0,.5);
  transition: transform .5s var(--ease);
}
.bio__foto:hover{ transform: translateX(-50%) scale(1.04); }

.bloque{ position: relative; }
.bloque--hab .pill{ margin-left: 1.45rem; margin-bottom: 0; }
.card--hab{
  padding: 2.4rem 3rem 2.6rem;
  background: linear-gradient(150deg, #2a2a40 0%, #36364f 50%, #444464 100%);
  font-size: var(--fs-skill); line-height: 1.5;
  border-top-left-radius: 4.4rem;
}
.card--hab p{ margin: 0 0 1.15rem; }
.card--hab b{ font-weight: 700; font-size: 1.08em; }

.bloque--sw{ margin-top: 3.6rem; }
.bloque--sw .pill{ display: block; width: fit-content; margin: 0 2.6rem 0 auto; }
.card--sw{
  padding: 6.7rem 2.2rem 5.2rem;
  background: linear-gradient(150deg, #25253b 0%, #323250 55%, #3f3f60 100%);
  border-top-right-radius: 4.4rem;
}
.apps{
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.apps li{ display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.apps img{
  width: 7rem; height: 7rem; border-radius: 1.5rem;
  box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.4);
  transition: transform .35s var(--ease);
}
.apps li:hover img{ transform: translateY(-.5rem) scale(1.06); }
.apps span{ font: 400 var(--fs-app)/1.2 var(--font-ui); color: #e9e8f7; text-align: center; }

.bloque--eq{ margin-top: 1.5rem; text-align: center; }
.bloque--eq .pill{ margin-bottom: 1.4rem; }
.gear{
  width: 83%; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.8rem;
}
.gear img{
  width: 100%; height: auto;
  filter: drop-shadow(0 1rem 1.6rem rgba(0,0,0,.45));
}
.gear img:nth-child(3){ position: relative; left: 1.2rem; }
.gear img:hover{ translate: 0 -.35rem; scale: 1.012; filter: drop-shadow(0 1.4rem 2.2rem rgba(70,50,200,.5)); }

/* ---------- Fotografía: álbumes ---------- */
.panel--foto{ padding: 3.9rem 7rem 2.2rem; }
.cat + .cat{ margin-top: 4rem; }
.cat > .pill{ margin-bottom: 1.9rem; }

.albumes{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr));
  gap: 2.6rem;
  align-items: end;
}
.album{ position: relative; margin: 0; }
.strip{
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  width: clamp(58%, calc(100% * var(--n, 3) / 3), 100%);
  margin-inline: auto;
  gap: .2rem;
  border-radius: 1.3rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1.4rem 3rem rgba(0,0,0,.45);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.album:hover .strip{ transform: translateY(-.3rem); box-shadow: 0 2rem 3.6rem rgba(0,0,0,.55); }
.strip__item{
  position: relative; display: block; padding: 0; border: 0; margin: 0;
  aspect-ratio: 9 / 16;
  background: #0b0b1d; cursor: zoom-in; overflow: hidden;
}
.strip__item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s; }
.strip__item:hover img{ transform: scale(1.07); }
.strip__more{
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(3,3,20,.55);
  font: 400 2.4rem/1 var(--font-title);
  pointer-events: none;
}
.album__tag{
  position: absolute; left: .9rem; bottom: .9rem; z-index: 2;
  display: flex; align-items: baseline; gap: .7rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: rgba(10,10,28,.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: .1rem solid rgba(255,255,255,.14);
  font: 400 1.1rem/1.2 var(--font-ui);
  pointer-events: none;
}
.album__tag b{ font-weight: 500; font-size: 1.2rem; font-family: var(--font-title); }
.album__tag span{ color: var(--ink-dim); }

.vacio{
  grid-column: 1 / -1;
  min-height: 11rem;
  display: grid; place-items: center;
  border: .14rem dashed rgba(255,255,255,.16);
  border-radius: 1.6rem;
  color: rgba(255,255,255,.45);
  font: 400 1.25rem/1.3 var(--font-ui);
  letter-spacing: .04em;
}

/* ---------- Diseño ---------- */
.panel--diseno{ padding: 6.2rem 7rem 2.2rem; }
.rejilla{
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 5.3rem 5.6rem;
}
.cuad{
  position: relative; margin: 0; padding: 0; border: 0; display: block;
  aspect-ratio: 1; width: 100%;
  border-radius: 1.8rem; overflow: hidden;
  background: #0b0b1d; cursor: zoom-in;
  box-shadow: 0 1.4rem 3rem rgba(0,0,0,.42);
}
.cuad img{ width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cuad:hover{ translate: 0 -.4rem; box-shadow: 0 2rem 3.6rem rgba(0,0,0,.55); }
.cuad:hover img{ transform: scale(1.06); }

/* ---------- Reproductor de video ---------- */
.panel--video{ padding: 3.2rem 2.2rem 2.2rem; }
.vp-mount{ position: relative; }

.vp__frame{
  background: #050505;
  border-radius: 2.2rem;
  padding: 1.3rem;
  box-shadow: 0 2rem 4rem rgba(0,0,0,.5);
}
/* pantalla completa */
.vp__frame:fullscreen, .vp__frame:-webkit-full-screen{ padding: 0; border-radius: 0; height: 100%; background: #000; }
.vp__frame:fullscreen .vp__inner, .vp__frame:-webkit-full-screen .vp__inner{ height: 100%; display: flex; flex-direction: column; border-radius: 0; }
.vp__frame:fullscreen .vp__screen, .vp__frame:-webkit-full-screen .vp__screen{ flex: 1; min-height: 0; aspect-ratio: auto; }
.vp__inner{ border-radius: 1.2rem; overflow: hidden; background: #433b3b; }

.vp__top{
  display: flex; align-items: center; gap: 1rem;
  height: 3.3rem; padding: 0 1.1rem;
}
.vp__title{
  min-width: 7.7rem; max-width: 60%;
  padding: .28rem 1rem; border-radius: 999px;
  background: #a39a93; color: #2b2523;
  font: 500 .95rem/1.2 var(--font-ui);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vp__count{ font: 400 .9rem/1 var(--font-ui); color: #cfc7c1; }
.vp__acts{ margin-left: auto; display: flex; gap: .4rem; }

.vp__ib{
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  background: none; border: 0; border-radius: .6rem;
  cursor: pointer; color: #f0eae6;
  transition: background .2s, transform .2s, color .2s;
}
.vp__ib:hover{ background: rgba(255,255,255,.12); }
.vp__ib svg{ width: 1.45rem; height: 1.45rem; fill: currentColor; }
.vp__like[aria-pressed="true"]{ color: #ff6b8b; }
.vp__like[aria-pressed="true"] svg{ animation: latido .45s var(--ease); }
@keyframes latido{ 50%{ transform: scale(1.35); } }

.vp__screen{ position: relative; background: #000; aspect-ratio: 16 / 9; }
.vp__screen video{ width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.vp__big{
  position: absolute; left: 50%; top: 50%;
  width: 6.2rem; height: 6.2rem; margin: -3.1rem 0 0 -3.1rem;
  display: grid; place-items: center;
  border-radius: 50%; border: .14rem solid rgba(255,255,255,.55);
  background: rgba(8,8,28,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform .3s var(--ease), opacity .3s, background .2s;
}
.vp__big svg{ width: 2.4rem; height: 2.4rem; fill: #fff; margin-left: .25rem; }
.vp__big:hover{ transform: scale(1.1); background: rgba(52,50,201,.7); }
.vp.is-playing .vp__big{ opacity: 0; pointer-events: none; transform: scale(.8); }
.vp__msg{
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 2rem; background: rgba(0,0,0,.75);
  font: 400 1.2rem/1.4 var(--font-ui); color: #d8d6ee;
}
.vp__vacio{
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 9; border-radius: 2.2rem;
  border: .14rem dashed rgba(255,255,255,.16);
  color: rgba(255,255,255,.45); font: 400 1.25rem/1.3 var(--font-ui); letter-spacing: .04em;
}

.vp__bar{
  display: flex; align-items: center; gap: .9rem;
  height: 4.2rem; padding: 0 1.2rem 0 .8rem;
  background: #433b3b; color: #f0eae6;
  font: 400 1rem/1 var(--font-ui);
}
.vp__bar .vp__ib svg{ width: 1.7rem; height: 1.7rem; }
.vp__t{ min-width: 2.6rem; font-variant-numeric: tabular-nums; font-size: .95rem; }

.vp input[type=range]{
  -webkit-appearance: none; appearance: none;
  background: transparent; margin: 0; height: 1.8rem; cursor: pointer;
  --p: 0%;
}
.vp__seek{ flex: 1; min-width: 0; }
.vp__vol{ width: 5.4rem; flex: none; }
.vp input[type=range]::-webkit-slider-runnable-track{
  height: .3rem; border-radius: 1rem;
  background: linear-gradient(90deg, #fff var(--p), #a39b95 var(--p));
}
.vp input[type=range]::-moz-range-track{ height: .3rem; border-radius: 1rem; background: #a39b95; }
.vp input[type=range]::-moz-range-progress{ height: .3rem; border-radius: 1rem; background: #fff; }
.vp input[type=range]::-webkit-slider-thumb{
  -webkit-appearance: none; width: .2rem; height: 1rem; margin-top: -.35rem;
  background: #fff; border: 0; border-radius: .1rem;
}
.vp input[type=range]::-moz-range-thumb{ width: .2rem; height: 1rem; background: #fff; border: 0; border-radius: .1rem; }
.vp input[type=range]:hover::-webkit-slider-thumb{ height: 1.3rem; margin-top: -.5rem; width: .3rem; }

.vp__setwrap{ position: relative; }
.vp__menu{
  position: absolute; right: 0; bottom: 3.2rem; z-index: 5;
  min-width: 9rem; padding: .5rem;
  border-radius: 1rem; background: #1b1717; box-shadow: 0 1rem 2rem rgba(0,0,0,.5);
}
.vp__menu[hidden]{ display: none; }
.vp__menu button{
  display: block; width: 100%; text-align: left;
  padding: .55rem .9rem; border: 0; background: none; border-radius: .6rem; cursor: pointer;
  font: 400 1rem/1 var(--font-ui); color: #f0eae6;
}
.vp__menu button:hover{ background: rgba(255,255,255,.12); }
.vp__menu button[aria-checked="true"]{ color: #8f8dff; }
.vp__menu button[aria-checked="true"]::before{ content: "✓ "; }

.vp__nav{ display: flex; justify-content: center; gap: 7.3rem; margin-top: 3.2rem; }
.vp__arrow{
  width: 2.9rem; height: 2.9rem; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff; color: #14134a; cursor: pointer;
  box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.4);
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.vp__arrow svg{ width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vp__arrow:hover{ transform: scale(1.14); background: #8f8dff; color: #fff; }
.vp__arrow:active{ transform: scale(.94); }
.vp__nav[hidden]{ display: none; }

/* ================= CONTACTO ================= */
.contacto{
  width: min(57rem, 92vw);
  margin: 12rem auto 0;
  padding-bottom: 3rem;
  text-align: center;
}
.contacto__card{
  padding: 3.2rem 2rem 3.4rem;
  border-radius: 3.8rem;
  background: linear-gradient(160deg, #0a0a22 0%, #070719 100%);
  box-shadow: 0 2rem 4rem rgba(0,0,0,.4);
}
.contacto__logo{ width: 12.1rem; height: auto; margin: 0 auto; }
.contacto__t{ margin: 1rem 0 .9rem; font: 400 var(--fs-contact)/1.2 var(--font-contact); }
.contacto__lista{ list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.contacto__lista a{
  display: inline-flex; align-items: center; gap: .7rem;
  font: 400 var(--fs-contact)/1.2 var(--font-contact);
  text-decoration: none;
  transition: color .2s, transform .25s var(--ease);
}
.contacto__lista a:hover{ color: #9f9dff; transform: translateY(-.15rem); }
.ico{
  flex: none; width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border: .14rem solid currentColor; border-radius: 50%;
}
.ico svg{ width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal{ margin: 3.4rem 0 0; font: 400 1.1rem/1.4 var(--font-contact); color: #6f6ea3; }

/* ================= VISOR DE FOTOS ================= */
.visor{
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.5rem;
  background: rgba(2,2,12,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s;
}
.visor[hidden]{ display: none; }
.visor.is-open{ opacity: 1; }
.visor__fig{ margin: 0; min-width: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 1rem; }
.visor__fig img{
  max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; margin: auto;
  object-fit: contain; border-radius: .8rem;
  box-shadow: 0 2rem 5rem rgba(0,0,0,.6);
  transition: opacity .25s;
}
.visor__fig img.is-loading{ opacity: .25; }
.visor__cap{ font: 400 1.05rem/1.3 "DM Sans", sans-serif; color: #c9c8e6; text-align: center; }
.visor__cap b{ font-family: "Questrial", sans-serif; font-weight: 400; color: #fff; margin-right: .6rem; }
.visor__btn{
  width: 3.2rem; height: 3.2rem; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: #14134a; cursor: pointer;
  box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.5);
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.visor__btn svg{ width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.visor__btn:hover{ transform: scale(1.12); background: #8f8dff; color: #fff; }
.visor__x{ position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; }
.visor__btn[hidden]{ display: none; }

.toast{
  position: fixed; left: 50%; bottom: 2rem; z-index: 400;
  transform: translate(-50%, 2rem); opacity: 0;
  padding: .8rem 1.4rem; border-radius: 999px;
  background: #fff; color: #14134a; font: 500 1rem/1.2 var(--font-ui);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.4);
  transition: transform .35s var(--ease), opacity .35s; pointer-events: none;
}
.toast.is-on{ transform: translate(-50%, 0); opacity: 1; }

/* ================= ANIMACIONES AL HACER SCROLL ================= */
.js .reveal{
  opacity: 0; transform: translateY(2.4rem);
  transition: opacity .85s var(--ease) var(--d, 0s), transform .85s var(--ease) var(--d, 0s),
              translate .4s var(--ease), scale .4s var(--ease), box-shadow .4s, filter .45s;
}
.js .pill.reveal{ transform: translateX(-2.2rem); }
.js .reveal.in{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal{ opacity: 1; transform: none; }
}

/* ================= TABLET ================= */
@media (max-width: 1000px){
  .topbar{ gap: 2rem; padding-right: 2rem; }
  .menu{ padding-inline: 1.6rem; }
  :root{ --fs-nav: 1.45rem; }
  .panel--foto, .panel--diseno{ padding-inline: 3rem; }
}

/* ================= MÓVIL ================= */
@media (max-width: 760px){
  html{ font-size: 15px; }
  :root{
    --fs-nav: 1.25rem;
    --fs-xl: 2.2rem; --fs-lg: 1.7rem; --fs-md: 1.35rem;
    --fs-text: 1.08rem; --fs-skill: .98rem; --fs-app: .85rem;
    --fs-motto: 1.15rem; --fs-contact: 1.15rem;
  }
  .topbar{ padding: .9rem 1rem; gap: 1rem; }
  .badge{ width: 4.6rem; height: 4.6rem; border-width: .2rem; }
  .is-stuck .badge{ width: 4rem; height: 4rem; }
  .burger{ display: flex; }
  .menu{
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + .4rem);
    height: auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: .8rem 1.4rem; border-radius: 2rem;
    background: linear-gradient(160deg, #07071f 0%, #1c1b86 100%);
    opacity: 0; visibility: hidden; transform: translateY(-.8rem);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .is-stuck .menu{ height: auto; }
  .menu.is-open{ opacity: 1; visibility: visible; transform: none; }
  .menu a{ padding: .9rem 0; border-bottom: .06rem solid rgba(255,255,255,.12); }
  .menu a:last-child{ border-bottom: 0; }
  .menu a::after{ display: none; }
  .menu a.is-active{ color: #9f9dff; }

  .seccion{ margin-top: 6rem; }
  .seccion:first-of-type{ margin-top: 1.5rem; }
  .panel{ padding: 3rem 1.2rem 1.6rem; border-radius: 2.6rem; }
  .card{ border-radius: 2.4rem; }
  .pill--xl{ min-width: 0; padding: .1em .7em .14em; }
  .pill--lg{ min-width: 0; }
  .pill--md{ min-width: 0; padding: .27em 1.2em; }
  .pill--hang{ margin-left: 0; }
  .bio .pill{ margin-left: 0; margin-bottom: -1.5rem; }
  .card--bio{ padding: 3.2rem 1.4rem 6rem; border-top-right-radius: 2.8rem; }
  .bio{ margin-bottom: 6.6rem; }
  .bio__foto{ width: 11rem; height: 11rem; bottom: -6.6rem; }
  .bloque--hab .pill{ margin-left: .6rem; }
  .card--hab{ padding: 1.6rem 1.2rem; border-top-left-radius: 2.4rem; }
  .bloque--sw{ margin-top: 2.2rem; }
  .bloque--sw .pill{ margin-right: .6rem; }
  .card--sw{ padding: 3.2rem .8rem 2.6rem; border-top-right-radius: 2.4rem; }
  .apps{ gap: .4rem; }
  .apps img{ width: 3.9rem; height: 3.9rem; border-radius: .9rem; }
  .apps li{ gap: .6rem; }
  .gear{ width: 100%; gap: 1rem; }
  .gear img:nth-child(3){ left: 0; }
  .motto{ margin-top: 1.8rem; }

  .panel--foto, .panel--diseno{ padding: 2.6rem 1.1rem 1.6rem; }
  .cat + .cat{ margin-top: 2.6rem; }
  .cat > .pill{ margin-bottom: 1.2rem; }
  .albumes{ grid-template-columns: 1fr; gap: 1.6rem; }
  .strip{ border-radius: 1rem; }
  .strip__more{ font-size: 1.5rem; }
  .album__tag{ left: .5rem; bottom: .5rem; padding: .3rem .8rem; }
  .rejilla{ gap: 1.2rem; }
  .cuad{ border-radius: 1.2rem; }

  .panel--video{ padding: 2.2rem .8rem 1.6rem; }
  .vp__frame{ padding: .6rem; border-radius: 1.4rem; }
  .vp__inner{ border-radius: .8rem; }
  .vp__top{ height: 2.6rem; padding: 0 .5rem; }
  .vp__title{ min-width: 0; font-size: .75rem; }
  .vp__bar{ gap: .35rem; height: 3.4rem; padding: 0 .5rem; }
  .vp__bar .vp__ib{ width: 2.1rem; height: 2.1rem; }
  .vp__t{ font-size: .75rem; min-width: 1.9rem; }
  .vp__vol{ display: none; }
  .vp__big{ width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem; }
  .vp__nav{ gap: 3rem; margin-top: 1.8rem; }
  .vp__arrow{ width: 2.7rem; height: 2.7rem; }

  .visor{ grid-template-columns: 1fr; padding: .8rem; }
  .visor__btn--prev, .visor__btn--next{ position: absolute; top: 50%; margin-top: -1.6rem; z-index: 2; opacity: .92; }
  .visor__btn--prev{ left: .6rem; } .visor__btn--next{ right: .6rem; }
  .visor__fig img{ max-height: calc(100vh - 6rem); }

  .contacto{ margin-top: 6rem; }
  .contacto__card{ padding: 2.4rem 1rem 2.6rem; border-radius: 2.6rem; }
  .contacto__lista a{ gap: .5rem; }
  .ico{ width: 2.2rem; height: 2.2rem; }
}

@media (max-width: 380px){
  .contacto__lista a{ font-size: .98rem; }
}
