/* =============================================================================
   Padelya — sitio de marketing. Hoja de estilos única.
   Tema: teal del app (#0d9488). Tipografía: Montserrat (títulos) + Inter (texto).
   ========================================================================== */

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;

  --ink: #0b1f1c;
  --slate: #334155;
  --muted: #5b6b75;
  --line: #e3ece9;
  --bg: #ffffff;
  --bg-soft: #f4faf8;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(13, 148, 136, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(13, 60, 55, .22);
  --shadow-lg: 0 30px 60px -20px rgba(13, 60, 55, .35);

  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hl { color: var(--teal-600); }

/* ---- Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-700); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-200); }
.btn--ghost:hover { background: var(--teal-50); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }

/* ---- Badge App Store ------------------------------------------------------- */
.badge-appstore {
  display: inline-flex; align-items: center; gap: 11px; background: #000; color: #fff;
  padding: 11px 20px 11px 16px; border-radius: 14px; text-decoration: none;
  border: 1px solid #000; transition: transform .12s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.badge-appstore:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.badge-appstore__icon .icon { width: 26px; height: 26px; }
.badge-appstore__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge-appstore__text small { font-size: .62rem; font-weight: 500; opacity: .9; letter-spacing: .02em; }
.badge-appstore__text strong { font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; }
.badge-appstore--sm { padding: 9px 16px 9px 13px; }
.badge-appstore--sm .badge-appstore__icon .icon { width: 22px; height: 22px; }
.badge-appstore--sm .badge-appstore__text strong { font-size: 1rem; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__logo { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--slate); font-weight: 600; font-size: .96rem; }
.site-nav a:hover { color: var(--teal-700); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--teal-700); }
.site-nav .site-nav__cta { color: #fff; }
.site-nav .site-nav__cta:hover { color: #fff; }

/* Checkbox accesible: invisible pero enfocable por teclado */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--teal-400); outline-offset: 2px; }

@media (max-width: 880px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer;
    border-radius: 10px;
  }
  .nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .site-nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
    transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .site-nav__cta { margin-top: 10px; border-bottom: none; text-align: center; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
}

