:root {
    --bg: oklch(0.985 0.012 85);
    --surface: #ffffff;
    --ink: oklch(0.22 0.03 260);
    --ink-soft: oklch(0.45 0.03 260);
    --ink-mute: oklch(0.62 0.02 260);
    --line: oklch(0.92 0.015 85);

    --orange: oklch(0.72 0.18 45);
    --orange-ink: oklch(0.42 0.16 40);
    --orange-soft: oklch(0.95 0.05 60);

    --sky: oklch(0.78 0.12 235);
    --sky-ink: oklch(0.45 0.12 240);
    --sky-soft: oklch(0.96 0.03 230);

    --sun: oklch(0.90 0.16 95);
    --sun-ink: oklch(0.55 0.15 80);
    --sun-soft: oklch(0.97 0.05 95);

    --pink: oklch(0.82 0.11 10);
    --pink-soft: oklch(0.96 0.03 10);

    --mint: oklch(0.85 0.10 160);
    --mint-soft: oklch(0.96 0.03 160);

    --grape: oklch(0.38 0.16 295);
    --grape-soft: oklch(0.94 0.04 295);

    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* Scroll reveal — fades/lifts on approach (aplicable a cualquier sección) */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Form stagger — más rápido, sobre todo en móvil */
  .form-wrap.in .form-head { animation: formHeadIn .4s cubic-bezier(.2,.8,.2,1) both; }
  .form-wrap.in form .field,
  .form-wrap.in form .submit-row {
    animation: fieldIn .35s cubic-bezier(.2,.8,.2,1) both;
  }
  .form-wrap.in form .field:nth-child(1) { animation-delay: .06s; }
  .form-wrap.in form .field:nth-child(2) { animation-delay: .10s; }
  .form-wrap.in form .field:nth-child(3) { animation-delay: .14s; }
  .form-wrap.in form .field:nth-child(4) { animation-delay: .18s; }
  .form-wrap.in form .field:nth-child(5) { animation-delay: .22s; }
  .form-wrap.in form .field:nth-child(6) { animation-delay: .26s; }
  .form-wrap.in form .field:nth-child(7) { animation-delay: .30s; }
  .form-wrap.in form .field:nth-child(8) { animation-delay: .34s; }
  .form-wrap.in form .submit-row { animation-delay: .38s; }

  @media (max-width: 720px) {
    .form-wrap.in .form-head { animation-duration: .3s; }
    .form-wrap.in form .field,
    .form-wrap.in form .submit-row { animation-duration: .28s; }
    .form-wrap.in form .field:nth-child(1) { animation-delay: .02s; }
    .form-wrap.in form .field:nth-child(2) { animation-delay: .05s; }
    .form-wrap.in form .field:nth-child(3) { animation-delay: .08s; }
    .form-wrap.in form .field:nth-child(4) { animation-delay: .11s; }
    .form-wrap.in form .field:nth-child(5) { animation-delay: .14s; }
    .form-wrap.in form .field:nth-child(6) { animation-delay: .17s; }
    .form-wrap.in form .field:nth-child(7) { animation-delay: .20s; }
    .form-wrap.in form .field:nth-child(8) { animation-delay: .23s; }
    .form-wrap.in form .submit-row { animation-delay: .26s; }
  }

  @keyframes formHeadIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fieldIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* CTA pulse when arriving at form */
  .form-wrap.in .btn-submit {
    animation: fieldIn .35s cubic-bezier(.2,.8,.2,1) both, ctaPulse 1.4s ease-out .8s 1;
  }
  @keyframes ctaPulse {
    0% { box-shadow: 0 6px 0 -1px oklch(0.55 0.18 40), 0 0 0 0 oklch(0.72 0.18 45 / .5); }
    100% { box-shadow: 0 6px 0 -1px oklch(0.55 0.18 40), 0 0 0 24px oklch(0.72 0.18 45 / 0); }
  }
  h1, h2, h3, h4 {
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
    text-wrap: balance;
  }
  p { margin: 0; text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: 0; background: none; }
  img, svg { display: block; max-width: 100%; }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ——————— NAV ——————— */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: color-mix(in oklab, var(--bg) 80%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
  }
  .nav.scrolled { border-bottom-color: var(--line); }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
  }
  .logo-mark {
    width: 46px; height: 46px;
    background: image-set(url('/assets/logo-yupiocio.webp') type('image/webp'), url('/assets/logo-yupiocio.png') type('image/png')) center/contain no-repeat;
    background: url('/assets/logo-yupiocio.webp') center/contain no-repeat;
    transform: rotate(-6deg);
    flex-shrink: 0;
    transition: transform .3s ease;
  }
  .logo:hover .logo-mark {
    transform: rotate(6deg) scale(1.08);
  }
  .nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    font-size: 15px;
  }
  .nav-links a { color: var(--ink-soft); transition: color .15s; }
  .nav-links a:hover { color: var(--ink); }
  @media (max-width: 760px) { .nav-links { display: none; } }

  /* ——————— BUTTONS ——————— */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
  }
  .btn-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 6px 0 -1px oklch(0.55 0.18 40);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -1px oklch(0.55 0.18 40); }
  .btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px oklch(0.55 0.18 40); }
  .btn-ghost {
    background: white;
    color: var(--ink);
    border: 1.5px solid var(--line);
  }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-sm { padding: 12px 20px; font-size: 14px; }

  /* ——————— HERO ——————— */
  .hero {
    position: relative;
    padding: 36px 0 80px;
    overflow: hidden;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--sun-soft);
    color: var(--sun-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange);
    animation: pulse 1.6s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: .7; }
  }
  .hero h1 {
    font-size: clamp(40px, 6.5vw, 76px);
    margin: 20px 0 22px;
  }
  .hero h1 .squiggle {
    position: relative;
    display: inline-block;
    color: var(--orange);
  }
  .hero h1 .squiggle svg {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 14px;
  }
  .hero p.lede {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 32px;
  }
  .hero-ctas {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
  }
  .trust {
    margin-top: 36px;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--ink-mute);
    font-size: 14px;
  }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .trust-item svg { color: var(--orange); }

  /* hero visual */
  .hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .blob {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
  }
  .blob-main {
    width: 80%;
    height: 80%;
    background: var(--sun);
    border-radius: 62% 38% 55% 45% / 48% 62% 38% 52%;
    animation: morph 14s ease-in-out infinite;
  }
  @keyframes morph {
    0%, 100% { border-radius: 62% 38% 55% 45% / 48% 62% 38% 52%; }
    50% { border-radius: 40% 60% 38% 62% / 58% 42% 58% 42%; }
  }
  .float {
    position: absolute;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 900;
    font-family: 'Nunito';
    color: white;
    animation: float 6s ease-in-out infinite;
  }
  .float-1 { width: 90px; height: 90px; background: var(--orange); top: 8%; left: 4%; animation-delay: 0s; }
  .float-2 { width: 70px; height: 70px; background: var(--sky); top: 60%; left: -2%; animation-delay: .8s; }
  .float-3 { width: 110px; height: 110px; background: var(--pink); top: 12%; right: -2%; animation-delay: 1.6s; }
  .float-4 { width: 80px; height: 80px; background: var(--mint); bottom: 6%; right: 8%; animation-delay: 2.4s; }
  .float-5 { width: 60px; height: 60px; background: var(--grape); opacity: .85; top: 42%; right: 44%; animation-delay: 3s; }
  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-14px) rotate(4deg); }
  }
  .hero-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: 0 20px 40px -20px oklch(0.3 0.06 260 / .25);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
  }
  .hero-card-1 { top: 20%; right: -4%; animation: float 8s ease-in-out infinite; }
  .hero-card-2 { bottom: 18%; left: -6%; animation: float 8s ease-in-out infinite 1.5s; }
  .hero-card .chip {
    width: 36px; height: 36px; border-radius: 12px;
    background: var(--orange-soft);
    display: grid; place-items: center;
    font-size: 20px;
  }
  .hero-card-2 .chip { background: var(--sky-soft); }

  /* stars / sparkles scatter */
  .sparkle {
    position: absolute;
    color: var(--orange);
    animation: sparkle 3s ease-in-out infinite;
  }
  .sparkle-1 { top: 4%; right: 20%; animation-delay: 0s; }
  .sparkle-2 { bottom: 10%; left: 30%; animation-delay: 1s; color: var(--sky); }
  .sparkle-3 { top: 50%; right: 40%; animation-delay: 2s; color: var(--pink); }
  @keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
    50% { transform: scale(.6) rotate(180deg); opacity: .4; }
  }

  /* ——————— MARQUEE ——————— */
  .marquee {
    padding: 28px 0;
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
  }
  .marquee-track {
    display: flex;
    gap: 60px;
    animation: scroll 35s linear infinite;
    white-space: nowrap;
    width: max-content;
  }
  .marquee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Nunito';
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
  }
  .marquee-item .mdot {
    width: 10px; height: 10px;
    border-radius: 50%;
  }
  @keyframes scroll {
    to { transform: translateX(calc(-50% - 30px)); }
  }

  /* ——————— SECTIONS ——————— */
  section { scroll-margin-top: 80px; }
  .section {
    padding: 96px 0;
  }
  .section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
  }
  .section-head .pill { margin-bottom: 16px; }
  .section-head h2 {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 16px;
  }
  .section-head p {
    color: var(--ink-soft);
    font-size: 18px;
  }

  /* ——————— SERVICIOS ——————— */
  .services {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
  .service {
    grid-column: span 6;
    background: white;
    border-radius: var(--radius-lg);
    padding: 34px;
    border: 1.5px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
  }
  .service:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -24px oklch(0.3 0.06 260 / .25);
  }
  @media (max-width: 780px) { .service { grid-column: span 12; } }
  .service-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    display: grid; place-items: center;
    margin-bottom: 24px;
    font-size: 32px;
  }
  .service-icon.orange { background: var(--orange-soft); }
  .service-icon.sky    { background: var(--sky-soft); }
  .service-icon.pink   { background: var(--pink-soft); }
  .service-icon.mint   { background: var(--mint-soft); }
  .service h3 { font-size: 26px; margin-bottom: 10px; }
  .service p { color: var(--ink-soft); margin-bottom: 18px; }
  .service-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .tag {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink-soft);
    font-weight: 600;
  }
  .service-deco {
    position: absolute;
    right: -30px; top: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    opacity: .08;
    pointer-events: none;
  }

  /* ——————— MAGIA (STAR BLOCK) ——————— */
  .magic {
    padding: 0 0 52px;
  }
  .magic-card {
    background: linear-gradient(135deg, var(--orange) 0%, oklch(0.78 0.17 25) 100%);
    border-radius: 36px;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
  }
  @media (max-width: 820px) {
    .magic-card { grid-template-columns: 1fr; padding: 40px; }
  }
  .magic-card .pill {
    background: rgba(255,255,255,.2);
    color: white;
  }
  .magic-card .pill .dot { background: var(--sun); }
  .magic-card h2 {
    font-size: clamp(34px, 5vw, 54px);
    margin: 18px 0;
  }
  .magic-card p {
    font-size: 18px;
    opacity: .92;
    margin-bottom: 28px;
    max-width: 520px;
  }
  .magic-features {
    display: flex; flex-wrap: wrap; gap: 10px;
  }
  .magic-feature {
    padding: 10px 16px;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(8px);
  }
  .magic-visual {
    position: relative;
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
  }
  .hat {
    font-size: 160px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,.2));
    animation: hatWobble 4s ease-in-out infinite;
  }
  @keyframes hatWobble {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
  }
  .magic-badge {
    position: absolute;
    top: 8%;
    right: 8%;
    background: var(--sun);
    color: var(--orange-ink);
    font-family: 'Nunito';
    font-weight: 900;
    border-radius: 50%;
    width: 120px; height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    transform: rotate(12deg);
    font-size: 15px;
    line-height: 1.1;
    box-shadow: 0 10px 0 -2px oklch(0.70 0.16 85);
    padding: 10px;
  }
  .magic-badge b { font-size: 24px; display: block; }

  .magic-deco {
    position: absolute;
    border-radius: 50%;
    opacity: .15;
  }
  .magic-deco-1 { width: 200px; height: 200px; background: white; top: -60px; left: -60px; }
  .magic-deco-2 { width: 140px; height: 140px; background: var(--sun); bottom: -40px; right: 30%; }

  /* ——————— ESPACIOS ——————— */
  .spaces {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  @media (max-width: 820px) { .spaces { grid-template-columns: 1fr; } }
  .space-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--line);
    padding: 40px;
    position: relative;
    overflow: hidden;
  }
  .space-card .num {
    font-family: 'Nunito';
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    color: var(--orange);
    margin-bottom: 20px;
  }
  .space-card.sky .num { color: var(--sky); }
  .space-card h3 { font-size: 28px; margin-bottom: 12px; }
  .space-card p { color: var(--ink-soft); margin-bottom: 20px; }
  .space-list { list-style: none; padding: 0; margin: 0; }
  .space-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
    font-weight: 500;
  }
  .space-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 13px;
    font-weight: 900;
    margin-top: 2px;
  }
  .space-card.sky .space-list li::before { background: var(--sky); }

  /* ——————— SOBRE ——————— */
  .about {
    background: var(--sky-soft);
    border-radius: 36px;
    padding: 80px 60px;
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  @media (max-width: 820px) {
    .about { padding: 50px 30px; }
  }
  .about-inner { max-width: 780px; margin: 0 auto; }
  .about .pill { display: inline-flex; }
  .about h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 20px; }
  .about p { color: var(--ink-soft); font-size: 17px; margin-bottom: 14px; }
  .about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
  }
  @media (max-width: 720px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
  }
  .stat {
    background: white;
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
  }
  .stat b {
    font-family: 'Nunito';
    font-size: 36px;
    color: var(--orange);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
  }
  .stat span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
  .about-deco {
    position: absolute;
    width: 160px; height: 160px;
    border-radius: 50%;
    opacity: .5;
    pointer-events: none;
  }
  .about-deco-1 { background: var(--sun); top: -50px; left: -50px; }
  .about-deco-2 { background: var(--pink); bottom: -60px; right: -60px; }

  /* ——————— FAQ ——————— */
  .faq {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .faq-item {
    background: white;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
  }
  .faq-item:hover { border-color: var(--ink-mute); }
  .faq-item[open] {
    border-color: var(--orange);
    box-shadow: 0 14px 30px -20px oklch(0.3 0.06 260 / .22);
  }
  .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: var(--ink);
    user-select: none;
  }
  .faq-item summary::-webkit-details-marker,
  .faq-item summary::marker { display: none; content: ''; }
  .faq-item summary:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
    border-radius: var(--radius-md);
  }
  .faq-chev {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange-ink);
    display: grid;
    place-items: center;
    transition: transform .25s ease, background .2s ease, color .2s ease;
  }
  .faq-item[open] .faq-chev {
    transform: rotate(180deg);
    background: var(--orange);
    color: white;
  }
  .faq-answer {
    padding: 0 22px 22px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
    animation: faqIn .35s cubic-bezier(.2,.8,.2,1);
  }
  .faq-answer p + p { margin-top: 10px; }
  @keyframes faqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (max-width: 720px) {
    .faq-item summary { padding: 16px 18px; font-size: 15px; gap: 12px; }
    .faq-answer { padding: 0 18px 18px; font-size: 14.5px; }
    .faq-chev { width: 26px; height: 26px; }
  }

  /* ——————— FORM ——————— */
  .form-section {
    padding: 96px 0 80px;
    position: relative;
  }
  .form-wrap {
    background: white;
    border-radius: 36px;
    padding: 60px;
    border: 1.5px solid var(--line);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px oklch(0.3 0.06 260 / .15);
  }
  @media (max-width: 720px) {
    .form-section { padding: 40px 0 48px; }
    .form-wrap { padding: 32px 20px; border-radius: 24px; }
    .form-wrap::before { width: 180px; height: 180px; top: -60px; right: -60px; }
  }

  /* ——————— MOBILE POLISH ——————— */
  @media (max-width: 720px) {
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 26px; }
    .hero { padding: 18px 0 24px; }
    .hero-grid { gap: 18px; }
    .hero h1 { margin: 14px 0 14px; }
    .hero p.lede { font-size: 16px; margin-bottom: 22px; }
    .hero-visual { max-width: 280px; }
    .hero-ctas { width: 100%; }
    .hero-ctas .btn { flex: 1; justify-content: center; }
    .trust { gap: 14px 22px; margin-top: 20px; }
    .marquee-item { font-size: 17px; }
    .magic { padding: 0 0 20px; }
    .magic-card { padding: 28px 22px; border-radius: 24px; gap: 20px; }
    .magic-card h2 { font-size: 28px; margin: 12px 0; }
    .magic-card p { font-size: 15px; margin-bottom: 18px; }
    .magic-features { gap: 8px; }
    .magic-feature { padding: 7px 12px; font-size: 12px; }
    .magic-visual { aspect-ratio: auto; min-height: 140px; }
    .magic-badge { width: 80px; height: 80px; font-size: 11px; top: 4%; right: 4%; }
    .magic-badge b { font-size: 16px; }
    .hat { font-size: 90px; }
    .about { padding: 44px 24px; border-radius: 28px; }
    .space-card { padding: 30px 24px; }
    .space-card .num { font-size: 52px; }
    .nav-inner { padding: 14px 18px; }
    .logo { font-size: 19px; }
    .logo-mark { width: 40px; height: 40px; }
    .whats { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    .tweaks-panel { left: 14px; right: 14px; bottom: 14px; width: auto; }
    .submit-row { flex-direction: column; align-items: stretch; }
    .btn-submit { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 440px) {
    .footer-inner { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .float-1 { width: 64px; height: 64px; font-size: 24px; }
    .float-2 { width: 54px; height: 54px; font-size: 22px; }
    .float-3 { width: 76px; height: 76px; font-size: 26px; }
    .float-4 { width: 58px; height: 58px; font-size: 22px; }
  }
  .form-wrap::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: var(--sun-soft);
    border-radius: 50%;
  }
  .form-head {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
  }
  .form-head h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    margin-bottom: 12px;
  }
  .form-head p { color: var(--ink-soft); font-size: 17px; }

  form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
  }
  @media (max-width: 720px) { form { grid-template-columns: 1fr; } }
  .field { display: flex; flex-direction: column; gap: 8px; }
  .field.full { grid-column: 1 / -1; }
  .field label {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    font-family: 'Nunito';
  }
  .field label .req { color: var(--orange); margin-left: 2px; }
  .input, .select, textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: all .15s;
    outline: none;
  }
  .input:focus, .select:focus, textarea:focus {
    border-color: var(--orange);
    background: white;
    box-shadow: 0 0 0 4px oklch(0.72 0.18 45 / .15);
  }
  textarea { resize: vertical; min-height: 110px; font-family: inherit; }
  .select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23d97757' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
  }
  .select option {
    background: white;
    color: var(--ink);
    font-weight: 500;
    padding: 10px;
  }

  /* Date input — style native picker to match the brand */
  input[type="date"].input {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    color: var(--ink);
    position: relative;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d97757' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 46px;
  }
  input[type="date"].input::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
  }
  input[type="date"].input::-webkit-datetime-edit { color: var(--ink); padding: 0; }
  input[type="date"].input::-webkit-datetime-edit-fields-wrapper { color: var(--ink); }
  input[type="date"].input::-webkit-datetime-edit-text { color: var(--ink-mute); padding: 0 4px; }
  input[type="date"].input::-webkit-datetime-edit-month-field,
  input[type="date"].input::-webkit-datetime-edit-day-field,
  input[type="date"].input::-webkit-datetime-edit-year-field {
    color: var(--ink);
    font-weight: 500;
  }
  input[type="date"].input:focus::-webkit-datetime-edit-month-field:focus,
  input[type="date"].input:focus::-webkit-datetime-edit-day-field:focus,
  input[type="date"].input:focus::-webkit-datetime-edit-year-field:focus {
    background: var(--orange-soft);
    color: var(--orange-ink);
    border-radius: 6px;
    outline: none;
  }
  input[type="date"].input:invalid,
  input[type="date"].input:not(:focus):placeholder-shown { color: var(--ink-mute); }

  /* Custom select (fully styled dropdown) */
  .field { position: relative; }
  .field:has(.custom-select.open),
  .field:has(.custom-date.open) { z-index: 50; }
  .custom-select, .custom-date { position: relative; }
  .custom-select.open, .custom-date.open { z-index: 40; }
  .custom-select-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all .15s;
    outline: none;
  }
  .custom-select-btn:hover { border-color: var(--ink-mute); }
  .custom-select-btn:focus,
  .custom-select.open .custom-select-btn,
  .custom-date.open .custom-select-btn {
    border-color: var(--orange);
    background: white;
    box-shadow: 0 0 0 4px oklch(0.72 0.18 45 / .15);
  }
  .custom-select-btn .cs-chev,
  .custom-select-btn .cs-cal {
    color: var(--orange);
    flex-shrink: 0;
    transition: transform .2s;
  }
  .custom-select.open .cs-chev { transform: rotate(180deg); }
  .cs-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cs-value.placeholder { color: var(--ink-mute); }

  .custom-select-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 6px;
    list-style: none;
    margin: 0;
    box-shadow: 0 20px 40px -15px oklch(0.3 0.06 260 / .22);
    z-index: 20;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .custom-select.open .custom-select-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .custom-select-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .12s, color .12s;
  }
  .custom-select-list li:hover,
  .custom-select-list li.active {
    background: var(--orange-soft);
    color: var(--orange-ink);
  }
  .cs-ico {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--sun-soft);
    display: grid; place-items: center;
    font-size: 16px;
  }
  .custom-select-list li:hover .cs-ico,
  .custom-select-list li.active .cs-ico { background: white; }

  /* Datepicker */
  .datepicker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 40px -15px oklch(0.3 0.06 260 / .22);
    z-index: 30;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .custom-date.open .datepicker {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
  }
  .dp-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
    text-transform: capitalize;
    color: var(--ink);
  }
  .dp-nav {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink-soft);
    display: grid; place-items: center;
    transition: all .15s;
  }
  .dp-nav:hover { background: var(--orange-soft); color: var(--orange-ink); }
  .dp-dow, .dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }
  .dp-dow span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-mute);
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .dp-grid { margin-bottom: 10px; }
  .dp-cell {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background .12s, color .12s, transform .12s;
    background: transparent;
    border: none;
    font-family: inherit;
  }
  .dp-cell:hover:not(.muted):not(.selected) { background: var(--orange-soft); color: var(--orange-ink); }
  .dp-cell.muted { color: var(--ink-mute); opacity: .35; cursor: default; }
  .dp-cell.today { box-shadow: inset 0 0 0 1.5px var(--orange); }
  .dp-cell.selected {
    background: var(--orange);
    color: white;
    box-shadow: 0 4px 0 -1px oklch(0.55 0.18 40);
  }
  .dp-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .dp-clear, .dp-today {
    padding: 8px 14px;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    background: var(--bg);
    color: var(--ink-soft);
    transition: all .15s;
  }
  .dp-clear:hover { background: var(--pink-soft); color: oklch(0.5 0.16 10); }
  .dp-today:hover { background: var(--orange); color: white; }

  /* Date input wrap with calendar button */
  .date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .date-input-wrap .date-input {
    padding-right: 52px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }
  .date-cal-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange-ink);
    display: grid;
    place-items: center;
    transition: all .15s;
  }
  .date-cal-btn:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-50%) scale(1.05);
  }
  .custom-date.open .date-cal-btn {
    background: var(--orange);
    color: white;
  }

  .radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 520px) { .radio-group { grid-template-columns: 1fr; } }
  .radio-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    cursor: pointer;
    transition: all .15s;
  }
  .radio-opt:hover { border-color: var(--ink-mute); }
  .radio-opt input { display: none; }
  .radio-opt .dot-wrap {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--ink-mute);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all .15s;
  }
  .radio-opt .dot-wrap::after {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--orange);
    transform: scale(0);
    transition: transform .15s;
  }
  .radio-opt.active {
    border-color: var(--orange);
    background: var(--orange-soft);
  }
  .radio-opt.active .dot-wrap { border-color: var(--orange); }
  .radio-opt.active .dot-wrap::after { transform: scale(1); }
  .radio-opt .r-title { font-weight: 700; font-family: 'Nunito'; font-size: 15px; }
  .radio-opt .r-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

  .submit-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .submit-row .disclaimer {
    font-size: 13px;
    color: var(--ink-mute);
    max-width: 420px;
  }
  .btn-submit {
    background: var(--orange);
    color: white;
    padding: 18px 32px;
    font-size: 17px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 0 -1px oklch(0.55 0.18 40);
    font-family: 'Nunito';
    font-weight: 800;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
  }
  .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -1px oklch(0.55 0.18 40); }
  .btn-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px oklch(0.55 0.18 40); }

  /* Error line: reserva espacio siempre para no empujar el layout al mostrarse */
  .field-error {
    color: oklch(0.55 0.18 25);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    min-height: 1.25em;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .field.invalid .input,
  .field.invalid .select,
  .field.invalid textarea { border-color: oklch(0.65 0.18 25); }
  .field.invalid .field-error { opacity: 1; }

  .success-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
  }
  .success-state.show { display: block; }
  .success-icon {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--mint-soft);
    color: oklch(0.55 0.15 160);
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    font-size: 48px;
    animation: pop .5s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
  }
  .success-state h3 { font-size: 32px; margin-bottom: 12px; }
  .success-state p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }

  /* ——————— FOOTER ——————— */
  footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
  @media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
  .footer-col h4 { font-size: 14px; margin-bottom: 14px; color: var(--ink-mute); font-family: 'DM Sans'; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .footer-col a, .footer-col p { color: var(--ink-soft); font-size: 15px; display: block; margin-bottom: 8px; }
  .footer-col a:hover { color: var(--orange); }
  .social-icons { display: flex; gap: 10px; }
  .social-ico {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    display: grid !important;
    place-items: center;
    color: var(--ink-soft);
    margin-bottom: 0 !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  }
  .social-ico svg {
    position: relative;
    z-index: 1;
    transition: transform .18s ease;
  }
  .footer-col a.social-ico:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #ffffff !important;
    transform: translateY(-2px);
  }
  .footer-col a.social-ico:hover svg {
    color: #ffffff;
    transform: scale(1.1);
  }
  .footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between;
    color: var(--ink-mute); font-size: 13px;
    flex-wrap: wrap; gap: 12px;
  }

  /* ——————— FLOATING WHATSAPP ——————— */
  .whats {
    position: fixed;
    bottom: 22px; right: 22px;
    width: 58px; height: 58px;
    background: oklch(0.68 0.15 150);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 10px 30px -10px oklch(0.5 0.15 150 / .6);
    z-index: 40;
    transition: transform .15s;
  }
  .whats:hover { transform: scale(1.08); }
  .whats-label {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 6px 16px -6px oklch(0.3 0.06 260 / .3);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  .whats:hover .whats-label { opacity: 1; }