/* OneKey Modern (refactor) */
/* Mobile-first • Semántico • Performance • CSS moderno */

/* ============================== Tokens ============================== */
:root{
  /* Layout */
  --container: 1120px;
  --headerH: 70px; /* mobile first */

  --radius: 18px;
  --radiusLg: 26px;

  /* Palette */
  --bg: #07070c;
  --bg2:#0b0b12;

  /* Surfaces (glass) */
  --glass: rgba(255,255,255,.18);
  --glass2: rgba(255,255,255,.22);
  --glassBorder: rgba(255,255,255,.35);
  --glassBorder2: rgba(255,255,255,.45);

  /* Text */
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);

  /* On light sections */
  --title: #1f2933;

  /* Accents */
  --accentA: #276e8a;
  --accentB: #00aac1;
  --accentC: #a855f7;
  --accentD: #22c55e;

  /* Shadows */
  --shadow: 0 22px 60px rgba(0,0,0,.45);
  --shadowSoft: 0 10px 26px rgba(0,0,0,.10);
  --shadowSoft2: 0 14px 32px rgba(0,0,0,.14);

  /* Focus */
  --focus: 0 0 0 3px rgba(70,199,255,.35);

  /* WorkCards float */
  --workFloat: 8px;
  --workFloatTime: 4.2s;
}

/* ============================== Reset & base ============================== */
*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(70,199,255,.22), transparent 55%),
    radial-gradient(900px 600px at 50% 90%, rgba(34,197,94,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }
:focus-visible{ outline: none; box-shadow: var(--focus); border-radius: 10px; }

/* Subtle noise overlay */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: .06;
  mix-blend-mode: overlay;
}

/* ============================== Layout helpers ============================== */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.snap-root{
  scroll-snap-type: y proximity;
  background: #f7f6f1;
}

.snap{
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--headerH) + 10px);
}

/* ============================== Header ============================== */
.header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--headerH);
  z-index: 9999;          /* ✅ SIEMPRE arriba */
  display: flex;
  align-items: flex-start;
  pointer-events: auto;  /* refuerza interacción */
}

.header .container{ width: 98%; max-width: none; }

.header-inner{
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  width: min(1480px, calc(100vw - 40px));
  border-radius: 22px;

  background: var(--glass);
  border: 1px solid var(--glassBorder);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadowSoft);
}

.header-inner::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.25) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: .18;
  mix-blend-mode: overlay;
}

.header-inner::after{
  content:"";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  opacity: .25;
}

