/* =====================================================================
   TOKITEK — Rediseño 2026 · geo-inmersivo
   ===================================================================== */

:root {
  /* Brand palette (built around #1a74c0) */
  --navy-900: #061626;
  --navy-800: #0a2540;
  --navy-700: #0e3358;
  --blue:     #1a74c0;
  --blue-600: #1463ab;
  --blue-300: #7db8e8;
  --cyan:     #1fc4dd;
  --cyan-soft:#9fe8f2;
  --accent:   #1fc4dd;

  --ink:    #122033;
  --slate:  #51637a;
  --slate-2:#73849a;
  --cloud:  #eef4fa;
  --cloud-2:#f7fafd;
  --line:   #dce6f1;
  --white:  #ffffff;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(10,37,64,.06);
  --shadow: 0 18px 40px -18px rgba(10,37,64,.28);
  --shadow-lg: 0 40px 80px -30px rgba(10,37,64,.45);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 130px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- shared headings ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--cyan); border-radius: 2px; }
.kicker--light { color: var(--cyan-soft); }
.kicker--light::before { background: var(--cyan); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-top: 14px; }
.section__lead { margin-top: 16px; color: var(--slate); font-size: 1.12rem; max-width: 64ch; }
.section__head--light .section__title,
.section__head--light .section__lead { color: #fff; }
.section__head--light .section__lead { color: #c6d6e6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 100px; font-weight: 700; font-size: .98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .2s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(26,116,192,.8); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(26,116,192,.9); }
.btn--accent { background: var(--cyan); color: var(--navy-900); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(31,196,221,.7); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.tag {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: rgba(26,116,192,.1); padding: 5px 12px; border-radius: 100px;
}
.tag--soft { background: var(--cloud); color: var(--slate); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.header__inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; transition: filter .3s ease; filter: brightness(0) invert(1); }

.nav { display: flex; gap: 30px; margin-left: 18px; margin-right: auto; }
.nav a {
  font-weight: 600; font-size: .98rem; color: rgba(255,255,255,.86); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--cyan);
  transition: width .25s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 100px; padding: 3px; gap: 2px; }
.lang__btn {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: rgba(255,255,255,.75);
  padding: 5px 11px; border-radius: 100px; transition: background .2s, color .2s;
}
.lang__btn.is-active { background: var(--cyan); color: var(--navy-900); }

/* scrolled state — solid white header */
.site-header.is-scrolled {
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(10,37,64,.4);
}
.is-scrolled .brand__logo { filter: none; }
.is-scrolled .nav a { color: var(--slate); }
.is-scrolled .nav a:hover { color: var(--ink); }
.is-scrolled .lang { border-color: var(--line); }
.is-scrolled .lang__btn { color: var(--slate); }
.is-scrolled .lang__btn.is-active { background: var(--blue); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.is-scrolled .hamburger span { background: var(--ink); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; isolation: isolate; color: #fff;
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 96px));
  padding-bottom: clamp(64px, 10vw, 120px);
  background: var(--navy-800);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__map {
  width: 100%; height: 100%; object-fit: cover; opacity: .26;
  filter: saturate(1.15) contrast(1.05);
  transform: scale(1.06);
}
.hero__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 78% 8%, rgba(31,196,221,.22), transparent 60%),
    linear-gradient(180deg, rgba(6,22,38,.55) 0%, rgba(8,30,52,.78) 45%, var(--navy-800) 100%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(125,184,232,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,184,232,.10) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 90%);
}

