:root {
    /*EDITMODE-BEGIN*/
    --tweak-palette: "antique";
    --tweak-type: "editorial";
    --tweak-hero: "split";
    --tweak-cards: "bordered";
    --tweak-density: "comfortable";
    --tweak-copy: "warm";
    --tweak-variant: "v1";
    /*EDITMODE-END*/
  }

  /* --- Palettes --- */
  .pal-antique {
    --bg: #faf6ee;
    --bg-2: #f3ebd9;
    --bg-3: #ece0c4;
    --ink: #1a1713;
    --ink-2: #4a3f30;
    --muted: #7a6d57;
    --gold: #a68b5b;
    --gold-deep: #7a6638;
    --gold-soft: #d4bc86;
    --line: #d9ccae;
    --accent: #8b3a2f;
  }
  .pal-ivory {
    --bg: #ffffff;
    --bg-2: #f7f2e8;
    --bg-3: #efe6d2;
    --ink: #14120e;
    --ink-2: #3d352a;
    --muted: #857a63;
    --gold: #b89660;
    --gold-deep: #8a6d3a;
    --gold-soft: #e0cb9a;
    --line: #e6dcc4;
    --accent: #6b4423;
  }
  .pal-deep {
    --bg: #f5ede0;
    --bg-2: #e8dcc2;
    --bg-3: #1f1a13;
    --ink: #12100b;
    --ink-2: #3a3225;
    --muted: #6f6550;
    --gold: #8f7438;
    --gold-deep: #5c4820;
    --gold-soft: #c9ad6f;
    --line: #c9b98d;
    --accent: #3a2817;
  }

  /* --- Type families --- */
  .type-editorial {
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --font-sans: "Instrument Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
  }
  .type-clean {
    --font-display: "Instrument Sans", system-ui, sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Instrument Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
  }

  /* --- Density --- */
  .dens-comfortable { --sec-pad: 140px; --gap: 28px; }
  .dens-compact     { --sec-pad: 96px;  --gap: 20px; }
  .dens-spacious    { --sec-pad: 180px; --gap: 36px; }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.55;
  }

  ::selection { background: var(--gold); color: var(--bg); }

  .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
  }

  /* --- Shared typography --- */
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--gold);
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.05;
    color: var(--ink);
  }
  .display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(52px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.02em;
  }
  .display i { font-family: var(--font-serif); font-weight: 400; color: var(--gold-deep); }
  .lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 48ch; }

  /* --- Nav --- */
  nav.top {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 40px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.4s ease;
    background: transparent;
  }
  nav.top.scrolled {
    background: rgba(250, 246, 238, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 14px 40px;
  }
  .logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
  }
  a { color: inherit; }
  .logo-mark {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-style: italic;
    border: 1px solid var(--gold);
    position: relative;
  }
  .logo-mark::after {
    content: "";
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0.4;
  }
  .logo-text { line-height: 1.1; }
  .logo-text small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
  .navlinks {
    display: flex; gap: 36px;
    font-size: 14px;
  }
  .navlinks a {
    color: var(--ink-2);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
  }
  .navlinks a:hover { color: var(--gold-deep); }
  .navlinks a::after {
    content: ""; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s;
  }
  .navlinks a:hover::after { transform: scaleX(1); }

  .wa-dual {
    display: flex; align-items: center; gap: 8px;
    position: relative;
  }
  .wa-dual-trigger {
    background: var(--ink);
    color: var(--bg);
    border: none;
    padding: 11px 20px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s;
  }
  .wa-dual-trigger:hover {
    background: var(--gold-deep);
    transform: translateY(-1px);
  }
  .wa-dual-trigger svg { width: 14px; height: 14px; }

  /* --- Hero: Split --- */
  .hero {
    padding: 180px 0 100px;
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    width: 100%;
  }
  .hero-copy .display { margin: 24px 0 32px; }
  .hero-meta {
    display: flex; gap: 32px 40px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .hero-meta-item {
    flex: 1 1 120px;
  }
  .hero-meta-item .num {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--gold-deep);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
  }
  .hero-meta-item .label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .hero-cta {
    display: flex; gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .btn {
    padding: 16px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    white-space: nowrap;
  }
  .btn-primary {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
  }
  .btn-ghost:hover {
    background: var(--ink);
    color: var(--bg);
  }
  .btn-gold {
    background: var(--gold-deep);
    color: var(--bg);
  }
  .btn-gold:hover {
    background: var(--ink);
  }

  /* --- Hero image frame --- */
  .hero-visual {
    position: relative;
    aspect-ratio: 4/5;
  }
  .placeholder {
    position: relative;
    background:
      repeating-linear-gradient(135deg,
        var(--bg-2) 0,
        var(--bg-2) 12px,
        var(--bg-3) 12px,
        var(--bg-3) 13px);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-deep);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    overflow: hidden;
  }
  .placeholder::after {
    content: "";
    position: absolute; inset: 12px;
    border: 1px solid var(--gold);
    opacity: 0.3;
    pointer-events: none;
  }
  .hero-visual .placeholder { width: 100%; height: 100%; }
  .hero-visual-tag {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--ink);
    color: var(--bg);
    padding: 20px 28px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    z-index: 2;
    max-width: 220px;
    line-height: 1.3;
  }
  .hero-visual-tag span {
    display: block;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--gold-soft);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .hero-visual-badge {
    position: absolute;
    top: 24px; left: -24px;
    background: var(--bg);
    border: 1px solid var(--gold);
    padding: 14px 18px;
    z-index: 3;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
  .hero-visual-badge .dot {
    width: 8px; height: 8px; background: #25D366; border-radius: 50%;
    animation: pulse 2s infinite;
  }
  .hero-visual-badge .t {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
  }

  /* --- Hero V2 centered --- */
  body[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; max-width: 900px; margin: 0 auto; }
  body[data-hero="centered"] .hero-visual { display: none; }
  body[data-hero="centered"] .hero-meta { justify-content: center; }
  body[data-hero="centered"] .hero-cta { justify-content: center; }
  body[data-hero="centered"] .lead { margin: 0 auto; }

  /* --- Hero V3 magazine --- */
  body[data-hero="magazine"] .hero { padding-top: 120px; }
  body[data-hero="magazine"] .hero-grid {
    grid-template-columns: 0.3fr 1fr 0.4fr;
    gap: 40px;
    align-items: stretch;
  }
  body[data-hero="magazine"] .hero-side-l {
    border-right: 1px solid var(--line);
    padding-right: 20px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    align-self: start;
  }
  body[data-hero="magazine"] .hero-copy { text-align: center; }
  body[data-hero="magazine"] .hero-copy .lead { margin: 24px auto 32px; }
  body[data-hero="magazine"] .hero-copy .display { font-size: clamp(60px, 10vw, 160px); }
  body[data-hero="magazine"] .hero-visual { aspect-ratio: 3/4; }
  body:not([data-hero="magazine"]) .hero-side-l { display: none; }

  /* Hero background ornament */
  .hero-ornament {
    position: absolute;
    top: 20%; left: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
    opacity: 0.25;
    filter: blur(40px);
    pointer-events: none;
  }

  /* --- Section shared --- */
  section { padding: var(--sec-pad) 0; position: relative; }
  .section-head {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: end;
  }
  .section-head h2 {
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1;
  }
  .section-head h2 i { font-family: var(--font-serif); color: var(--gold-deep); font-weight: 400; }
  .section-desc {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 52ch;
  }

  /* --- Sobre nosotros (dual: consultorio + escuela) --- */
  .about { background: var(--bg-2); }
  .about-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
  }
  .about-card {
    background: var(--bg);
    padding: 48px;
    border: 1px solid var(--line);
    position: relative;
    transition: all 0.4s;
  }
  .about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  }
  .about-card .num {
    position: absolute;
    top: 24px; right: 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gold-deep);
    letter-spacing: 0.15em;
  }
  .about-card .ico {
    width: 56px; height: 56px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: grid; place-items: center;
    margin-bottom: 32px;
    color: var(--gold-deep);
  }
  .about-card h3 {
    font-size: 32px;
    margin-bottom: 16px;
  }
  .about-card h3 i { font-family: var(--font-serif); color: var(--gold-deep); font-weight: 400; }
  .about-card p {
    color: var(--ink-2);
    margin-bottom: 28px;
    font-size: 16px;
  }
  .about-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
  }
  .about-card li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px;
    font-size: 14px;
    color: var(--ink-2);
  }
  .about-card li::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .about-card .wa-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
  }
  .about-card .wa-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
  }

  /* --- Cursos --- */
  .cursos { background: var(--bg); }
  .cursos-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
  }
  .filter-pill {
    padding: 10px 20px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.25s;
  }
  .filter-pill:hover { border-color: var(--gold); color: var(--gold-deep); }
  .filter-pill.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }

  .cursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
  }
  .curso {
    background: var(--bg);
    border: 1px solid var(--line);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  .curso:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  }
  .curso-img {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
  }
  .curso-img .placeholder {
    width: 100%; height: 100%;
  }
  .curso-tag {
    position: absolute; top: 16px; left: 16px;
    background: var(--bg);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-deep);
    z-index: 2;
    border: 1px solid var(--line);
  }
  .curso-dur {
    position: absolute; bottom: 16px; right: 16px;
    background: rgba(20, 18, 14, 0.85);
    color: var(--bg);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    z-index: 2;
  }
  .curso-body {
    padding: 28px;
    display: flex; flex-direction: column;
    flex: 1;
  }
  .curso-body h3 {
    font-size: 26px;
    margin-bottom: 12px;
    line-height: 1.1;
  }
  .curso-body h3 i { font-family: var(--font-serif); color: var(--gold-deep); font-weight: 400; }
  .curso-body p {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 20px;
    flex: 1;
  }
  .curso-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .curso-price {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--ink);
  }
  .curso-price small {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    display: block;
    letter-spacing: 0.12em;
  }
  .curso-arrow {
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid; place-items: center;
    transition: all 0.3s;
    color: var(--ink);
  }
  .curso:hover .curso-arrow {
    background: var(--gold-deep);
    color: var(--bg);
    border-color: var(--gold-deep);
    transform: rotate(-45deg);
  }

  /* Card style variants */
  body[data-cards="minimal"] .curso { border: none; border-top: 1px solid var(--line); border-radius: 0; }
  body[data-cards="minimal"] .curso-img { aspect-ratio: 16/10; }
  body[data-cards="editorial"] .curso { border: none; background: transparent; }
  body[data-cards="editorial"] .curso-img { aspect-ratio: 1/1; margin-bottom: 4px; }
  body[data-cards="editorial"] .curso-body { padding: 20px 0; }

  /* --- Empresas --- */
  .empresas {
    background: var(--ink);
    color: var(--bg);
    position: relative;
    overflow: hidden;
  }
  .empresas .eyebrow { color: var(--gold-soft); }
  .empresas .eyebrow::before { background: var(--gold-soft); }
  .empresas h2 { color: var(--bg); }
  .empresas h2 i { color: var(--gold-soft); }
  .empresas .section-desc { color: rgba(255,255,255,0.75); }
  .empresas-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
  }
  .empresas-features {
    display: grid;
    gap: 0;
  }
  .empresa-feat {
    padding: 28px 0;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    align-items: start;
  }
  .empresa-feat:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .empresa-feat .n {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold-soft);
    padding-top: 4px;
  }
  .empresa-feat h4 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--bg);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .empresa-feat p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
  }
  .empresas-visual {
    position: relative;
    aspect-ratio: 3/4;
  }
  .empresas-visual .placeholder {
    width: 100%; height: 100%;
    background:
      repeating-linear-gradient(135deg,
        rgba(255,255,255,0.03) 0,
        rgba(255,255,255,0.03) 12px,
        rgba(255,255,255,0.08) 12px,
        rgba(255,255,255,0.08) 13px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gold-soft);
  }
  .empresas-visual .placeholder::after {
    border: 1px solid rgba(255,255,255,0.15);
  }
  .empresas-cta {
    margin-top: 40px;
  }

  /* --- Instructores --- */
  .instructores { background: var(--bg-2); }
  .instr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .instr {
    position: relative;
    cursor: pointer;
  }
  .instr-img {
    aspect-ratio: 3/4;
    background: var(--bg-3);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s;
  }
  .instr-img .placeholder {
    width: 100%; height: 100%;
  }
  .instr:hover .instr-img { transform: scale(0.98); }
  .instr-info {
    padding: 20px 4px 0;
  }
  .instr-info h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .instr-info h4 i { font-family: var(--font-serif); font-weight: 400; color: var(--gold-deep); }
  .instr-info p {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* --- Certificaciones --- */
  .certs { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0;}
  .certs-head {
    text-align: center;
    margin-bottom: 48px;
  }
  .certs-head h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .certs-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    align-items: center;
  }
  .cert {
    aspect-ratio: 3/2;
    border: 1px solid var(--line);
    display: grid; place-items: center;
    color: var(--gold-deep);
    font-family: var(--font-display);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 10px;
    opacity: 0.6;
    transition: opacity 0.3s;
  }
  .cert:hover { opacity: 1; }

  /* --- Galería --- */
  .galeria { background: var(--bg); }
  .gal-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 12px;
  }
  .gal {
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
  }
  .gal .placeholder { width: 100%; height: 100%; }
  .gal:hover { transform: scale(0.98); }
  .gal:nth-child(1) { grid-column: span 5; grid-row: span 3; }
  .gal:nth-child(2) { grid-column: span 4; grid-row: span 2; }
  .gal:nth-child(3) { grid-column: span 3; grid-row: span 2; }
  .gal:nth-child(4) { grid-column: span 4; grid-row: span 2; }
  .gal:nth-child(5) { grid-column: span 3; grid-row: span 3; }
  .gal:nth-child(6) { grid-column: span 5; grid-row: span 2; }
  .gal:nth-child(7) { grid-column: span 4; grid-row: span 2; }

  /* --- FAQ --- */
  .faq { background: var(--bg-2); }
  .faq-wrap {
    max-width: 920px;
    margin: 0 auto;
  }
  .faq-item {
    border-top: 1px solid var(--line);
    cursor: pointer;
  }
  .faq-item:last-child { border-bottom: 1px solid var(--line); }
  .faq-q {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.2s;
  }
  .faq-item:hover .faq-q { color: var(--gold-deep); }
  .faq-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: all 0.4s;
  }
  .faq-item.open .faq-icon {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    transform: rotate(45deg);
  }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .faq-item.open .faq-a { max-height: 300px; }
  .faq-a-inner {
    padding: 0 0 28px;
    padding-right: 80px;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
  }

  /* --- Contacto --- */
  .contacto { background: var(--bg); }
  .cont-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
  }
  .cont-info h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 32px; }
  .cont-info h2 i { font-family: var(--font-serif); color: var(--gold-deep); font-weight: 400; }
  .cont-detail {
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  .cont-detail:last-child { border-bottom: 1px solid var(--line); }
  .cont-social-row .val { display: flex; flex-direction: column; gap: 12px; }
  .cont-social-group { display: flex; align-items: center; gap: 12px; }
  .cont-social-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); min-width: 72px; }
  .cont-social-icons { display: flex; gap: 8px; }
  .cont-social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s; }
  .cont-social-icons a:hover { color: var(--gold-deep); border-color: var(--gold); background: var(--bg-2); }
  .cont-detail .lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .cont-detail .val {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--ink);
  }
  .cont-form {
    background: var(--bg-2);
    padding: 48px;
    border: 1px solid var(--line);
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .form-group { margin-bottom: 16px; }
  .form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    transition: all 0.25s;
  }
  .form-group textarea { min-height: 120px; resize: vertical; font-family: var(--font-sans); }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(166, 139, 91, 0.12);
  }
  .form-submit {
    width: 100%;
    padding: 18px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s;
  }
  .form-submit:hover {
    background: var(--gold-deep);
  }

  /* --- Mapa --- */
  .mapa { padding: 0; }
  .mapa-wrap {
    position: relative;
    aspect-ratio: 21/9;
    background: var(--bg-3);
    overflow: hidden;
  }
  .mapa-placeholder {
    position: absolute; inset: 0;
    background:
      linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  }
  .mapa-placeholder::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
  }
  .mapa-pin {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -100%);
    z-index: 2;
  }
  .mapa-pin-dot {
    width: 20px; height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: pulse-pin 2s infinite;
  }
  @keyframes pulse-pin {
    0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 0 0 rgba(139, 58, 47, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 0 16px rgba(139, 58, 47, 0); }
  }
  .mapa-card {
    position: absolute;
    bottom: 40px; left: 40px;
    background: var(--bg);
    padding: 24px 32px;
    border: 1px solid var(--line);
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    z-index: 3;
  }
  .mapa-card h4 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 8px;
  }
  .mapa-card p {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 12px;
  }
  .mapa-card .lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 8px;
  }

  /* --- Footer --- */
  footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
  }
  footer .wrap { }
  .foot-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .foot-brand h3 {
    font-family: var(--font-display);
    color: var(--bg);
    font-size: 32px;
    margin-bottom: 16px;
  }
  .foot-brand h3 i { color: var(--gold-soft); font-family: var(--font-serif); }
  .foot-brand p {
    font-size: 14px;
    max-width: 30ch;
  }
  .foot-col h5 {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 20px;
    font-weight: 500;
  }
  .foot-col ul { list-style: none; }
  .foot-col li { padding: 6px 0; }
  .foot-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .foot-col a:hover { color: var(--bg); }
  /* Social icons in footer */
  .foot-social { display: flex; flex-direction: column; gap: 14px; }
  .foot-social-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 7px;
  }
  .foot-social-icons { display: flex; gap: 8px; }
  .foot-social-icons a {
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    display: grid; place-items: center;
    color: rgba(255,255,255,0.45);
    transition: border-color .2s, color .2s;
  }
  .foot-social-icons a:hover {
    border-color: var(--gold-soft);
    color: var(--gold-soft);
  }

  .foot-top { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; }

  .foot-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
  }

  /* --- Floating WA --- */
  .wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
  }
  .wa-float-toggle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    display: grid; place-items: center;
    transition: all 0.3s;
    position: relative;
  }
  .wa-float-toggle:hover { transform: scale(1.08); }
  .wa-float-toggle svg { width: 30px; height: 30px; }
  .wa-float-toggle::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.25;
    animation: ripple 2s infinite;
  }
  @keyframes ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
  }
  .wa-float-menu {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    min-width: 280px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s;
    transform-origin: bottom right;
  }
  .wa-float-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .wa-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.2s;
  }
  .wa-opt:hover { background: var(--bg-2); }
  .wa-opt-ico {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #25D366;
    display: grid; place-items: center;
    color: white;
    flex-shrink: 0;
  }
  .wa-opt-ico svg { width: 20px; height: 20px; }
  .wa-opt-text h6 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 2px;
  }
  .wa-opt-text span {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
  }

  /* Animations */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.08s; }
  .reveal-delay-2 { transition-delay: 0.16s; }
  .reveal-delay-3 { transition-delay: 0.24s; }
  .reveal-delay-4 { transition-delay: 0.32s; }

  /* ── Promo Banner (portrait cards) ── */
  .promo-banner { padding: 80px 0; background: var(--bg); }
  .promo-outer { overflow: hidden; }
  .promo-track { display: flex; gap: 20px; transition: transform 0.65s cubic-bezier(0.25,1,0.5,1); will-change: transform; }
  .promo-card { min-width: calc(33.333% - 14px); aspect-ratio: 3/4; border-radius: 16px; position: relative; overflow: hidden; flex-shrink: 0; }
  .promo-card-bg { position: absolute; inset: 0; }
  .promo-card-bg img { width: 100%; height: 100%; object-fit: cover; }
  .promo-card::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, transparent 100%); }
  .promo-card-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #f5f1ea; }
  .promo-card-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; margin-bottom: 12px; display: block; }
  .promo-card-body h3 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; line-height: 1.15; margin-bottom: 8px; }
  .promo-card-body p { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; opacity: 0.65; margin-bottom: 22px; }
  .promo-card-cta { display: inline-flex; align-items: center; padding: 9px 20px; border: 1px solid rgba(245,241,234,0.45); color: #f5f1ea; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; border-radius: 2px; width: fit-content; }
  .promo-card-cta:hover { background: rgba(245,241,234,0.15); border-color: rgba(245,241,234,0.8); }
  .promo-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
  .promo-dots { display: flex; gap: 8px; align-items: center; }
  .promo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.2; border: none; cursor: pointer; transition: all 0.28s; padding: 0; }
  .promo-dot.active { opacity: 1; width: 22px; border-radius: 3px; }
  .promo-arrows { display: flex; gap: 8px; }
  .promo-arr { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #ddd); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--ink); }
  .promo-arr:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  @media (max-width: 900px) {
    .promo-card { min-width: calc(72% - 10px); }
    .promo-banner { padding: 60px 0; }
  }
  @media (max-width: 600px) {
    .promo-card { min-width: calc(84% - 10px); }
  }

  /* Marquee */
  .marquee {
    padding: 20px 0;
    background: var(--ink);
    color: var(--bg);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--gold-deep);
    border-bottom: 1px solid var(--gold-deep);
  }
  .marquee-inner {
    display: flex;
    gap: 60px;
    animation: slide var(--marquee-dur, 40s) linear infinite;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 32px;
    font-style: italic;
    color: var(--gold-soft);
    width: max-content;
  }
  .marquee-inner span { display: inline-flex; align-items: center; gap: 60px; }
  .marquee-inner .dot {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
  }
  @keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* --- Hamburger button (hidden on desktop) --- */
  .nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink);
    flex-shrink: 0;
  }
  .nav-toggle:hover { background: var(--bg-2); }

  @media (max-width: 900px) {
    .nav-toggle { display: flex; }

    nav.top {
      padding: 16px 24px;
      flex-wrap: wrap;
      row-gap: 0;
    }
    nav.top.scrolled { padding: 12px 24px; }

    .navlinks {
      display: none;
      order: 3;
      width: 100%;
      flex-direction: column;
      gap: 0;
      padding: 8px 0 16px;
      border-top: 1px solid var(--line);
      margin-top: 12px;
    }
    .navlinks a {
      padding: 12px 4px;
      font-size: 15px;
      border-bottom: 1px solid var(--line);
    }
    .navlinks a:last-child { border-bottom: none; }

    nav.top.menu-open .navlinks { display: flex; }
    nav.top.menu-open,
    nav.top.menu-open.scrolled {
      background: var(--bg);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .wa-dual-trigger { order: 2; }

    .hero-grid, .about-dual, .empresas-grid, .cont-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .cursos-grid { grid-template-columns: 1fr; }
    .instr-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .foot-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
    .foot-brand { grid-column: 1 / -1; }
    footer { padding: 60px 0 32px; }
    .gal-grid { grid-template-columns: repeat(6, 1fr); }
    .gal:nth-child(n) { grid-column: span 3; grid-row: span 2; }
    .section-head { grid-template-columns: 1fr; margin-bottom: 40px; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-visual-tag { position: static; margin-top: 20px; }
    .hero-visual-badge { left: 0; }
    .cont-form { padding: 28px; }
    .mapa-card { position: static; margin: -20px 24px 0; }
  }

  @media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .display { font-size: clamp(42px, 11vw, 72px); }
    .lead { font-size: 16px; }
    .instr-grid { grid-template-columns: 1fr; }
    .certs-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .foot-top { grid-template-columns: 1fr; gap: 24px; }
    .foot-brand { grid-column: 1; }
    .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
    footer { padding: 48px 0 28px; }
    .hero { padding: 100px 0 50px; }
    .section-head h2 { font-size: clamp(32px, 9vw, 52px); }
  }

/* ── VERIFICACIÓN DE CERTIFICADOS ── */
.cert-search-wrap {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  display: flex;
  gap: 10px;
}
.cert-search-wrap input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border, #ddd);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .2s;
}
.cert-search-wrap input:focus {
  border-color: var(--gold-deep, #b8860b);
  outline: none;
}
.cert-search-wrap button {
  background: var(--gold-deep, #b8860b);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Instrument Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.cert-search-wrap button:hover { opacity: .88; }

#certResult { max-width: 560px; margin: 0 auto; }

/* Válido */
.cert-valid { border: 2px solid #22c55e; border-radius: 14px; overflow: hidden; }
.cert-valid-header {
  background: #f0fdf4;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #bbf7d0;
}
.cert-check { font-size: 2rem; color: #16a34a; line-height: 1; }
.cert-valid-header h3 { margin: 0; color: #15803d; font-size: 1.1rem; }
.cert-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: #4ade80;
  display: block;
  margin-top: 2px;
}
.cert-data { padding: 20px 24px; display: flex; flex-direction: column; gap: 0; }
.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .9rem;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cert-row:last-child { border-bottom: none; }
.cert-row span:first-child { color: #64748b; flex-shrink: 0; }
.cert-row strong { color: #1e293b; text-align: right; }
.cert-download {
  display: block;
  margin: 0 24px 20px;
  padding: 12px;
  background: var(--gold-deep, #b8860b);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.cert-download:hover { opacity: .88; }

/* No encontrado / revocado */
.cert-notfound, .cert-revoked, .cert-error {
  border: 2px solid #fca5a5;
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  background: #fef2f2;
}
.cert-revoked { border-color: #fcd34d; background: #fffbeb; }
.cert-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.cert-notfound .cert-icon { color: #ef4444; }
.cert-revoked  .cert-icon { color: #d97706; }
.cert-notfound h3, .cert-error h3 { color: #b91c1c; margin: 0 0 8px; }
.cert-revoked h3 { color: #92400e; margin: 0 0 8px; }
.cert-notfound p, .cert-revoked p, .cert-error p { color: #555; font-size: .9rem; margin: 4px 0; }
.cert-notfound a, .cert-revoked a { color: var(--gold-deep, #b8860b); }
.cert-loading { text-align: center; padding: 40px; color: #64748b; font-size: .95rem; }

@media (max-width: 600px) {
  .cert-search-wrap { flex-direction: column; }
  .cert-row { flex-direction: column; gap: 2px; }
  .cert-row strong { text-align: left; }
}