/* ============================================================
   YA SALÍ — 3D sutil, elegante y responsive
   ============================================================ */

:root {
  --primary: #e70b0c;
  --primary-dark: #b8090a;
  --primary-soft: #fef2f2;
  --ink: #0e0e12;
  --ink-2: #2c2c34;
  --muted: #6b6b74;
  --line: #e9e9ee;
  --bg-soft: #f8f8fb;
  --radius: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2,.7,.3,1);

  --shadow-sm: 0 1px 2px rgba(14,14,18,.05), 0 2px 6px rgba(14,14,18,.04);
  --shadow-md: 0 6px 16px -4px rgba(14,14,18,.10), 0 2px 6px -2px rgba(14,14,18,.06);
  --shadow-lg: 0 20px 40px -12px rgba(14,14,18,.16), 0 6px 12px -6px rgba(14,14,18,.08);
  --shadow-xl: 0 40px 80px -24px rgba(14,14,18,.22), 0 12px 24px -12px rgba(14,14,18,.10);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: #fff;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  margin: 0;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0;
}

.container { max-width: 1160px; }

/* ---------- Eyebrow ---------- */
.ys-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

/* ---------- Secciones ---------- */
.ys-section { padding: 110px 0; }
.ys-section--soft { background: var(--bg-soft); }

.ys-head { max-width: 620px; margin: 0 auto 60px; text-align: center; }
.ys-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem) !important; margin-bottom: 16px; }
.ys-head p { font-size: 1.02rem; color: var(--muted); margin: 0; }

/* ---------- Botón ---------- */
.ys-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 8px 20px -6px rgba(14,14,18,.30);
  transition: all .25s var(--ease);
}
.ys-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 14px 28px -8px rgba(231,11,12,.40);
}

/* ============================================================
   HEADER
   ============================================================ */
.ys-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 0;
}
.ys-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ys-brand img { max-width: 100px; height: auto; }

.ys-nav { display: flex; align-items: center; gap: 32px; }
.ys-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.ys-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
  border-radius: 2px;
}
.ys-nav a:hover { color: var(--primary); }
.ys-nav a:hover::after { transform: scaleX(1); }

.ys-social { display: flex; gap: 12px; align-items: center; }
.ys-social a img {
  width: 16px; height: 16px;
  opacity: .35;
  filter: grayscale(1);
  transition: all .2s var(--ease);
}
.ys-social a:hover img { opacity: 1; filter: none; }

/* ============================================================
   HERO
   ============================================================ */
.ys-hero {
  padding-top: 150px;
  padding-bottom: 100px;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, #fef2f2 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafafd 100%);
}

.ys-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.ys-hero__copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 22px;
}
.ys-hero__copy h1 em {
  font-style: normal;
  color: var(--primary);
}
.ys-hero__copy p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 36px;
}

.ys-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ys-store img {
  height: 48px;
  width: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
}
.ys-store:hover img { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.ys-hero__meta {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ys-hero__meta div strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ys-hero__meta div span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Escena 3D del hero ---------- */
.ys-hero__visual {
  perspective: 1000px;
}

.ys-scene {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}

.ys-scene__shadow {
  position: absolute;
  bottom: -8%;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(14,14,18,.18), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  transform: translateZ(-40px);
}

.ys-scene__img {
  position: relative;
  z-index: 1;
  transform: translateZ(40px);
  filter: drop-shadow(0 30px 50px rgba(14,14,18,.14));
}
.ys-scene__img img { width: 100%; }

.ys-scene__badge {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  transform: translateZ(80px);
}
.ys-scene__badge span { font-size: 16px; }

.ys-scene__badge--1 {
  top: 8%;
  left: -4%;
  animation: float1 5s ease-in-out infinite;
}
.ys-scene__badge--2 {
  bottom: 12%;
  right: -2%;
  animation: float2 6s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate3d(0,0,80px); }
  50% { transform: translate3d(0,-8px,80px); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0,0,80px); }
  50% { transform: translate3d(0,-10px,80px); }
}

/* ============================================================
   SPLIT
   ============================================================ */