.hero__inner { position: relative; max-width: 880px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan-soft); background: rgba(31,196,221,.12);
  border: 1px solid rgba(31,196,221,.32); padding: 8px 16px; border-radius: 100px;
}
.hero__title {
  font-size: clamp(2.5rem, 6.6vw, 4.6rem); font-weight: 800; margin-top: 22px;
  letter-spacing: -.025em; max-width: 16ch;
}
.hero__title { background: linear-gradient(180deg,#fff 60%, #cfe6f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { margin-top: 22px; font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: #cfdcea; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: 52px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.14);
}
.stat dt { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: #fff; }
.stat dt span { color: var(--cyan); }
.stat dd { font-size: .92rem; color: #a9bccf; margin-top: 2px; max-width: 22ch; }

/* hero pins */
.pin { position: absolute; display: inline-flex; align-items: center; gap: 8px; }
.pin b {
  font-family: var(--font-body); font-weight: 700; font-size: .8rem; color: #06283f;
  background: #fff; padding: 5px 12px; border-radius: 100px; box-shadow: var(--shadow);
  white-space: nowrap;
}
.pin__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(31,196,221,.5); position: relative; z-index: 2; }
.pin__pulse {
  position: absolute; left: -3px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  border-radius: 50%; background: var(--cyan); opacity: .5; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: translateY(-50%) scale(.6); opacity: .6; } 100% { transform: translateY(-50%) scale(2.8); opacity: 0; } }
.pin--1 { top: 24%; right: 7%; animation: float 6s ease-in-out infinite; }
.pin--2 { top: 52%; right: 16%; animation: float 7s ease-in-out infinite .6s; }
.pin--3 { top: 72%; right: 4%; animation: float 6.5s ease-in-out infinite 1.1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =====================================================================
   PARTNERS MARQUEE
   ===================================================================== */
.partners-bar { padding-block: 40px; background: var(--cloud-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.partners-bar__label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 26px; }
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 60px; width: max-content; animation: scroll 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 38px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.marquee__track img:hover { opacity: 1; filter: none; }
.marquee__track img.is-azti { height: 46px; opacity: .9; filter: none; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   VISION
   ===================================================================== */
.vision { background: var(--white); }
.vision__inner { max-width: 920px; text-align: center; margin-inline: auto; }
.vision__inner .kicker { justify-content: center; }
.vision__title { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 18px; }
.vision__body { margin-top: 22px; font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--slate); }

/* =====================================================================
   FEATURES
   ===================================================================== */
.features { background: var(--cloud-2); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.feature h3 { font-size: 1.16rem; }
.feature p { margin-top: 10px; color: var(--slate); font-size: .98rem; }

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.products { background: #fff; }
.product-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.product-feature--reverse .product-feature__media { order: 2; }
.product-feature__media {
  border-radius: var(--radius-lg); padding: 38px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 0%, #eaf4fc, #dcebf7);
  position: relative; overflow: hidden; min-height: 420px;
}
.product-feature__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26,116,192,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(26,116,192,.07) 1px, transparent 1px);
  background-size: 30px 30px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.product-feature__media img { position: relative; max-height: 380px; width: auto; filter: drop-shadow(0 30px 50px rgba(10,37,64,.28)); }
.product-feature__title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 16px 0 14px; }
.product-feature__ico { width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.product-feature__body p { color: var(--slate); font-size: 1.08rem; }
.product-feature__apps { margin-top: 16px !important; font-weight: 700; color: var(--blue) !important; font-size: .92rem !important; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 14px; }
.pcard {
  background: var(--cloud-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.pcard__ico { width: 50px; height: 50px; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.pcard .tag { margin-bottom: 10px; }
.pcard h3 { font-size: 1.24rem; }
.pcard p { margin-top: 9px; color: var(--slate); font-size: .94rem; }

/* =====================================================================
   BEACHES (highlight, dark)
   ===================================================================== */
.beaches { position: relative; isolation: isolate; color: #fff; padding-block: clamp(72px, 10vw, 140px); background: var(--navy-900); overflow: hidden; }
.beaches__photo { position: absolute; inset: 0; z-index: -1; }
.beaches__photo img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.beaches::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,22,38,.86), rgba(10,37,64,.94));
}
.beaches__feats {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 34px;
  max-width: 880px; margin-bottom: clamp(36px, 5vw, 56px);
}
.beaches__feats li { position: relative; padding-left: 32px; color: #cfe0ef; font-size: 1rem; }
.beaches__feats li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(31,196,221,.22);
}
.beaches__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bcard {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 26px; backdrop-filter: blur(8px); transition: transform .3s, border-color .3s, background .3s;
}
.bcard:hover { transform: translateY(-6px); border-color: rgba(31,196,221,.5); background: rgba(255,255,255,.08); }
.bcard__top { display: flex; align-items: center; gap: 16px; }
.bcard__ico { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.bcard__top h3 { font-size: 1.5rem; color: #fff; }
.bcard__loc { font-size: .85rem; color: var(--cyan-soft); font-weight: 600; margin-top: 2px; }
.bcard__desc { margin-top: 16px; color: #c4d5e6; }
.bcard__photo { margin-top: 18px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; border: 1px solid rgba(255,255,255,.12); }
.bcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.store { display: flex; gap: 12px; margin-top: 18px; }
.store img { height: 42px; width: auto; }
.beaches__azti { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 48px); color: #b9cadb; font-size: .95rem; }
.beaches__azti img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team { background: var(--cloud-2); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__photo {
  width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, #e8f3fc, #d3e7f6); border: 3px solid #fff; box-shadow: var(--shadow);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.3rem; }
.member__role { color: var(--blue); font-weight: 700; font-size: .92rem; margin-top: 4px; }
.member__link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--slate); border-bottom: 2px solid var(--cyan); padding-bottom: 2px; transition: color .2s; }
.member__link:hover { color: var(--ink); }

/* =====================================================================
   COLLABORATORS
   ===================================================================== */
.collab { background: #fff; }
.collab__azti {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, #f3f9ff, #eaf3fb); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); margin-bottom: 40px;
}
.collab__azti-logo { height: 84px; width: auto; }
.collab__azti h3 { font-size: 1.5rem; }
.collab__azti p { margin-top: 8px; color: var(--slate); max-width: 60ch; }
.collab__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.collab__grid img {
  height: 100%; max-height: 56px; width: auto; margin: auto; padding: 24px 16px;
  filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s, transform .25s;
  background: var(--cloud-2); border-radius: var(--radius-sm); box-sizing: content-box; max-width: 80%;
}
.collab__grid img:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { background: var(--navy-800); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 500px at 85% 20%, rgba(31,196,221,.18), transparent 60%);
}
.contact__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.contact__text .section__title { color: #fff; }
.contact__text .section__lead { color: #c6d6e6; }
.contact__text .btn { margin-top: 26px; }
.contact__list { list-style: none; padding: 0; display: grid; gap: 18px; }
.contact__list li {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 24px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
}
.contact__lbl { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-soft); font-weight: 700; }
.contact__list a, .contact__list span:not(.contact__lbl) { font-size: 1.1rem; font-weight: 600; color: #fff; }
.contact__list a:hover { color: var(--cyan); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--navy-900); color: #9fb3c8; padding-top: 60px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__logo { height: 28px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { max-width: 34ch; font-size: .95rem; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .9rem; transition: background .2s, transform .2s;
}
.footer__social a:hover { background: var(--blue); transform: translateY(-3px); }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__navtitle { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #6f86a0; margin-bottom: 4px; }
.footer__nav a { font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; font-size: .85rem;
}
.footer__bottom a:hover { color: #fff; }

/* =====================================================================
   REVEAL ANIMATIONS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* staggered hero load */
.hero .reveal { transform: translateY(18px); }
.hero .reveal.in { transition-delay: .05s; }
.hero__title.in { transition-delay: .12s; }
.hero__subtitle.in { transition-delay: .2s; }
.hero__cta.in { transition-delay: .28s; }
.hero__stats.in { transition-delay: .36s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .collab__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  /* mobile menu */
  .site-header.menu-open { background: rgba(255,255,255,.98); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
  .menu-open .brand__logo { filter: none; }
  .menu-open .hamburger span { background: var(--ink); }
  .menu-open .lang { border-color: var(--line); }
  .menu-open .lang__btn { color: var(--slate); }
  .menu-open .lang__btn.is-active { background: var(--blue); color: #fff; }
  .nav.is-open {
    display: flex; position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; padding: 8px var(--gut) 22px; margin: 0; box-shadow: var(--shadow); border-top: 1px solid var(--line);
    animation: dropdown .3s ease;
  }
  .nav.is-open a { color: var(--ink); padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav.is-open a::after { display: none; }
  @keyframes dropdown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

  .product-feature, .product-feature--reverse .product-feature__media { grid-template-columns: 1fr; order: 0; }
  .product-feature__media { order: -1 !important; }
  .beaches__cards { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .pin b { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .features__grid, .product-grid, .team__grid { grid-template-columns: 1fr; }
  .collab__grid { grid-template-columns: repeat(3, 1fr); }
  .beaches__feats { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .stat { flex: 1 1 40%; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .store img { height: 38px; }
}

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

/* =====================================================================
   ITERACIÓN 2 — apps destacadas, modal, radar hero, prensa, fixes
   ===================================================================== */

/* ---- clickable cards + more link ---- */
.is-clickable { cursor: pointer; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--blue); }
.more-link::after { content: "→"; transition: transform .25s ease; }
.is-clickable:hover .more-link::after { transform: translateX(5px); }
.more-link--light { color: var(--cyan-soft); }

/* ---- team: 2 members centered ---- */
.team__grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }

/* ---- APPS DESTACADAS ---- */
.apps { background: var(--cloud-2); }
.apps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.appcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.appcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.appcard:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.appcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #eaf4fc, #dcebf7); }
.appcard__shot { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.appcard:hover .appcard__shot { transform: scale(1.05); }
.appcard__ico { position: absolute; left: 22px; bottom: -26px; width: 72px; height: 72px; border-radius: 18px; border: 3px solid #fff; box-shadow: var(--shadow); }
.appcard__body { display: flex; flex-direction: column; flex: 1; padding: 38px 24px 26px; }
.appcard__body .tag { align-self: flex-start; margin-bottom: 12px; }
.appcard__body h3 { font-size: 1.4rem; }
.appcard__tagline { margin-top: 6px; font-weight: 600; color: var(--ink); }
.appcard__desc { margin-top: 10px; color: var(--slate); font-size: .96rem; flex: 1; }

/* note card in beaches reuses .bcard; just tighten photo */
.bcard--note .bcard__photo { opacity: .9; }

/* ---- HERO radar reticle ---- */
.reticle { position: absolute; top: 0; left: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; pointer-events: none; opacity: 0; z-index: 5; transition: opacity .3s ease; }
.reticle.is-active { opacity: 1; }
.reticle i { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.reticle i:nth-child(1) { width: 52px; height: 52px; border: 1.5px solid rgba(31,196,221,.55); }
.reticle i:nth-child(2) { width: 84px; height: 84px; border: 1.5px solid rgba(31,196,221,.18); border-top-color: rgba(31,196,221,.9); animation: reticleSpin 4s linear infinite; }
.reticle i:nth-child(3) { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 12px 2px rgba(31,196,221,.8); }
@keyframes reticleSpin { to { transform: rotate(360deg); } }

/* ---- HERO click ping ---- */
.ping { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--cyan); pointer-events: none; z-index: 5; animation: ping .7s ease-out forwards; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(8); opacity: 0; } }

/* ---- HERO pins as buttons ---- */
.hero__pins { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pin { pointer-events: auto; padding: 0; border: 0; background: none; }
.pin:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; border-radius: 100px; }
.pin.is-located .pin__dot { animation: locate .6s ease-out; }
.pin.is-located::after { content: ""; position: absolute; left: -3px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); border-radius: 50%; border: 2px solid var(--cyan); animation: locateRing .6s ease-out; }
@keyframes locate { 0% { transform: scale(1); } 35% { transform: scale(1.9); } 100% { transform: scale(1); } }
@keyframes locateRing { 0% { transform: translateY(-50%) scale(.5); opacity: .9; } 100% { transform: translateY(-50%) scale(4.5); opacity: 0; } }

/* ---- MODAL ---- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,22,38,.62); backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lg); animation: modalIn .3s cubic-bezier(.2,.7,.2,1);
}
.modal__close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; font-size: 1.7rem; line-height: 1; color: var(--slate); background: var(--cloud); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--line); color: var(--ink); }
.modal__head { display: flex; align-items: center; gap: 18px; padding-right: 40px; }
.modal__icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.modal__headtext .tag { margin-bottom: 8px; }
.modal__title { font-size: clamp(1.4rem, 4vw, 1.8rem); }
.modal__tagline { margin-top: 18px; font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.modal__desc { margin-top: 10px; color: var(--slate); }
.modal__foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.modal__stores { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__stores img { height: 46px; width: auto; }
.modal__ctaNote { font-size: .96rem; color: var(--slate); flex: 1; min-width: 180px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
body.modal-open { overflow: hidden; }

/* ---- PRENSA ---- */
.prensa { background: #fff; }
.prensa__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news { display: flex; flex-direction: column; background: var(--cloud-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .3s, box-shadow .3s, background .3s; }
.news:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.news__src { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.news__title { font-family: var(--font-display); font-size: 1.16rem; line-height: 1.28; margin-top: 12px; flex: 1; color: var(--ink); }
.news__more { margin-top: 16px; }

/* ---- collab logos: fix distortion (preserve aspect ratio) ---- */
.collab__grid img { width: 100%; height: 88px; max-height: none; max-width: none; object-fit: contain; padding: 20px 18px; box-sizing: border-box; }

/* ---- responsive (iteración 2) ---- */
@media (max-width: 1000px) {
  .apps__grid { grid-template-columns: repeat(3, 1fr); }
  .prensa__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .apps__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .prensa__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team__grid { grid-template-columns: 1fr; max-width: 360px; }
  .modal__head { gap: 14px; }
  .modal__icon { width: 60px; height: 60px; }
}

/* =====================================================================
   ITERACIÓN 3 — iconos SVG, fondos gráficos, vídeos, modal CV/prensa,
   logos enlazados, fix icono appcard, reveal disolución
   ===================================================================== */

/* ---- feature icons as gradient badges (modernized) ---- */
.feature__icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px;
  border-radius: 17px; margin-bottom: 20px; color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px -12px rgba(26,116,192,.75);
}
.feature__icon svg { width: 30px; height: 30px; }

/* ---- app card icon: fully on top, not clipped ---- */
.appcard__body { position: relative; padding-top: 48px; }
.appcard__ico { position: absolute; top: -40px; bottom: auto; left: 24px; width: 76px; height: 76px; border-radius: 19px; border: 3px solid #fff; background: #fff; box-shadow: var(--shadow); }

/* ---- alternating GRAPHIC (dark) sections ---- */
.section--graphic { position: relative; isolation: isolate; background: var(--navy-800); color: #fff; overflow: hidden; }
.section--graphic::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image:
    linear-gradient(rgba(125,184,232,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,184,232,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(130% 130% at 50% 0%, #000 35%, transparent 92%);
  mask-image: radial-gradient(130% 130% at 50% 0%, #000 35%, transparent 92%);
}
.section--graphic::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 520px at 82% 4%, rgba(31,196,221,.16), transparent 62%);
}
.section--graphic .section__title { color: #fff; }
.section--graphic .section__lead { color: #c6d6e6; }
.section--graphic .kicker { color: var(--cyan-soft); }
.section--graphic .kicker::before { background: var(--cyan); }
.section--graphic .more-link { color: var(--cyan-soft); }
.section--graphic .tag { background: rgba(31,196,221,.16); color: var(--cyan-soft); }
/* feature cards on dark */
.section--graphic .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); box-shadow: none; }
.section--graphic .feature:hover { background: rgba(255,255,255,.08); border-color: rgba(31,196,221,.45); box-shadow: var(--shadow-lg); }
.section--graphic .feature h3 { color: #fff; }
.section--graphic .feature p { color: #c4d5e6; }
/* app cards on dark */
.section--graphic .appcard { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section--graphic .appcard:hover { box-shadow: var(--shadow-lg); border-color: rgba(31,196,221,.45); }
.section--graphic .appcard__body h3 { color: #fff; }
.section--graphic .appcard__tagline { color: #fff; }
.section--graphic .appcard__desc { color: #c4d5e6; }

/* ---- VIDEOS ---- */
.videos { background: #fff; }
.videos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vcard { display: flex; flex-direction: column; text-align: left; padding: 0; background: var(--cloud-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; }
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #06121f; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.vcard:hover .vcard__thumb img { transform: scale(1.05); opacity: .85; }
.vcard__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(26,116,192,.94); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .3s ease, background .3s ease; }
.vcard__play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.vcard:hover .vcard__play { transform: scale(1.1); background: var(--cyan); }
.vcard__meta { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px 22px; }
.vcard__meta b { font-family: var(--font-display); font-size: 1.16rem; color: var(--ink); }
.vcard__meta span { color: var(--slate); font-size: .92rem; }
.vcard__frame { aspect-ratio: 16 / 9; }
.vcard__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- collaborator logos as links ---- */
.collab__grid a { display: block; cursor: pointer; border-radius: var(--radius-sm); }
.marquee__track a { display: inline-flex; align-items: center; }

/* ---- modal: round photo (person) + per-app press ---- */
.modal__icon--round { border-radius: 50%; object-fit: cover; }
.modal__press { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.modal__press[hidden] { display: none; }
.modal__press-title { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); font-weight: 700; margin-bottom: 8px; }
.modal__press a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .96rem; transition: color .2s; }
.modal__press a:last-child { border-bottom: 0; }
.modal__press a:hover { color: var(--blue); }
.modal__press a small { display: block; font-size: .72rem; color: var(--slate-2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* ---- reveal: dissolve + displacement ---- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1), filter .85s ease; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero .reveal { transform: translateY(20px); }
/* staggered reveal within grids */
.features__grid .reveal:nth-child(2), .apps__grid .reveal:nth-child(2), .product-grid .reveal:nth-child(2), .videos__grid .reveal:nth-child(2), .prensa__grid .reveal:nth-child(2), .team__grid .reveal:nth-child(2) { transition-delay: .1s; }
.features__grid .reveal:nth-child(3), .apps__grid .reveal:nth-child(3), .product-grid .reveal:nth-child(3), .videos__grid .reveal:nth-child(3) { transition-delay: .2s; }
.features__grid .reveal:nth-child(4), .product-grid .reveal:nth-child(4), .videos__grid .reveal:nth-child(4) { transition-delay: .3s; }

/* ---- responsive (iteración 3) ---- */
@media (max-width: 900px) { .videos__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .reveal { filter: none; } }