/* ---- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(900px 500px at 85% -10%, var(--teal-100), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, var(--teal-50), transparent 55%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 92px) 0; }
.hero h1 { margin-bottom: 18px; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.hero__points { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.hero__points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--slate); }
.hero__points .icon { color: var(--teal-600); background: var(--teal-50); border-radius: 999px; padding: 3px; width: 1.5em; height: 1.5em; }
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__free { font-size: .9rem; color: var(--muted); font-weight: 500; }
.hero__device { display: flex; justify-content: center; }

/* ---- Mockup de móvil ------------------------------------------------------- */
.device {
  width: 290px; max-width: 78vw; aspect-ratio: 290 / 600; position: relative;
  background: #0b1f1c; border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid #143b35;
}
.device__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0b1f1c; border-radius: 0 0 16px 16px; z-index: 3; }
.device__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, var(--teal-50), #fff 30%); }
.appui { display: flex; flex-direction: column; height: 100%; font-size: 12px; color: var(--ink); }
.appui__status { display: flex; justify-content: space-between; padding: 14px 22px 6px; font-weight: 700; font-size: 11px; }
.appui__signal { width: 30px; height: 11px; background: linear-gradient(90deg, var(--teal-600), var(--teal-400)); border-radius: 3px; }
.appui__hero { margin: 4px 14px 10px; padding: 14px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); box-shadow: var(--shadow); }
.appui__chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 10px; }
.appui__chip .icon { width: 12px; height: 12px; }
.appui__hero h3 { color: #fff; margin: 8px 0 2px; font-size: 16px; }
.appui__hero p { margin: 0; opacity: .92; font-size: 11px; }
.appui__tabs { display: flex; gap: 6px; padding: 0 14px 8px; }
.appui__tabs span { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; background: #eef5f3; color: var(--muted); font-weight: 700; font-size: 10px; }
.appui__tabs .is-active { background: var(--teal-600); color: #fff; }
.appui__matches { list-style: none; margin: 0; padding: 0 14px; display: grid; gap: 8px; }
.appui__matches li { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; box-shadow: var(--shadow-sm); }
.appui__court { background: var(--teal-50); color: var(--teal-700); font-weight: 800; border-radius: 7px; padding: 4px 6px; font-size: 10px; }
.appui__teams { font-size: 10.5px; font-weight: 600; line-height: 1.25; }
.appui__teams b { color: var(--teal-700); }
.appui__vs { font-size: 9px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.appui__matches .is-live .appui__vs { color: #e11d48; }
.appui__cta { margin: auto 14px 16px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: #fff; font-weight: 700; padding: 11px; border-radius: 12px; font-size: 11px; }
.appui__cta .icon { width: 14px; height: 14px; color: var(--teal-300); }

/* ---- Trust strip ----------------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; text-align: center; }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--teal-700); font-weight: 800; }
.trust__item span { font-size: .85rem; color: var(--muted); }

/* ---- Secciones ------------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--tint { background: var(--bg-soft); }
.section--lead { padding-bottom: 0; }
.section__head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* ---- Grids ----------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
.grid--related { grid-template-columns: repeat(3, 1fr); }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon { display: inline-flex; padding: 11px; border-radius: 13px; background: var(--teal-50); color: var(--teal-600); margin-bottom: 14px; }
.feature__icon .icon { width: 1.4em; height: 1.4em; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---- Pasos ----------------------------------------------------------------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__num { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--teal-600); color: #fff; font-family: var(--font-head); font-weight: 800; box-shadow: var(--shadow-sm); }
.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---- CTA band -------------------------------------------------------------- */
.ctaband { background: linear-gradient(135deg, var(--teal-700), var(--teal-600) 55%, var(--teal-500)); color: #fff; }
.ctaband__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(36px, 5vw, 60px) 0; flex-wrap: wrap; }
.ctaband h2 { color: #fff; margin-bottom: 6px; }
.ctaband p { color: rgba(255,255,255,.92); margin: 0; max-width: 46ch; }

/* ---- Comparativa ----------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin: 0 auto; }
.compare__col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.compare__col h3 { font-size: 1.15rem; margin-bottom: 18px; }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.compare__col li { display: flex; align-items: flex-start; gap: 11px; color: var(--slate); font-size: .98rem; }
.compare__mark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.compare__mark .icon { width: 15px; height: 15px; }
.compare__col--bad { background: #fdf6f6; border-color: #f6dada; }
.compare__col--bad h3 { color: #b4322f; }
.compare__col--bad .compare__mark { background: #fbe4e3; color: #c0413d; }
.compare__col--good { border-color: var(--teal-200); background: linear-gradient(180deg, var(--teal-50), #fff 40%); }
.compare__col--good h3 { color: var(--teal-700); }
.compare__col--good .compare__mark { background: var(--teal-100); color: var(--teal-700); }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 1.4rem; color: var(--teal-600); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 16px; color: var(--muted); }
.faq__a p { margin: 0 0 .6rem; }

/* ---- Páginas interiores ---------------------------------------------------- */
.pagehead { background:
    radial-gradient(700px 380px at 90% -20%, var(--teal-100), transparent 60%),
    var(--bg-soft); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.pagehead h1 { max-width: 18ch; }
.pagehead__sub { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.pagehead--article { border-bottom: none; }
.article__meta { color: var(--muted); font-size: .9rem; }

.breadcrumbs { padding: 16px 22px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal-700); }

.lead { font-size: 1.25rem; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* ---- Prosa (guías, legal) -------------------------------------------------- */
.prose { font-size: 1.05rem; color: var(--slate); }
.prose h2 { margin: 1.8em 0 .5em; font-size: 1.5rem; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3em; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .prose-cta { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--teal-50); color: var(--teal-800); font-family: var(--font-head); }
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---- Related --------------------------------------------------------------- */
.related { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.related:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.related h3 { color: var(--ink); margin-bottom: 6px; }
.related p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.related__more { color: var(--teal-700); font-weight: 700; font-size: .9rem; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c7d6d1; padding: 56px 0 28px; }
.site-footer a { color: #c7d6d1; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.site-footer__brand .brand { color: #fff; margin-bottom: 12px; }
.site-footer__brand .brand__name { color: #fff; }
.site-footer__brand p { font-size: .92rem; max-width: 30ch; margin-bottom: 16px; }
.site-footer__col h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer__col a { font-size: .92rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1c3a34; margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #8fa8a1; }
.site-footer__bottom p { margin: 0; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero__sub, .hero__points { margin-left: auto; margin-right: auto; }
  .hero__points li { text-align: left; }
  .hero__cta { justify-content: center; }
  .grid--features, .grid--related, .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--features, .grid--related, .steps, .trust__inner, .compare { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr 1fr; }
  .compare__col { padding: 22px; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
