.embpro {
  --embpro-accent: #8b6849;
  --embpro-border: #e5ded4;
  --embpro-paper: #faf8f4;
  --embpro-ink: #27313a;
  color: var(--embpro-ink);
  max-width: 100%;
  margin: 3rem auto;
  line-height: 1.8;
}

.embpro *,
.embpro *::before,
.embpro *::after {
  box-sizing: border-box;
}

.embpro-hero {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 18px;
  background: var(--embpro-paper);
  border: 1px solid var(--embpro-border);
}

.embpro-eyebrow,
.embpro-kicker {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--embpro-accent);
}

.embpro-hero h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  margin: .6rem 0 1rem;
}

.embpro h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  margin: .4rem 0 1.2rem;
}

.embpro h4 {
  font-size: 1.13rem;
  margin: 1.6rem 0 .5rem;
}

.embpro p {
  margin: .65rem 0 1.1rem;
}

.embpro-index {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border: 1px solid var(--embpro-border);
  border-radius: 14px;
}

.embpro-index ol {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.4rem;
}

.embpro-index li {
  break-inside: avoid;
  margin-bottom: .4rem;
}

.embpro a {
  color: #805b3c;
  text-underline-offset: 3px;
}

.embpro-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--embpro-border);
  scroll-margin-top: 6rem;
}

.embpro-section > p,
.embpro-section > h4,
.embpro-section > ol,
.embpro-section > ul {
  max-width: 78ch;
}

.embpro-note {
  background: var(--embpro-paper);
  border-left: 4px solid var(--embpro-accent);
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  border-radius: 0 10px 10px 0;
}

.embpro-note p:last-child {
  margin-bottom: 0;
}

.embpro-steps li,
.embpro-exercise li {
  margin-bottom: .5rem;
}

.embpro-exercise {
  margin: 1.4rem 0;
  padding: 1.5rem;
  border: 1px solid var(--embpro-border);
  border-radius: 14px;
  background: #fff;
}

.embpro-exercise h4 {
  margin-top: 0;
}

.embpro-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.embpro-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: .94rem;
}

.embpro-table th,
.embpro-table td {
  text-align: left;
  padding: .85rem;
  border-bottom: 1px solid var(--embpro-border);
  vertical-align: top;
}

.embpro-table th {
  background: var(--embpro-paper);
  font-weight: 700;
}

.embpro-sources li {
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.embpro-editorial {
  font-size: .9rem;
  color: #58636c;
}

@media (max-width: 640px) {
  .embpro {
    margin-top: 2rem;
  }

  .embpro-index {
    padding: 1.1rem;
  }

  .embpro-index ol {
    columns: 1;
  }

  .embpro-section {
    padding: 1.5rem 0;
  }

  .embpro-exercise {
    padding: 1.1rem;
  }
}


/* FLAUTEA_166N2_PARTITURAS */
.embpro-score {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #e5ded4;
  border-radius: 12px;
  background: #fff;
  overflow-x: auto;
}
.embpro-score img {
  display: block;
  width: 100%;
  min-width: 580px;
  height: auto;
}
.embpro-score figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  color: #58636c;
}