.header.is-scrolled .header-inner{
  background: var(--glass2);
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.logo-img{
  height: 40px;
  width: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

/* Desktop nav hidden on mobile */
.nav{ display: none; }

.nav-link{
  color: var(--title);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.nav-link:hover{
  color: #00364b;
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

/* Mobile toggle (hamburguesa clásica 3 líneas) */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;

  /* glass acorde al header */
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.35);

  /* IMPORTANTE: líneas oscuras para que se vean */
  color: #d9d9d9;

  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
}

.nav-toggle:focus-visible{ outline:none; box-shadow:var(--focus); }

/* Línea del medio */
.nav-toggle-bar{
  position:absolute;
  left:50%;
  top:50%;
  width:20px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform:translate(-50%,-50%);
}

/* Línea superior e inferior */
.nav-toggle::before,
.nav-toggle::after{
  content:"";
  position:absolute;
  left:50%;
  width:20px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform:translateX(-50%);
}

.nav-toggle::before{ top:15px; } /* arriba */
.nav-toggle::after{ bottom:15px; } /* abajo */



/* Mobile nav panel */
.mobile-nav{
  position: absolute;
  top: calc(var(--headerH) - 6px);
  left: 16px;
  right: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(14,14,22,.88);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.mobile-nav-link{
  display: block;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-link + .mobile-nav-link{ margin-top: 10px; }

/* ============================
   HERO – base + overlay KOI (OneKey)
   ============================ */
.hero{
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--headerH) + 18px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

/* Base: degradé hacia la página clara */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;

  background: linear-gradient(
    180deg,
    rgba(39,110,138,0.18) 0%,
    rgba(0,170,193,0.18) 35%,
    rgba(0,170,193,0.12) 60%,
    #f7f6f1 100%
  );
}

/* Overlay tipo KOI – oscuro arriba + movimiento */
.hero::before{
  content:"";
  position:absolute;
  left:-35%;
  right:-35%;
  top:-14%;
  height:82%;
  pointer-events:none;
  z-index:2;

  /* 🔵 Azul / Celeste OneKey */
  background:
    radial-gradient(1300px 520px at 20% 0%,
      rgba(10,60,85,.85), transparent 60%),
    radial-gradient(1300px 520px at 80% 14%,
      rgba(0,130,170,.65), transparent 55%),
    linear-gradient(
      180deg,
      rgba(6,32,48,.65) 0%,
      rgba(6,32,48,.35) 45%,
      rgba(6,32,48,0) 85%
    );

  filter: blur(0.35px);
  transform: translateZ(0);
  animation: heroTopDrift 4.8s cubic-bezier(.45,0,.55,1) infinite;

}

/* Contenido siempre arriba */
.hero-grid{
  position: relative;
  z-index: 3;
}

@keyframes heroTopDrift{
  0%{
    transform: translate(-6%, -4%) scale(1);
  }
  35%{
    transform: translate(4%, 3%) scale(1.06);
  }
  65%{
    transform: translate(-2%, 1%) scale(1.03);
  }
  100%{
    transform: translate(-6%, -4%) scale(1);
  }
}

/* Mobile */
/* Mobile (solo overlay + animación más perceptible) */
@media (max-width: 720px){
  .hero::before{
    height: 58%;
    top: -12%;
    filter: none;              /* en mobile el blur puede “matar” la percepción */
    animation-duration: 4.4s;
    will-change: transform;
  }

  @keyframes heroTopDrift{
    0%   { transform: translate(-9%, -6%) scale(1.02); }
    40%  { transform: translate(6%, 4%)  scale(1.10); }
    70%  { transform: translate(-3%, 2%) scale(1.06); }
    100% { transform: translate(-9%, -6%) scale(1.02); }
  }
}

/* Reduced motion (afuera, no dentro de otro @media) */
@media (prefers-reduced-motion: reduce){
  .hero::before{ animation: none; }
}




.hero-grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  padding: 48px 0 42px;
}

.titulo-hero{
  margin: 0;
  font-size: clamp(22px, 7vw, 52px);
  line-height: .95;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--title);
}

.accent{
  background: linear-gradient(90deg, var(--accentA), var(--accentB));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ============================== Sections ============================== */
.section,
.gallery-section{
  position: relative;
  padding: 60px 0;
}

.section-title{
  color: var(--title);
  margin: 0 0 20px;
  font-size: clamp(26px, 5.5vw, 38px);
  letter-spacing: -0.01em;
  font-weight: 500;
  text-align: center;
}

.section-title .title-strong{
  font-weight: 700;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.45),
    0 3px 6px rgba(0,0,0,0.35),
    0 6px 12px rgba(0,0,0,0.25);
}

.section-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
  text-align: center;
}

.section-header h2{
  margin: 0;
  font-size: clamp(22px, 5vw, 34px);
  letter-spacing: -0.01em;
  color: var(--title);
}

.section-header p{
  margin: -4px 0 0;
  color: var(--title);
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.6;
}

/* Reveal */
.reveal-on-scroll{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ============================== Chips ============================== */
.section-alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.chips-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--title);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

/* ============================== Pricing ============================== */
.pricing-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.pricing-card{
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--shadowSoft);
  overflow: hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

.pricing-card::after{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.28), transparent 55%);
  opacity: .35;
}

.pricing-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadowSoft2);
  border-color: var(--glassBorder2);
  background: rgba(255,255,255,.22);
}

.pricing-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--title);
  position: relative;
  z-index: 1;
}

.pricing-tag{
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(31,41,51,.72);
  position: relative;
  z-index: 1;
}

.pricing-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.pricing-list li{
  color: rgba(31,41,51,.85);
  line-height: 1.5;
  font-size: 14px;
}

.pricing-list li::before{
  content: "•";
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  color: var(--accentA);
  font-weight: 900;
}

/* ============================== CTA ============================== */
.section-cta{ padding: 96px 0; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  will-change: transform;
}

.btn-primary,
.btn-cta-final{
  color: #fff;
  background: linear-gradient(90deg, #6fd3e8, #3a8fa6);
  border: none;
  box-shadow: 0 12px 28px rgba(58,143,166,.25), inset 0 1px 0 rgba(255,255,255,.35);
}

.btn-primary:hover,
.btn-cta-final:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 36px rgba(58,143,166,.32), inset 0 1px 0 rgba(255,255,255,.45);
}

.btn-primary:active,
.btn-cta-final:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(58,143,166,.25), inset 0 2px 4px rgba(0,0,0,.12);
}

.btn-cta-final{
  width: 100%;
  max-width: 360px;
  min-width: 0;
  padding: 14px 18px;
  justify-content: center;
}

