html, body, #root { margin: 0; min-height: 100%; }
body { background: #faf6f1; }

.py {
    --brand: #e8501a;
    --brand-dark: #c93f10;
    --ink: #1c1512;
    --ink-2: #5c534f;
    --cream: #faf6f1;
    --dark: #171110;
    font-family: var(--ds-text-font, 'Helvetica Neue', Arial, sans-serif);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
}
.py *, .py *::before, .py *::after { box-sizing: border-box; }
.py img { display: block; max-width: 100%; }
.py h1, .py h2, .py h3 { font-family: var(--ds-display-font, Georgia, 'Times New Roman', serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.py p { margin: 0; }

.py-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.py-center { text-align: center; }
.py-section { padding: 72px 24px; max-width: 1120px; margin: 0 auto; }
.py-section > h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 40px; }
.py-section > .py-center { margin-bottom: 12px; }
.py-section > h2.py-center { margin-bottom: 40px; }

/* Header */
.py-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #ece3da; }
.py-header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.py-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.py-logo-mark { width: 30px; height: auto; display: block; }
.py-logo-mark-tile { background: #faf6f1; border-radius: 9px; padding: 4px 5px; }
.py-logo-text { font-family: var(--ds-display-font, Georgia, serif); font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.py-logo-text em { font-style: normal; color: var(--brand); }
.py-logo-light { color: #f5efe9; }
.py-nav { display: flex; gap: 22px; margin-left: auto; }
.py-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.py-nav a:hover { color: var(--ink); }
.py-nav-mobile { display: none; }
.py-burger { display: none; margin-left: auto; background: none; border: 0; padding: 12px; cursor: pointer; }
.py-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Buttons */
.py-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 13px 22px; font-size: 14.5px; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .15s; }
.py-btn:hover { background: var(--brand-dark); }
.py-btn-small { padding: 10px 16px; font-size: 13.5px; margin-left: 0; }
.py-btn-outline { background: transparent; color: var(--ink); border: 1.5px solid #d8cfc7; }
.py-btn-outline:hover { background: #fff; border-color: var(--ink); }
.py-btn-light { background: #fff; color: var(--brand); }
.py-btn-light:hover { background: #fdf0ea; }

/* Hero */
.py-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #faf6f1 0%, #f7ece3 100%); }
.py-hero-clef { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); height: 120%; width: auto; pointer-events: none; opacity: .09; }
.py-hero-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 88px 24px 72px; }
.py-hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin-bottom: 22px; }
.py-hero-sub { font-size: 16.5px; color: var(--ink-2); max-width: 480px; margin-bottom: 30px; }
.py-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.py-hero-bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; }
.py-hero-bullets li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }

/* Compromiso */
.py-compromiso { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.py-section-intro { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0 auto 48px; text-align: center; }
.py-compromiso-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.py-compromiso-grid figure { margin: 0; border-radius: 18px; overflow: hidden; }
.py-compromiso-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.py-compromiso-grid h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 18px; }
.py-compromiso-grid p:last-child { color: var(--ink-2); font-size: 15.5px; }

/* Servicios */
.py-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.py-card { position: relative; background: #fff; border: 1px solid #efe7df; border-radius: 16px; padding: 28px 24px 24px; transition: box-shadow .15s, transform .15s; }
.py-card:hover { box-shadow: 0 10px 30px rgba(28, 21, 18, .08); transform: translateY(-2px); }
.py-card-icon { width: 52px; height: 52px; border-radius: 12px; background: #fdeee6; color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.py-card-icon svg { width: 30px; height: 30px; }
.py-card h3 { font-size: 19px; margin-bottom: 10px; }
.py-card p { font-size: 14px; color: var(--ink-2); }
.py-card-arrow { position: absolute; bottom: 18px; right: 20px; color: var(--brand); }

/* CTA band */
.py-band { background: linear-gradient(120deg, var(--brand) 0%, #d13f0e 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 56px max(24px, calc((100% - 1120px) / 2 + 24px)); }
.py-band h2 { color: #fff; font-size: clamp(22px, 3.2vw, 32px); }

/* Pasos */
.py-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.py-steps::before { content: ''; position: absolute; top: 7px; left: 8%; right: 8%; height: 1.5px; background: #e5d9cd; }
.py-steps li { position: relative; text-align: center; padding-top: 30px; }
.py-step-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--brand); background: var(--cream); }
.py-step-n { display: block; font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .08em; margin-bottom: 6px; }
.py-steps h3 { font-size: 18px; margin-bottom: 8px; }
.py-steps p { font-size: 13px; color: var(--ink-2); }

/* Perfiles */
.py-perfiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.py-perfil { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; background: var(--dark); }
.py-perfil img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.py-perfil-overlay { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(23,17,16,0) 30%, rgba(23,17,16,.85) 100%); color: #fff; }
.py-perfil-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.py-perfil-icon svg { width: 22px; height: 22px; }
.py-perfil h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.py-perfil p { font-size: 13px; color: rgba(255,255,255,.85); }

/* Stats */
.py-stats { max-width: 1120px; margin: 0 auto; padding: 40px 24px 80px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.py-stats > h2 { font-size: clamp(24px, 3.2vw, 34px); }
.py-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.py-stat-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #fdeee6; color: var(--brand); align-items: center; justify-content: center; margin-bottom: 14px; }
.py-stat-icon svg { width: 26px; height: 26px; }
.py-stat strong { display: block; font-family: var(--ds-display-font, Georgia, serif); font-size: 40px; color: var(--brand); line-height: 1.1; margin-bottom: 8px; }
.py-stat p { font-size: 13px; color: var(--ink-2); }

/* Recursos */
.py-recursos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.py-recursos-head h2 { font-size: clamp(24px, 3.4vw, 36px); }
.py-link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.py-articulos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.py-articulo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.py-articulo h3 { font-size: 17px; margin-bottom: 10px; }

/* Footer */
.py-footer { background: var(--dark); color: #cfc6c0; padding: 72px 24px 32px; }
.py-footer-cta, .py-footer-grid, .py-footer-legal { max-width: 1120px; margin: 0 auto; }
.py-footer-cta { margin-bottom: 48px; }
.py-footer-cta h2 { color: #fff; font-size: clamp(28px, 4.5vw, 44px); }
.py-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid #2e2624; }
.py-footer-brand p { margin-top: 18px; font-size: 14px; max-width: 340px; }
.py-form { display: grid; gap: 14px; }
.py-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #a99f99; }
.py-form input, .py-form textarea { background: #231b19; border: 1px solid #3a2f2b; border-radius: 8px; color: #f5efe9; padding: 12px 14px; font-size: 14.5px; font-family: inherit; }
.py-form input:focus, .py-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.py-form .py-btn { justify-content: center; }
.py-form-note { font-size: 13px; color: #e8b84b; }
.py-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; font-size: 12.5px; color: #8d817b; }
.py-demo-note { color: #6e625d; }

@media (max-width: 900px) {
    .py-nav, .py-header-inner > .py-btn-small { display: none; }
    .py-burger { display: block; }
    .py-nav-mobile { display: grid; gap: 4px; padding: 8px 24px 20px; }
    .py-nav-mobile a:not(.py-btn) { padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 16px; border-bottom: 1px solid #ece3da; }
    .py-nav-mobile .py-btn { margin-top: 14px; justify-content: center; }
    .py-compromiso-grid, .py-footer-grid, .py-stats { grid-template-columns: 1fr; }
    .py-cards { grid-template-columns: repeat(2, 1fr); }
    .py-perfiles, .py-articulos { grid-template-columns: repeat(2, 1fr); }
    .py-steps { grid-template-columns: 1fr; gap: 28px; max-width: 420px; margin: 0 auto; }
    .py-steps::before { display: none; }
    .py-steps li { text-align: left; padding: 0 0 0 32px; }
    .py-step-dot { left: 0; transform: none; top: 4px; }
    .py-band { flex-direction: column; align-items: flex-start; }
    .py-stats { gap: 32px; }
    .py-hero-clef { opacity: .06; }
}
@media (max-width: 560px) {
    .py-cards, .py-perfiles, .py-articulos, .py-stats-grid { grid-template-columns: 1fr; }
    .py-perfil { aspect-ratio: 4/3; }
    .py-section { padding: 56px 20px; }
    .py-hero-inner { padding: 64px 20px 56px; }
    .py-compromiso { padding: 56px 20px; }
    .py-recursos-head { flex-direction: column; align-items: flex-start; }
}

.py-stats-note { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; margin: 0; opacity: .8; }

/* Sincronizaciones y cobertura: misma identidad del borrador */
.py [id] { scroll-margin-top: 100px; }
.py-sync { background: #f5e9de; border-top: 1px solid #eadbcc; border-bottom: 1px solid #eadbcc; }
.py-section-lead { max-width: 760px; color: var(--ink-2); font-size: 16px; margin-bottom: 32px !important; }
.py-sync-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.py-sync-card { background: #fff; border-radius: 16px; border: 1px solid #eadbcc; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.py-sync-card .py-eyebrow { margin-bottom: 0; }
.py-sync-card h3 { font-size: 28px; line-height: 1.2; }
.py-sync-card > p:not(.py-eyebrow) { font-size: 15px; color: var(--ink-2); }
.py-sync-card .py-brief { font-size: 13px !important; border-top: 1px solid #efe7df; padding-top: 16px; }
.py-sync-card .py-btn { align-self: flex-start; margin-top: auto; }
.py-scope-note { max-width: 820px; font-size: 13px; color: var(--ink-2); margin-top: 24px !important; }
.py-placeholder { border: 1px dashed #c9ae98; border-radius: 12px; padding: 20px 24px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.py-placeholder strong { display: block; color: var(--ink); margin-bottom: 6px; }
.py-coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.py-coverage-grid article { border-top: 2px solid var(--brand); padding-top: 20px; }
.py-coverage-grid h3 { font-size: 22px; margin: 10px 0; }
.py-coverage-grid p { color: var(--ink-2); font-size: 14px; }
.py-contact-pending { margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--brand); }
.py-contact-pending strong { display: block; color: #f5efe9; font-size: 14px; margin-top: 16px; }
.py-contact-pending p { margin-top: 4px; }
.py-form-purpose { color: #f5efe9; font-size: 16px; }
.py-demo-note { color: #b8aaa2; }
.py-stats-note { opacity: 1; }
@media (max-width: 760px) {
    .py-sync-grid, .py-coverage-grid { grid-template-columns: 1fr; }
    .py-sync-card { padding: 24px; }
    .py-sync-card h3 { font-size: 25px; }
}
@media (max-width: 1100px) {
    .py-nav, .py-header-inner > .py-btn-small { display: none; }
    .py-burger { display: block; }
    .py-nav-mobile { display: grid; gap: 4px; padding: 8px 24px 20px; }
    .py-nav-mobile a:not(.py-btn) { padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 16px; border-bottom: 1px solid #ece3da; }
    .py-nav-mobile .py-btn { margin-top: 14px; justify-content: center; }
}
.py-placeholder a { color: var(--brand-dark); overflow-wrap: anywhere; }
.py-contact-pending a { color: #f5efe9; overflow-wrap: anywhere; }
.py-band .py-eyebrow { color: #fff; }
.py-catalogue-copy { max-width: 640px; margin-top: 16px !important; font-size: 16px; }
.py-band .py-btn { flex-shrink: 0; }
.py-card { padding-bottom: 42px; }
.py-btn:focus-visible, .py a:focus-visible, .py-burger:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 4px; }
.py-footer a:focus-visible { outline-color: #fff; }
@media (min-width: 1101px) {
    .py-header-inner { gap: 20px; }
    .py-logo, .py-header-inner > .py-btn-small { flex-shrink: 0; }
    .py-logo-text, .py-nav a { white-space: nowrap; }
    .py-nav { gap: 14px; }
    .py-nav a { font-size: 13px; }
}

html{scroll-behavior:smooth} .py-form button{justify-content:center}

.py-skip{position:fixed;left:16px;top:-100px;z-index:100;background:#fff;color:#1c1512;padding:12px 16px;border:2px solid #c93f10}.py-skip:focus{top:12px}#contenido:focus{outline:none}section,footer{scroll-margin-top:90px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
.py-articulo img { height: auto; }
/* Readable contrast for small text and action labels. */
.py-btn { background: #cc400c; }
.py-btn-outline { background: transparent; }
.py-btn-light { background: #fff; color: #c93f10; }
.py-eyebrow { color: #c93f10; }
.py-band .py-eyebrow, .py-footer .py-eyebrow { color: #fff; }
.py-step-n { color: #c93f10; }

/* Sheet music requests use the visitor's email app, not checkout. */
.py-sheet-music { border-bottom: 1px solid #ece3da; }
.py-sheet-music > h2 { margin-bottom: 22px; }
.py-sheet-copy { max-width: 700px; color: var(--ink-2); margin-bottom: 24px !important; }
.py-sheet-note { max-width: 700px; margin-top: 18px !important; font-size: 14px; color: var(--ink-2); }
.py-nav { gap: 14px; }

.py-legal-header { max-width:1000px; margin:auto; padding:24px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid #ece3da; }
.py-legal-header > a:last-child,.py-legal-page-footer a { color:var(--ink-2); }
.py-legal-content { max-width:800px; padding:56px 24px; margin:auto; }
.py-legal-content h1 { font-size:clamp(32px,5vw,46px); margin-bottom:32px; }
.py-legal-content h2 { font-size:26px; margin-top:36px; margin-bottom:16px; }
.py-legal-content p,.py-legal-content li { color:var(--ink-2); font-size:16px; line-height:1.7; overflow-wrap:anywhere; }
.py-legal-content p { margin-bottom:16px; }
.py-legal-content ul { padding-left:22px; }
.py-legal-page-footer { padding:24px; max-width:800px; margin:auto; border-top:1px solid #ece3da; }
@media(max-width:600px) { .py-legal-header { align-items:flex-start; flex-direction:column; gap:16px; } }

.py-privacy-note {font-size:13px;line-height:1.65;max-width:700px;overflow-wrap:anywhere;margin-top:20px;color:var(--ink-2)}
.py-privacy-note a {color:inherit;text-underline-offset:3px}
.py-form .py-privacy-note {color:#dacfc9;margin-top:6px}
.py-footer-legal nav {display:flex;flex-wrap:wrap;gap:8px 24px}
.py-footer-legal a {color:#dacfc9;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px}
.py-legal-content a {color:inherit;text-underline-offset:3px}
.py-legal-page-footer {display:flex;gap:16px 28px;flex-wrap:wrap}
.py-legal-page-footer a {display:inline-flex;align-items:center;min-height:44px}