.ys-split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.ys-app-frame {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(14,14,18,.04),
    0 20px 48px -16px rgba(14,14,18,.20),
    0 8px 16px -8px rgba(14,14,18,.10);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ys-app-frame:hover {
  transform: perspective(1000px) rotateY(0);
  box-shadow:
    0 0 0 1px rgba(14,14,18,.04),
    0 30px 60px -20px rgba(14,14,18,.26),
    0 12px 24px -10px rgba(14,14,18,.12);
}
.ys-app-frame img { width: 100%; height: auto; }

.ys-split__copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
  margin-bottom: 20px;
}
.ys-split__copy p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 18px;
}
.ys-split__copy p strong { color: var(--ink); }

.ys-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.ys-feature {
  background: #fff;
  padding: 22px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
  text-align: center;
}
.ys-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(231,11,12,.2);
}
.ys-feature img { height: 28px; width: auto; margin: 0 auto 12px; }
.ys-feature h4 {
  font-size: .82rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

/* ============================================================
   PASOS
   ============================================================ */
.ys-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  perspective: 1000px;
}
.ys-step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
  transform-style: preserve-3d;
}
.ys-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.ys-step__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all .3s var(--ease);
}
.ys-step__icon img { width: 24px; height: 24px; }
.ys-step:hover .ys-step__icon {
  background: var(--primary);
}
.ys-step:hover .ys-step__icon img { filter: brightness(0) invert(1); }