.cta-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--shadowSoft);
  position: relative;
  overflow: hidden;
}

.cta-inner::after{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.28), transparent 60%);
  opacity: .35;
}

.cta-inner::before{
  content:"";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(900px 380px at 15% 0%, rgba(39,110,138,.18), transparent 60%),
    radial-gradient(900px 380px at 85% 20%, rgba(0,170,193,.16), transparent 60%);
  opacity: .9;
}

.cta-inner > *{ position: relative; z-index: 1; }

.cta-copy h2{
  margin: 0 0 8px;
  font-size: clamp(22px, 6vw, 34px);
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--title);
}

.cta-copy p{
  margin: 0;
  color: rgba(31,41,51,.72);
  max-width: 58ch;
  line-height: 1.6;
  font-size: 14px;
}

/* ============================== Footer ============================== */
.footer{
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
}

.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-left p{ margin: 0; }

.footer-small{
  color: var(--muted2);
  font-size: 13px;
  margin-top: 6px;
}

.footer-social{
  display: flex;
  gap: 10px;
}

.footer-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background-color .18s ease;
}

.footer-icon:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

.footer-icon svg{ width: 22px; height: 22px; fill: currentColor; }

/* ============================== Gallery (full width) ============================== */
.gallery-full{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

.gallery-transparent{
  background: transparent;
  padding-top: 90px;
  padding-bottom: 90px;
}

/* Rail */
.workRail{
  max-width: none;
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 78vw);
  gap: 34px;
  overflow-x: auto;
  padding: 40px 4vw 34px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  scroll-behavior: smooth;
}
.workRail::-webkit-scrollbar{ display: none; }
.workRail.is-dragging{ cursor: grabbing; scroll-behavior: auto; }

.workCard{
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radiusLg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  transform: rotate(var(--rot, -6deg));
  transform-origin: 50% 30%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
  animation: workDriftUp var(--workFloatTime) linear infinite;
}

.workCard:nth-child(even){ animation-name: workDriftDown; }

.workCard:nth-child(3n){ animation-delay: -0.9s; }
.workCard:nth-child(4n){ animation-delay: -1.6s; }
.workCard:nth-child(5n){ animation-delay: -0.4s; }

@keyframes workDriftUp{
  0%   { transform: translateY(0) rotate(var(--rot, -6deg)); }
  25%  { transform: translateY(calc(var(--workFloat) * -0.55)) rotate(var(--rot, -6deg)); }
  50%  { transform: translateY(calc(var(--workFloat) * -1)) rotate(var(--rot, -6deg)); }
  75%  { transform: translateY(calc(var(--workFloat) * -0.55)) rotate(var(--rot, -6deg)); }
  100% { transform: translateY(0) rotate(var(--rot, -6deg)); }
}

@keyframes workDriftDown{
  0%   { transform: translateY(0) rotate(var(--rot, -6deg)); }
  25%  { transform: translateY(calc(var(--workFloat) * 0.55)) rotate(var(--rot, -6deg)); }
  50%  { transform: translateY(var(--workFloat)) rotate(var(--rot, -6deg)); }
  75%  { transform: translateY(calc(var(--workFloat) * 0.55)) rotate(var(--rot, -6deg)); }
  100% { transform: translateY(0) rotate(var(--rot, -6deg)); }
}

/* Bg image */
.workCard__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* CTA band */


.workCard__cta{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--title);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.workCard__cta:hover{ text-decoration: underline; }

/* ============================== Breakpoints (min-width) ============================== */
@media (min-width: 721px){
  :root{ --headerH: 76px; }

  .container{ width: min(var(--container), calc(100% - 40px)); }
  .workRail{
    grid-auto-columns: minmax(240px, 320px);
    padding-left: 8vw;
    padding-right: 8vw;
    gap: 60px;
  }

  .cta-inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 28px;
  }

  .btn-cta-final{ width: auto; min-width: 280px; }
}

/* ============================== Tablet & Mobile ============================== */
@media (max-width: 1024px){

  /* ✅ hamburguesa bien a la derecha */
  .header-inner{
    grid-template-columns: auto 1fr auto; /* logo | espacio | toggle */
  }
  .nav{ display: none; }
  .nav-toggle{
    display: flex;
    justify-self: end;
    margin-left: auto;
  }

  /* ✅ dropdown acorde al estilo glass del sitio */
  .mobile-nav{
    left: 12px;
    right: 12px;

    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
  }

  .mobile-nav-link{
    color: var(--title);
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
  }


  .hero{
    min-height: 70vh;          /* 🔑 ni full screen ni corto */
    padding-bottom: -50px;
    display: flex;
    align-items: center;       /* centra verticalmente */
  }

  .hero-grid{
    padding-top: 14px;         /* baja un poco el título */
  }
}
@media (max-width: 720px){
  :root{ --headerH: 70px; }

  .mobile-nav{
    left: 10px;
    right: 10px;
  }

  .hero-grid{
    padding: 8px 0 12px; /* todavía más compacto en celu */
  }
}


