/* Tempus Studio de Piedra — sistema de diseño compartido (extraído del home) */
:root {
      --bone: #F5F2EC; --paper: #FDFCFA; --sand: #EAE4D9; --ink: #1C1A17;
      --stone: #8C8478; --line: #DDD6CA; --accent: #B85C38;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { font-family: 'Archivo','Helvetica Neue',sans-serif; background: var(--bone); color: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
    img { display: block; width: 100%; height: 100%; object-fit: cover; }
    a { color: inherit; text-decoration: none; }
    .wrap { max-width: 1320px; margin: 0 auto; padding: 0 5vw; }
    .kicker { font-family: 'JetBrains Mono',monospace; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
    h2 { font-size: clamp(32px,4.4vw,58px); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; max-width: 14em; }
    .lede { font-size: 19px; color: var(--stone); max-width: 34em; margin-top: 18px; }
    section { padding: 110px 0; }
    .btn { display: inline-block; background: var(--ink); color: var(--bone); padding: 14px 28px; font-size: 15px; font-weight: 600; letter-spacing: .01em; border-radius: 2px; transition: opacity .2s, background .2s, color .2s; cursor: pointer; }
    .btn:hover { opacity: .85; }
    .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
    .btn-wa { display: inline-flex; align-items: center; gap: 9px; }
    .btn-wa::before { content: ""; width: 17px; height: 17px; flex: none; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2325D366"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>') center/contain no-repeat; }
    .wa-note { font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: .08em; color: var(--stone); margin-top: 16px; }

    .nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 60; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
    .logo { line-height: 1; }
    .logo .mark { font-family: 'Cinzel',serif; font-weight: 600; font-size: 23px; letter-spacing: .18em; color: #fff; transition: color .3s; }
    .logo .tag { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 3px; transition: color .3s; }
    .nav-links { display: flex; gap: 38px; align-items: center; list-style: none; flex: 1; margin-left: 56px; }
    .nav-links > li:nth-last-child(2) { margin-left: auto; }
    .nav-links a:not(.btn) { font-size: 15px; font-weight: 500; color: #fff; transition: color .3s; }
    .nav-links a:not(.btn):hover { color: var(--accent); }
    .nav .btn { background: var(--ink); color: var(--bone); box-shadow: 0 4px 18px rgba(0,0,0,.28); }
    .nav .btn:hover { background: #2a2620; opacity: 1; }
    .nav.scrolled { background: color-mix(in srgb, var(--bone) 92%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
    .nav.scrolled .mark { color: var(--ink); }
    .nav.scrolled .tag { color: var(--stone); }
    .nav.scrolled .nav-links a:not(.btn) { color: var(--ink); }
    .nav.scrolled .nav-links a:not(.btn):hover { color: var(--accent); }
    .nav.scrolled .btn { box-shadow: none; }
    .nav .nav-links a.btn { color: var(--bone); }
    /* selector de idioma */
    .lang-btn { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; font-family: 'JetBrains Mono',monospace; font-size: 12px; letter-spacing: .08em; padding: 7px 11px; border-radius: 2px; cursor: pointer; transition: all .2s; }
    .lang-btn:hover { border-color: #fff; }
    .nav.scrolled .lang-btn { border-color: var(--line); color: var(--ink); }
    .nav.scrolled .lang-btn:hover { border-color: var(--ink); }
    /* botón hamburguesa */
    .menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; z-index: 70; }
    .menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .3s, opacity .3s, background .3s; }
    .nav.scrolled .menu-toggle span { background: var(--ink); }
    .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--ink); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }
    /* panel móvil */
    .mobile-menu { position: fixed; inset: 0; z-index: 65; background: var(--bone); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8vw; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
    .mobile-menu.open { transform: none; }
    .mobile-menu a:not(.btn) { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
    .mobile-menu .btn { margin-top: 26px; text-align: center; }
    .mobile-menu .lang-btn { align-self: flex-start; margin-top: 22px; border-color: var(--line); color: var(--ink); }
    @media (max-width: 900px) {
      .nav-links { display: none; }
      .menu-toggle { display: flex; }
    }
    @media (min-width: 901px) { .mobile-menu { display: none; } }

    .hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: flex-end; }
    .hero-bg { position: absolute; inset: 0; z-index: 0; }
    .hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
    .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,18,15,.82) 0%, rgba(20,18,15,.5) 40%, rgba(20,18,15,.12) 72%), linear-gradient(180deg, rgba(20,18,15,.3) 0%, transparent 34%, rgba(20,18,15,.72) 100%); }
    /* banda de servicio (3 pasos) — usada en hubs y landings */
    .servicio-band { border-bottom: 1px solid var(--line); background: var(--paper); }
    .servicio-band .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 34px; padding-top: 17px; padding-bottom: 17px; }
    .servicio-band span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; }
    .servicio-band span b { color: var(--accent); font-weight: 500; margin-right: 8px; }
    @media (max-width: 700px) { .servicio-band .wrap { flex-direction: column; align-items: flex-start; gap: 10px; } }
    .hero-body { position: relative; z-index: 2; width: 100%; padding: 0 5vw 9vh; max-width: 1320px; margin: 0 auto; }
    .hero-body .kicker { color: var(--accent); }
    .hero-body h1 { color: #fff; font-size: clamp(46px,7vw,92px); font-weight: 600; letter-spacing: -.03em; line-height: .96; }
    .hero-body .sub { color: rgba(255,255,255,.9); font-size: 20px; max-width: 30em; margin: 26px 0 36px; line-height: 1.5; }
    .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
    .hero-body .btn-light { background: #fff; color: var(--ink); }
    .hero-body .btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
    .hero-body .wa-note { color: rgba(255,255,255,.72); }
    .scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: 'JetBrains Mono',monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }

    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
    .reveal.is-visible { opacity: 1; transform: none; }
    .reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }

    .ciclo { border-bottom: 1px solid var(--line); }
    .steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); margin-top: 64px; border: 1px solid var(--line); }
    .step { background: var(--bone); padding: 44px 36px 52px; }
    .step .num { font-family: 'JetBrains Mono',monospace; font-size: 14px; font-weight: 500; color: var(--accent); letter-spacing: .1em; line-height: 1; margin-bottom: 26px; }
    .step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
    .step p { font-size: 16px; color: var(--stone); }
    @media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

    .apps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 64px; }
    .app-card { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
    .app-card.wide { grid-column: span 2; aspect-ratio: auto; }
    .app-card img { transition: transform .6s ease; }
    .app-card:hover img { transform: scale(1.04); }
    .app-card span { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 20px 18px; color: #fff; font-weight: 600; font-size: 17px; background: linear-gradient(transparent, rgba(20,18,15,.65)); }
    .apps-more { margin-top: 28px; font-size: 15px; color: var(--stone); }
    @media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(2,1fr); } .app-card.wide { grid-column: span 2; } }

    .materiales { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .fam-label { font-family: 'JetBrains Mono',monospace; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin: 70px 0 26px; display: flex; align-items: center; gap: 16px; }
    a.fam-link { transition: color .2s; }
    a.fam-link:hover { color: var(--accent); }
    .fam-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
    .mat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
    .mat-note { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; padding: 28px 34px; border: 1px solid var(--line); border-radius: 2px; background: var(--sand); }
    .mat-note h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; max-width: 16em; }
    .mat-note p { font-size: 15px; color: var(--stone); margin-top: 10px; max-width: 30em; }
    .mat-note .link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 2px; align-self: flex-start; }
    .mat-card { background: var(--bone); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: border-color .2s; }
    .mat-card:hover { border-color: var(--stone); }
    .mat-card .slab { aspect-ratio: 16/10; overflow: hidden; }
    .mat-card .slab img { transition: transform .6s ease; }
    .mat-card:hover .slab img { transform: scale(1.04); }
    .mat-card .info { padding: 20px 22px 24px; }
    .mat-card h3 { font-size: 20px; font-weight: 600; }
    .mat-card .esp { font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 8px 0 10px; }
    .mat-card p { font-size: 15px; color: var(--stone); }
    .mat-card .link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
    @media (max-width: 1000px) { .mat-grid { grid-template-columns: repeat(2,1fr); } }
    @media (max-width: 600px) { .mat-grid { grid-template-columns: 1fr; } .mat-note { grid-column: auto; } }
    .tabla-wrap { margin-top: 80px; overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 700px; }
    th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
    th { font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
    td:first-child { font-weight: 600; }
    .tabla-note { font-size: 13.5px; color: var(--stone); margin-top: 14px; }

    .nosotros .split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
    .nosotros .media { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; }
    .stats { display: flex; gap: 56px; margin-top: 44px; }
    .stat .n { font-size: 44px; font-weight: 600; letter-spacing: -.02em; }
    .stat .l { font-size: 14px; color: var(--stone); margin-top: 4px; }
    .taller-nota { margin-top: 36px; padding: 22px 26px; background: var(--sand); border-left: 2px solid var(--accent); font-size: 15.5px; border-radius: 2px; }
    @media (max-width: 900px) { .nosotros .split { grid-template-columns: 1fr; gap: 40px; } .stats { gap: 36px; } }

    .galeria { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
    .chip { font-family: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; padding: 10px 20px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--ink); transition: all .15s; }
    .chip:hover { border-color: var(--ink); }
    .chip.on { background: var(--ink); color: var(--bone); border-color: var(--ink); }
    .gal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
    .gal-item { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; position: relative; }
    .gal-item img { transition: transform .6s ease; }
    .gal-item:hover img { transform: scale(1.05); }
    .gal-item span { position: absolute; bottom: 12px; left: 14px; color: #fff; font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
    .gal-item.hide { display: none; }
    @media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(2,1fr); } }
    @media (max-width: 560px) { .gal-grid { grid-template-columns: 1fr; } }

    .social-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; }
    .social-handle { font-family: 'JetBrains Mono',monospace; font-size: 13px; letter-spacing: .08em; color: var(--accent); font-weight: 500; }
    .social-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 44px; }
    .post { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; display: block; background: var(--sand); }
    .post img { transition: transform .5s ease; }
    .post:hover img { transform: scale(1.04); }
    .post .tipo { position: absolute; top: 10px; left: 10px; font-family: 'JetBrains Mono',monospace; font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: rgba(20,18,15,.72); color: #fff; padding: 5px 9px; border-radius: 2px; }
    .post .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; text-shadow: 0 2px 14px rgba(0,0,0,.5); opacity: .9; transition: transform .2s; }
    .post:hover .play { transform: scale(1.12); }
    .post-follow { aspect-ratio: 4/5; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; }
    .post-follow .h { font-family: 'JetBrains Mono',monospace; font-size: 12px; letter-spacing: .1em; color: var(--ink); }
    .post-follow .btn { padding: 10px 16px; font-size: 13px; }
    @media (max-width: 1000px) { .social-grid { grid-template-columns: repeat(3,1fr); } .post-follow { grid-column: span 3; aspect-ratio: auto; padding: 34px; } }
    @media (max-width: 560px) { .social-grid { grid-template-columns: repeat(2,1fr); } .post-follow { grid-column: span 2; } }

    .contacto .split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
    .form-real { display: grid; gap: 14px; margin-top: 36px; }
    .form-real input, .form-real select, .form-real textarea { font-family: inherit; font-size: 16px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; color: var(--ink); width: 100%; }
    .form-real textarea { min-height: 110px; resize: vertical; }
    .form-real .hp { position: absolute; left: -9999px; }
    .form-msg { font-size: 14px; margin-top: 4px; display: none; }
    .form-msg.ok { color: #2e7d32; } .form-msg.err { color: #b3261e; }
    .mapa { background: var(--sand); border: 1px solid var(--line); border-radius: 2px; aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
    .mapa .pin { font-size: 34px; margin-bottom: 14px; }
    .mapa p { font-size: 15px; color: var(--stone); max-width: 24em; }
    .cita-badge { display: inline-block; margin-top: 16px; font-family: 'JetBrains Mono',monospace; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 8px 16px; border-radius: 100px; }
    @media (max-width: 900px) { .contacto .split { grid-template-columns: 1fr; gap: 44px; } }

    footer { background: var(--ink); color: var(--bone); padding: 80px 0 36px; }
    .foot-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; align-items: start; }
    .foot-brand { max-width: 340px; }
    footer .logo .mark { color: var(--bone); }
    footer .logo .tag { color: #9d968a; }
    .foot-contact { display: grid; gap: 9px; font-size: 14.5px; color: #cfc8bb; margin-top: 20px; }
    .foot-contact a:hover { color: var(--bone); }
    .foot-social { display: flex; gap: 12px; margin-top: 18px; }
    .foot-social a { width: 38px; height: 38px; border: 1px solid #3a3631; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
    .foot-social a:hover { border-color: var(--bone); background: rgba(255,255,255,.06); }
    .foot-social svg { width: 17px; height: 17px; fill: #cfc8bb; }
    .foot-social a:hover svg { fill: var(--bone); }
    footer h4 { font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9d968a; margin-bottom: 18px; font-weight: 500; }
    footer ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
    footer a:hover { color: #9d968a; }
    .foot-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 54px; padding-top: 26px; border-top: 1px solid #3a3631; font-family: 'JetBrains Mono',monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9d968a; }
    .foot-trust span { display: inline-flex; align-items: center; gap: 7px; }
    .foot-trust b { color: var(--accent); font-weight: 500; }
    .foot-bottom { margin-top: 24px; font-size: 13.5px; color: #9d968a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .foot-bottom a:hover { color: var(--bone); }
    @media (max-width: 900px) { .foot-main { grid-template-columns: 1fr 1fr; gap: 36px; } .foot-brand { grid-column: 1 / -1; max-width: none; } }
    @media (max-width: 560px) { .foot-main { grid-template-columns: 1fr; } }

    .wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #0b3d24; padding: 13px 18px 13px 15px; border-radius: 100px; box-shadow: 0 8px 26px rgba(0,0,0,.22); font-weight: 600; font-size: 15px; transform: translateY(8px); opacity: 0; transition: opacity .35s ease, transform .35s ease, box-shadow .2s; }
    .wa-float.show { opacity: 1; transform: none; }
    .wa-float:hover { box-shadow: 0 10px 30px rgba(37,211,102,.4); }
    .wa-float svg { width: 24px; height: 24px; fill: #0b3d24; flex: none; }
    @media (max-width: 600px) { .wa-float { right: 14px; bottom: 14px; padding: 14px; border-radius: 50%; } .wa-float .wa-float-label { display: none; } }
    @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .wa-float { transition: opacity .2s; transform: none; } .app-card img, .mat-card .slab img, .gal-item img, .post img { transition: none; } }

/* ============ NAV DROPDOWNS (mega-menú) ============ */
.nav-links .has-dd { position: relative; }
.nav-links .has-dd > a { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.dd-caret { font-size: 9px; opacity: .65; transition: transform .25s; }
.nav-links .has-dd:hover .dd-caret { transform: rotate(180deg); }
/* puente invisible: evita que el hover se corte entre el ítem y el panel */
.nav-links .has-dd::after { content: ''; position: absolute; top: 100%; left: -10px; right: -10px; height: 16px; }
.nav-dd {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 215px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 7px; padding: 8px; display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 18px 44px rgba(20,18,15,.16);
}
.nav-links .has-dd:hover .nav-dd { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%); }
.nav-dd a { color: var(--ink) !important; font-size: 14.5px; font-weight: 500; padding: 10px 14px; border-radius: 4px; white-space: nowrap; }
.nav-dd a:hover { background: var(--sand); color: var(--accent) !important; }
.nav-dd .dd-all { margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent) !important; }

/* ── Acordeón en el menú móvil ── */
@media (max-width: 900px) {
  .mobile-menu { justify-content: flex-start; padding-top: 96px; padding-bottom: 40px; overflow-y: auto; gap: 0; }
  .mobile-menu a:not(.btn), .mm-dd > summary { font-size: 22px; }
  .mm-dd { border-bottom: 1px solid var(--line); }
  .mm-dd > summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; }
  .mm-dd > summary::-webkit-details-marker { display: none; }
  .mm-dd > summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 26px; line-height: 1; }
  .mm-dd[open] > summary::after { content: '\2212'; }
  .mm-dd a { font-size: 17px !important; font-weight: 500; padding: 9px 0 9px 16px !important; border-bottom: none !important; color: var(--stone) !important; }
  .mm-dd a.dd-all { color: var(--accent) !important; font-family: 'JetBrains Mono', monospace; font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; }
}

/* Subrayado animado en los ítems del nav (hover) — elegante, no cargado */
.nav-links > li > a:not(.btn) { position: relative; }
.nav-links > li > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: center;
  transition: transform .28s ease; opacity: .9;
}
.nav-links > li:hover > a:not(.btn)::after { transform: scaleX(1); }
