/* Propuesta de ejemplo. Marca de Comercial Andes, no la de Donna. */

@font-face {
    font-family: Inter;
    src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.ex {
    --andes: #1b4332;
    --andes-deep: #123226;
    --clay: #c46b3a;
    --cream: #f6f3ee;
    --paper: #ffffff;
    --line: #e4ddd3;
    --muted: #5c6b63;
    margin: 0;
    min-height: 100vh;
    background: var(--cream);
    color: var(--andes);
    font-family: Inter, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.ex-page {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.ex-brandline,
.ex-preview .ex-brandline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.ex-brandline img {
    display: block;
    width: 40px;
    height: 40px;
}

.ex h1,
.ex-preview-title {
    margin: 0;
    max-width: none;
    color: var(--andes);
    font-family: Inter, Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.ex-lead {
    margin: 12px 0 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 17px;
}

.ex-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
}

.ex-facts div,
.ex-preview-meta div {
    background: var(--paper);
    border-radius: 12px;
    padding: 10px 12px;
}

.ex-facts dt,
.ex-preview-meta dt {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.ex-facts dd,
.ex-preview-meta dd {
    margin: 2px 0 0;
    font-weight: 500;
}

.ex-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    margin: 18px 0 8px;
    padding: 10px 0;
    background: rgba(246, 243, 238, 0.94);
    overflow-x: auto;
    scrollbar-width: thin;
}

.ex-nav button,
.ex-toggle,
.ex-action {
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
}

.ex-nav button {
    flex: none;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--andes);
    font-size: 14px;
}

.ex-nav button:hover,
.ex-action:hover {
    border-color: var(--andes);
}

.ex-nav button:focus-visible,
.ex-toggle:focus-visible,
.ex-action:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 3px;
}

.ex-sec {
    scroll-margin-top: 76px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-top: 10px;
    overflow: hidden;
}

.ex-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 18px;
    border: 0;
    background: transparent;
    color: var(--andes);
    font-size: 18px;
    text-align: left;
}

.ex-toggle::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.ex-toggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(-135deg);
}

.ex-panel {
    padding: 0 18px 18px;
    color: var(--andes);
    font-size: 16px;
}

.ex-panel p,
.ex-panel li {
    margin: 0;
    line-height: 1.55;
}

.ex-panel ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ex-price {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-wrap: balance;
}

.ex-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.ex-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ex-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.ex-line strong {
    display: block;
    font-weight: 500;
}

.ex-line span,
.ex-opt {
    color: var(--muted);
    font-size: 14px;
}

.ex-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ex-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.ex-bar-label span {
    color: var(--muted);
    font-weight: 400;
    font-size: 14px;
}

.ex-track {
    height: 10px;
    border-radius: 999px;
    background: #efe8df;
    overflow: hidden;
}

.ex-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--andes);
}

.ex-track i.is-mid { width: 58%; background: #2f6a52; }
.ex-track i.is-low { width: 28%; background: var(--clay); }
.ex-track i.is-high { width: 86%; }

.ex-actions {
    margin-top: 22px;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.ex-actions h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.ex-actions p {
    margin: 0;
}

.ex-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ex-action {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--andes);
    background: var(--andes);
    color: #ffffff;
    font-size: 16px;
}

.ex-action--line {
    background: transparent;
    color: var(--andes);
}

.ex-status {
    min-height: 1.4em;
    margin-top: 12px;
    color: var(--andes-deep);
    font-weight: 500;
}

.ex-foot {
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Vista previa dentro de /donna y /donna/cotizaciones. No es interactiva. */
.ex-preview {
    --andes: #1b4332;
    --clay: #c46b3a;
    --cream: #f6f3ee;
    --paper: #ffffff;
    --line: #e4ddd3;
    --muted: #5c6b63;
    background: var(--cream);
    color: var(--andes);
    padding: 18px 18px 8px;
    font-family: Inter, Arial, sans-serif;
}

.ex-preview,
.ex-preview * {
    cursor: inherit;
    pointer-events: none;
}

.ex-preview .ex-brandline {
    margin-bottom: 10px;
    font-size: 14px;
}

.ex-preview .ex-brandline img {
    width: 28px;
    height: 28px;
}

.ex-preview-title {
    font-size: clamp(20px, 2vw, 26px);
}

.ex-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

.ex-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.ex-preview-chips span,
.ex-preview-folds li {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--andes);
    font-weight: 500;
}

.ex-preview-chips span {
    flex: none;
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.ex-preview-folds {
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
}

.ex-preview-folds li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.ex-preview-folds li::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
}

a.qv-mock-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 18px;
}

a.qv-mock-link .qv-frame {
    transition: transform 200ms ease;
}

a.qv-mock-link:hover .qv-frame {
    transform: translateY(-4px);
}

a.qv-mock-link:focus-visible {
    outline: 2px solid #9f83fa;
    outline-offset: 4px;
}

@media (max-width: 720px) {
    .ex-facts { grid-template-columns: 1fr; }
    .ex-line { flex-direction: column; gap: 4px; }
    .ex-page { width: min(100% - 28px, 880px); }
}

@media (prefers-reduced-motion: reduce) {
    a.qv-mock-link:hover .qv-frame { transform: none; }
    .ex-toggle::after { transition: none; }
}