@media (min-width: 1025px){
  /* show desktop nav */
  .nav{ display: flex; align-items: center; justify-content: center; gap: 8px; }

  /* header: menu perfectly centered */
  .header-inner{
    grid-template-columns: 1fr auto 1fr;
  }
  .logo{ justify-self: start; }
  .nav{ justify-self: center; }
  .nav-toggle{ justify-self: end; visibility: hidden; } /* keeps spacing */

  .hero-grid{
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    padding: 0;
    gap: 34px;
  }

  .pricing-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner{
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ============================== Reduced motion ============================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .wave-track{ animation: none; }
  .reveal-on-scroll{ transition: none; transform: none; opacity: 1; }
  .workCard{ animation: none; }
  .btn, .nav-link, .pricing-card, .footer-icon, .workCard{ transition: none; }
}


@media (max-width: 720px){
.titulo-hero{
    text-align: center;        /* ✅ centrado */
    font-size: calc(1em + 16px);/* ✅ +4px reales */
  }
  /* Reduce padding superior de la galería */
  #galeria.gallery-transparent{
    padding-top: 0px;   /* antes 90px */
  }

  /* Opcional: ajusta snap para que no empuje */
  .snap{
    scroll-margin-top: var(--headerH);
  }
}

/* Hamburguesa: cambio de color al scroll (mobile) */
@media (max-width: 1024px){
  .header .nav-toggle{
    color: #d9d9d9; /* estado inicial */
  }

  .header.is-scrolled .nav-toggle{
    color: var(--accentA); /* al hacer scroll */
  }
}


/* ==============================
   Logo swap (fix: no colapsa el ancho)
   ============================== */

.logo{
  position: relative;
  display: inline-block; /* ✅ el contenedor toma el ancho del logo-light */
  height: 40px;          /* mismo alto que tu logo */
}

/* El logo principal define ancho/alto */
.logo .logo-light{
  position: relative;
  display: block;
  height: 40px;
  width: auto;
  opacity: 1;
  transition: opacity .25s ease;
}

/* El logo alternativo va encima */
.logo .logo-dark{
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 40px;
  width: auto;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

/* Swap cuando hay scroll */
.header.is-scrolled .logo .logo-light{ opacity: 0; }
.header.is-scrolled .logo .logo-dark { opacity: 1; }

/* Desktop opcional si querés un pelín más grande */
@media (min-width: 1025px){
  .logo{ height: 42px; }
  .logo .logo-light,
  .logo .logo-dark{ height: 42px; }
}
/* ==============================
   About / Sobre mí
   ============================== */
.about .section-header p{
  max-width: 62ch;
}

.about-card{
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 22px;
  align-items: center;

  padding: 22px;
  border-radius: 28px;

  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--shadowSoft);
  position: relative;
  overflow: hidden;
}

.about-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(39,110,138,.18), transparent 60%),
    radial-gradient(900px 380px at 90% 10%, rgba(0,170,193,.16), transparent 60%);
  opacity: .9;
}

.about-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(255,255,255,.28), transparent 60%);
  opacity: .35;
}

.about-card > *{
  position: relative;
  z-index: 1;
}

.about-media{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.about-photo{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.about-copy{
  color: var(--title);
}

.about-copy h3{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-name{
  background: linear-gradient(90deg, var(--accentA), var(--accentB));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-copy p{
  margin: 0 0 12px;
  color: rgba(31,41,51,.78);
  line-height: 1.65;
  font-size: 14px;
  max-width: 70ch;
}

.about-list{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-list li{
  color: rgba(31,41,51,.85);
  font-size: 14px;
  line-height: 1.5;
}

.about-list li::before{
  content: "•";
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  color: var(--accentA);
  font-weight: 900;
}

.about-actions{
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 1024px){
  .about-card{
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .about-photo{
    height: 300px;
  }

  .about-actions .btn{
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
}

@media (max-width: 720px){
  .about-photo{
    height: 260px;
  }
  .about-copy h3{
    font-size: 18px;
  }
}