/* FLAUTEA_166R2_NAVEGACION */
.embpro-route-nav {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    background: #f7f9fc;
    border: 1px solid #dce5ef;
    border-radius: 16px;
}
.embpro-route-nav-intro > strong {
    display: block;
    font-size: 1.2rem;
    color: #17324f;
}
.embpro-route-nav-intro p {
    margin: .45rem 0 1.2rem;
    color: #526174;
    line-height: 1.6;
}
.embpro-route-nav-groups {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1rem;
}
.embpro-route-nav-group {
    min-width: 0;
}
.embpro-route-nav-group > strong {
    display: block;
    color: #243c58;
    margin-bottom: .65rem;
    font-size: .95rem;
}
.embpro-route-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .45rem;
}
.embpro-route-nav-links a {
    display: inline-block;
    padding: .45rem .7rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d9e2ed;
    color: #174d79;
    font-weight: 600;
    font-size: .85rem;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.embpro-route-nav-links a:hover {
    background: #eaf2fa;
    border-color: #9dbbd7;
}
.embpro-route-nav-links a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}
@media(max-width:900px) {
    .embpro-route-nav-groups {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media(max-width:600px) {
    .embpro-route-nav {
        padding: 1rem;
        border-radius: 12px;
    }
    .embpro-route-nav-groups {
        grid-template-columns: 1fr;
    }
    .embpro-route-nav-links a {
        padding: .55rem .75rem;
    }
}


/* FLAUTEA_166R3_MOVIL */

/* Mantener visibles los destinos de la navegación */
[id^="embpro-"] {
    scroll-margin-top: 110px;
}

/* Evitar desbordamientos en los contenedores principales */
.embpro,
.embpro-section,
.embpro-exercise {
    min-width: 0;
    max-width: 100%;
}

/* Partituras SVG */
.embpro-score {
    display: block;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.embpro-score img {
    display: block;
    height: auto;
    max-width: none;
}

.embpro-score figcaption {
    line-height: 1.55;
}

/* Tablas comparativas */
.embpro-table-wrap {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.embpro-table-wrap table {
    border-collapse: collapse;
    width: 100%;
}

.embpro-table-wrap th,
.embpro-table-wrap td {
    overflow-wrap: break-word;
    vertical-align: top;
}

/* Navegación por teclado */
.embpro-route-nav a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* Dispositivos de pantalla estrecha */
@media (max-width: 640px) {

    .embpro-score {
        margin-left: 0;
        margin-right: 0;
        padding: .75rem;
    }

    .embpro-score::before {
        content: "Desliza horizontalmente para ver toda la partitura";
        display: block;
        margin-bottom: .6rem;
        font-size: .78rem;
        font-weight: 600;
        color: #526174;
    }

    .embpro-score img {
        min-width: 580px;
        width: auto;
        max-width: none;
    }

    .embpro-table-wrap table {
        min-width: 540px;
    }

    .embpro-route-nav {
        margin-left: 0;
        margin-right: 0;
    }

    [id^="embpro-"] {
        scroll-margin-top: 85px;
    }
}

/* No imponer animaciones */
@media (prefers-reduced-motion: reduce) {
    .embpro-route-nav,
    .embpro-score {
        scroll-behavior: auto;
    }
}

/* Versión imprimible */
@media print {

    .embpro-route-nav {
        display: none !important;
    }

    .embpro-score,
    .embpro-table-wrap {
        overflow: visible;
        break-inside: avoid;
    }

    .embpro-score img {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .embpro-table-wrap table {
        min-width: 0;
    }

    .embpro-score::before {
        display: none !important;
    }
}


/* FLAUTEA_166R5B_LAYOUT */

/* El contenido profesional comparte el ancho
   del contenedor estándar de Flautea. */
.embpro-page-container {
    box-sizing: border-box;
    min-width: 0;
}

/* Evitar que la ampliación ocupe
   el ancho completo de la ventana. */
.embpro-page-container > .embpro {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto 2rem;
}

/* Reducir la separación entre ambas partes. */
.technique-topic.embouchure-topic {
    padding-bottom: 1.5rem;
}

.embpro-page-container .embpro-hero {
    max-width: 100%;
}

/* El índice nuevo sigue el ancho del contenido. */
.embpro-page-container .embpro-route-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Seguridad ante contenidos largos. */
.embpro-page-container .embpro-section,
.embpro-page-container .embpro-table-wrap,
.embpro-page-container .embpro-score {
    min-width: 0;
    max-width: 100%;
}

/* Separación proporcionada en móvil. */
@media (max-width: 640px) {
    .technique-topic.embouchure-topic {
        padding-bottom: 1rem;
    }

    .embpro-page-container > .embpro {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
}

/* Mantener el mismo ancho en impresión. */
@media print {
    .embpro-page-container {
        width: 100%;
        max-width: 100%;
    }
}


/* FLAUTEA_166R6_ITINERARIOS */
.embpro-learning-paths {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #fff;
}
.embpro-learning-paths > h3 {
    margin: 0 0 .5rem;
    color: #17324f;
}
.embpro-learning-intro,
.embpro-learning-footer {
    color: #526174;
    line-height: 1.6;
}
.embpro-learning-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}
.embpro-learning-card {
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #f7f9fc;
}
.embpro-learning-number {
    display: inline-block;
    color: #ad6739;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .05em;
}
.embpro-learning-card h4 {
    margin: .45rem 0 .65rem;
    font-size: 1.15rem;
}
.embpro-learning-card p {
    margin: 0 0 .8rem;
    line-height: 1.55;
}
.embpro-learning-card ul {
    margin: 0;
    padding-left: 1.2rem;
}
.embpro-learning-card li {
    margin: .45rem 0;
}
.embpro-learning-card a {
    color: #174d79;
    font-weight: 600;
    text-underline-offset: 3px;
}
.embpro-learning-card a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}
.embpro-learning-footer {
    margin: 1rem 0 0;
    font-size: .88rem;
}
@media(max-width:850px) {
    .embpro-learning-grid {
        grid-template-columns: 1fr;
    }
}
@media(max-width:640px) {
    .embpro-learning-paths {
        padding: 1rem;
    }
}
@media print {
    .embpro-learning-card {
        break-inside: avoid;
    }
}


/* FLAUTEA_166R9B_ENLACES */
.embpro-context-link {
    margin: .45rem 0 1rem;
    line-height: 1.55;
}
.embpro-context-link a {
    display: inline-block;
    color: #174d79;
    font-weight: 600;
    text-underline-offset: 3px;
}
.embpro-context-link a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* FLAUTEA_166S4F_REGISTRO_TRAVERSO */
.embpro-study-log,
.embpro-study-form,
.embpro-study-fields,
.embpro-study-scale,
.embpro-study-field {
    box-sizing: border-box;
    min-width: 0;
}

.embpro-study-log {
    max-width: 100%;
}

.embpro-study-fields,
.embpro-study-scale {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.embpro-study-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.embpro-study-field label {
    font-weight: 600;
    line-height: 1.45;
}

.embpro-study-field input,
.embpro-study-field select,
.embpro-study-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: .7rem;
    border: 1px solid #b8c0ca;
    border-radius: .45rem;
    font: inherit;
    line-height: 1.5;
    background: #fff;
    color: #202631;
}

.embpro-study-field textarea {
    resize: vertical;
}

.embpro-study-field input:focus-visible,
.embpro-study-field select:focus-visible,
.embpro-study-field textarea:focus-visible {
    outline: 2px solid #245da8;
    outline-offset: 2px;
}

.embpro-study-note {
    margin-top: 1rem;
    font-size: .92em;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .embpro-study-fields,
    .embpro-study-scale {
        grid-template-columns: minmax(0, 1fr);
        gap: .85rem;
    }

    .embpro-study-field input,
    .embpro-study-field select,
    .embpro-study-field textarea {
        font-size: 16px;
    }
}

@media print {
    .embpro-study-log {
        break-inside: avoid;
    }

    .embpro-study-field input,
    .embpro-study-field select,
    .embpro-study-field textarea {
        border: 1px solid #777;
        color: #000;
        background: #fff;
    }
}
/* FIN_FLAUTEA_166S4F_REGISTRO_TRAVERSO */


/* FLAUTEA_166S5B_DIARIO_MODERNO */
.embpro-modern-log {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.embpro-modern-log *,
.embpro-modern-log *::before,
.embpro-modern-log *::after {
    box-sizing: border-box;
}

.embpro-modern-log__eyebrow {
    margin: 0 0 .5rem;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .075em;
    line-height: 1.5;
}

.embpro-modern-log__notice {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #64748b;
    border-radius: .65rem;
    background: #f8fafc;
    color: #1e293b;
}

.embpro-modern-log__notice p {
    margin: .4rem 0 0;
}

.embpro-modern-log__form {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    width: 100%;
}

.embpro-modern-log__fieldset {
    min-width: 0;
    margin: 0;
    padding: clamp(.85rem, 2.5vw, 1.35rem);
    border: 1px solid #d7dee8;
    border-radius: .8rem;
}

.embpro-modern-log__fieldset legend {
    max-width: 100%;
    padding: 0 .45rem;
    font-weight: 750;
    line-height: 1.5;
}

.embpro-modern-log__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.embpro-modern-log__field {
    display: grid;
    gap: .4rem;
    min-width: 0;
    margin: 0 0 1rem;
}

.embpro-modern-log__field:last-child {
    margin-bottom: 0;
}

.embpro-modern-log__field--wide {
    grid-column: 1 / -1;
}

.embpro-modern-log__field label,
.embpro-modern-log__criterion > label {
    font-weight: 700;
    line-height: 1.5;
}

.embpro-modern-log input,
.embpro-modern-log select,
.embpro-modern-log textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #aab6c5;
    border-radius: .45rem;
    background: #fff;
    color: #172033;
    font: inherit;
    line-height: 1.5;
}

.embpro-modern-log textarea {
    min-height: 6rem;
    resize: vertical;
}

.embpro-modern-log input:focus-visible,
.embpro-modern-log select:focus-visible,
.embpro-modern-log textarea:focus-visible,
.embpro-modern-log button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.embpro-modern-log__field small {
    font-size: .875rem;
    line-height: 1.5;
}

.embpro-modern-log__scale {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: 1rem 0;
}

.embpro-modern-log__scale span {
    padding: .65rem .75rem;
    border: 1px solid #d7dee8;
    border-radius: .45rem;
    line-height: 1.5;
}

.embpro-modern-log__criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.embpro-modern-log__criterion {
    display: grid;
    align-content: start;
    gap: .55rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #d7dee8;
    border-radius: .65rem;
}

.embpro-modern-log__criterion p {
    margin: 0;
    line-height: 1.65;
}

.embpro-modern-log__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.embpro-modern-log__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: .7rem 1rem;
    border: 1px solid #334155;
    border-radius: .5rem;
    background: #1e293b;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.embpro-modern-log__button--secondary {
    background: #fff;
    color: #1e293b;
}

.embpro-modern-log__footnote {
    margin: 0;
    font-size: .9rem;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .embpro-modern-log__grid,
    .embpro-modern-log__criteria,
    .embpro-modern-log__scale {
        grid-template-columns: minmax(0, 1fr);
    }

    .embpro-modern-log__actions {
        flex-direction: column;
    }

    .embpro-modern-log__button {
        width: 100%;
    }
}

@media print {
    .embpro-modern-log__notice {
        background: #fff;
        color: #000;
    }

    .embpro-modern-log__actions {
        display: none !important;
    }

    .embpro-modern-log__fieldset,
    .embpro-modern-log__criterion {
        break-inside: avoid;
        border-color: #999;
    }

    .embpro-modern-log input,
    .embpro-modern-log select,
    .embpro-modern-log textarea {
        border-color: #777;
        color: #000;
        background: #fff;
        print-color-adjust: exact;
    }

    .embpro-modern-log textarea {
        resize: none;
    }
}
/* FIN FLAUTEA_166S5B_DIARIO_MODERNO */

/* FLAUTEA_166S6D_PERFILES */
.embpro-instrument-profile {
    margin: 1.2rem 0;
    padding: 1.25rem;
    border: 1px solid #e5ded4;
    border-radius: 12px;
    background: #fff;
    max-width: 100%;
    min-width: 0;
}
.embpro-instrument-profile h4 {
    margin-top: 0;
}
@media(max-width:640px) {
    .embpro-instrument-profile {
        padding: 1rem;
    }
}