.ys-step__num {
  position: absolute;
  top: 32px;
  right: 28px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.ys-step h3 { font-size: 1.15rem !important; margin-bottom: 6px; }
.ys-step p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ============================================================
   VALORES
   ============================================================ */
.ys-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ys-value {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.ys-value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ys-value__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.ys-value__icon img { height: 24px; width: auto; }
.ys-value h3 { font-size: 1.15rem !important; margin-bottom: 10px; }
.ys-value p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ============================================================
   TRABAJA CON NOSOTROS
   ============================================================ */
.ys-jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.ys-job {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.ys-job:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ys-job__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.ys-job__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.ys-job h3 { font-size: 1.2rem !important; margin-bottom: 10px; }
.ys-job > p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 22px;
  flex: 1;
}
.ys-job__list {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.ys-job__list li {
  font-size: .85rem;
  color: var(--ink-2);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.ys-job__list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 8px;
}

.ys-cta {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 36px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ys-cta p {
  font-size: 1rem;
  color: var(--ink-2);
  margin: 0 0 24px;
  line-height: 1.65;
}
.ys-cta p a {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ys-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 72px 0 0;
}
.ys-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ys-footer__brand img {
  max-width: 100px;
  /*filter: brightness(0) invert(1);*/
  margin-bottom: 18px;
}
.ys-footer__brand p {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 280px;
  margin: 0;
}
.ys-footer__col h4 {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: rgba(255,255,255,.4) !important;
  margin-bottom: 18px;
}
.ys-footer__col ul { list-style: none; padding: 0; margin: 0; }
.ys-footer__col ul li { margin-bottom: 10px; }
.ys-footer__col ul li a { color: rgba(255,255,255,.72); font-size: .9rem; }
.ys-footer__col ul li a:hover { color: #fff; }

.ys-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.ys-footer__social a img {
  width: 32px; height: 32px;
  border-radius: 8px;
  opacity: .5;
  filter: grayscale(1) brightness(1.6);
  transition: all .2s var(--ease);
}
.ys-footer__social a:hover img { opacity: 1; filter: none; }

.ys-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.ys-footer__bottom p {
  margin: 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.ys-footer__stores { display: flex; gap: 10px; }
.ys-footer__stores img {
  height: 34px;
  width: auto;
  border-radius: 7px;
  opacity: .55;
  transition: opacity .2s var(--ease);
}
.ys-footer__stores a:hover img { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 991px) {
  .ys-section { padding: 80px 0; }
  .ys-hero { padding-top: 130px; padding-bottom: 70px; }
  .ys-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .ys-hero__copy p { max-width: 100%; }
  .ys-hero__visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .ys-split { grid-template-columns: 1fr; gap: 40px; }
  .ys-split__visual { max-width: 400px; margin: 0 auto; width: 100%; }
  .ys-values { grid-template-columns: 1fr; }
  .ys-jobs { grid-template-columns: 1fr; }
  .ys-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ys-nav { display: none; }
  .ys-app-frame { transform: none; }
}

/* Móvil grande */
@media (max-width: 767px) {
  .ys-section { padding: 64px 0; }
  .ys-hero { padding-top: 110px; padding-bottom: 56px; }
  .ys-hero__copy h1 { font-size: 1.95rem !important; }
  .ys-hero__copy p { font-size: 1rem; }
  .ys-hero__meta { gap: 24px; margin-top: 36px; padding-top: 24px; flex-wrap: wrap; }
  .ys-hero__meta div strong { font-size: 1.3rem; }
  .ys-hero__meta div span { font-size: 12px; }

  .ys-head { margin-bottom: 40px; }
  .ys-head h2 { font-size: 1.65rem !important; }

  .ys-steps { grid-template-columns: 1fr; }
  .ys-features { grid-template-columns: 1fr; }
  .ys-values { grid-template-columns: 1fr; }

  .ys-app-frame { box-shadow: 0 12px 32px -10px rgba(14,14,18,.16); }
  .ys-scene__badge { padding: 8px 12px; font-size: 12px; }
  .ys-scene__badge span { font-size: 14px; }
  .ys-scene__badge--1 { left: 0; top: 4%; }
  .ys-scene__badge--2 { right: 0; bottom: 6%; }

  .ys-job { padding: 30px 24px; }
  .ys-value { padding: 30px 24px; }
  .ys-step { padding: 28px 24px; }
  .ys-step__num { top: 28px; right: 24px; }

  .ys-cta { padding: 32px 24px; }

  .ys-footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .ys-footer__bottom { flex-direction: column; text-align: center; }
  .ys-footer__brand p { max-width: 100%; }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .ys-hero__copy h1 { font-size: 1.75rem !important; }
  .ys-hero__actions { gap: 8px; }
  .ys-store img { height: 42px; }
  .ys-hero__meta { gap: 20px; }
  .ys-hero__meta div strong { font-size: 1.2rem; }

  .ys-brand img { max-width: 80px; }
  .ys-social { gap: 8px; }
  .ys-social a img { width: 14px; height: 14px; }

  .ys-btn { padding: 12px 26px; font-size: 14px; }

  .ys-scene__badge { padding: 6px 10px; font-size: 11px; }
  .ys-scene__badge span { font-size: 12px; }
  .ys-scene__badge--1 { top: 2%; left: -2%; }
  .ys-scene__badge--2 { bottom: 4%; right: -2%; }

  .ys-head h2 { font-size: 1.5rem !important; }
  .ys-eyebrow { font-size: 11px; }
}

/* ============================================================
   PÁGINAS LEGALES — Términos y Privacidad
   ============================================================ */
.ys-legal-page {
  background: #fff;
  padding-top: 0;
}

.ys-legal-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}
.ys-legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ys-legal-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.ys-legal-back:hover { color: var(--primary); }

.ys-legal {
  padding: 72px 0 96px;
}
.ys-legal__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.ys-legal__head h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem) !important;
  margin-bottom: 14px;
}
.ys-legal__date {
  font-size: .92rem;
  color: var(--muted);
  margin: 0;
}

.ys-legal__content {
  max-width: 760px;
  margin: 0 auto;
}
.ys-legal__content section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.ys-legal__content section:last-child {
  border-bottom: none;
}
.ys-legal__content h2 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.4;
}
.ys-legal__content p {
  font-size: .98rem;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.ys-legal__content p:last-child { margin-bottom: 0; }
.ys-legal__content ul {
  padding-left: 20px;
  margin: 0 0 12px;
}
.ys-legal__content ul li {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.ys-legal__content strong { color: var(--ink); font-weight: 600; }
.ys-legal__content a { color: var(--primary); }

.ys-legal__actions {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
}

.ys-legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
}
.ys-legal-footer p {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

@media (max-width: 767px) {
  .ys-legal { padding: 48px 0 64px; }
  .ys-legal__head { margin-bottom: 40px; }
  .ys-legal__content section { padding: 22px 0; }
  .ys-legal__content h2 { font-size: 1.05rem !important; }
  .ys-legal__content p,
  .ys-legal__content ul li { font-size: .94rem; }
  .ys-legal-header { padding: 18px 0; }
}