/* SC 8.6.11: shared page composition; no animation or runtime dependency. */
body.scc-template-edition {
    --scc-error-surface: #fff5f1;
    --scc-error-line: #edaa93;
    --scc-error-ink: #923b27;
    --scc-focus-ring: #257c77;
}

/* Notices keep their semantic status and keyboard-accessible links. */
body.scc-template-edition :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
    border-radius: 14px;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 4px 16px #294e6005;
    margin-block: 1rem 1.5rem;
}
body.scc-template-edition .woocommerce-error {
    background: var(--scc-error-surface);
    border-color: var(--scc-error-line);
    color: var(--scc-error-ink);
}
body.scc-template-edition .woocommerce-error::before {
    color: var(--scc-error-ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23923b27' stroke-width='1.7'%3E%3Cpath d='M12 3 2 21h20Z' stroke-linejoin='round'/%3E%3Cpath d='M12 9v5m0 3v1'/%3E%3C/svg%3E");
}
body.scc-template-edition .woocommerce-message {
    color: #245e53;
    background: #f0faf6;
    border-color: #b7dfcf;
}
body.scc-template-edition .woocommerce-info {
    color: #355b70;
    background: #f2f8fc;
    border-color: #bfd7e5;
}
/* Woo focuses notices programmatically; do not inherit Blocksy's wine outline. */
body.scc-template-edition :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)[tabindex="-1"]:focus {
    outline: 2px solid transparent;
    box-shadow: 0 4px 16px #294e6005;
}
body.scc-template-edition :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)[tabindex="-1"]:focus-visible,
body.scc-template-edition :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a:focus-visible {
    outline: 2px solid var(--scc-focus-ring);
    outline-offset: 4px;
}
body.scc-template-edition .woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) {
    border-color: var(--scc-error-line);
}
body.scc-template-edition .woocommerce-error :is(a, strong),
body.scc-template-edition .scc-rut-error { color: var(--scc-error-ink); }
body.scc-template-edition .woocommerce table.shop_table .scc-order-rut > :is(th, td) {
    background: #f5f9fa;
    padding: 1rem;
    border-top: 1px solid #dde8eb;
    font-size: .95rem;
    text-align: start;
}
body.scc-template-edition .scc-order-rut td { white-space: nowrap; }
body.scc-template-edition .scc-account-campus .scc-account-order-status { margin-top: .65rem; }

/* Shared spacing; input groups, cart steppers and navbar controls stay untouched. */
body.scc-template-edition :is(.scc-button-row, .scc-final-cta__actions) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
}
body.scc-template-edition :is(.scc-button-row, .scc-final-cta__actions) > .scc-button { margin: 0; }
body.scc-template-edition :is(p, h2, h3, ul, ol) + :is(.scc-button-row, .scc-final-cta__actions, .scc-button) {
    margin-top: 1.25rem;
}
body.scc-template-edition .scc-page-hero { padding-block: clamp(1.75rem, 4vw, 3.25rem); }
body.scc-template-edition .scc-page-hero__content {
    min-width: 0;
    padding-block: .25rem;
    align-self: center;
}
body.scc-template-edition .scc-page-hero__content .scc-page-lead {
    max-width: 65ch;
    margin-block: .85rem 0;
    line-height: 1.65;
}
body.scc-template-edition .scc-page-hero__content .scc-button-row { margin-block: 1.4rem .25rem; }
body.scc-template-edition .scc-page-hero__media {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}
body.scc-template-edition .scc-qr-help ol {
    display: block;
    padding-inline-start: 1.4rem;
}
body.scc-template-edition .scc-qr-help ol > li {
    display: list-item;
    list-style: decimal outside;
    width: auto;
    max-width: none;
    padding: 0 0 0 .25rem;
    margin: .65rem 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: start;
}
body.scc-template-edition .scc-qr-help ol > li::before { content: none; }

/* Admisión: the three decision cards use the entire row, not a nested third. */
body.scc-template-edition .scc-choice-guide__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
body.scc-template-edition .scc-choice-guide__grid > div:first-child { max-width: 72ch; }
body.scc-template-edition .scc-choice-guide__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
}
body.scc-template-edition .scc-choice-guide__cards article {
    min-width: 0;
    padding: clamp(1.2rem, 2.5vw, 1.75rem);
}
body.scc-template-edition .scc-choice-guide__cards article strong { display: block; margin-bottom: .6rem; }
body.scc-template-edition .scc-choice-guide__cards article p { font-size: 1rem; line-height: 1.65; }

body.scc-template-edition .scc-learning-rhythm__visual {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    align-self: start;
    background: #edf6f4;
}
body.scc-template-edition .scc-learning-rhythm__visual > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}
body.scc-template-edition .scc-learning-rhythm__overlay {
    position: static;
    inset: auto;
    transform: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1.25rem;
    text-align: center;
    color: #275b57;
    background: #edf6f4;
    border-radius: 0;
}
body.scc-template-edition .scc-learning-rhythm__overlay > span {
    display: grid;
    place-items: center;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    color: #257c77;
}
body.scc-template-edition .scc-learning-rhythm__overlay strong { font-size: 1rem; line-height: 1.5; color: inherit; }
body.scc-template-edition .scc-learning-rhythm .scc-accordion { margin-top: 1.5rem; }
body.scc-template-edition .scc-learning-rhythm .scc-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    list-style: none;
    cursor: pointer;
}
body.scc-template-edition .scc-learning-rhythm .scc-accordion summary::-webkit-details-marker { display: none; }
body.scc-template-edition .scc-learning-rhythm .scc-accordion summary::after {
    content: "";
    position: static;
    flex: 0 0 .65rem;
    width: .65rem;
    height: .65rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    background: none;
    transform: rotate(45deg);
    margin: -.3rem .2rem 0 0;
}
body.scc-template-edition .scc-learning-rhythm .scc-accordion details[open] > summary::after { transform: rotate(225deg); margin-top: .3rem; }
body.scc-template-edition .scc-learning-rhythm .scc-accordion details > p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
    text-align: start;
    max-width: none;
}
body.scc-template-edition .scc-evaluation-grid .scc-section-heading {
    text-align: start;
    margin-inline: 0;
    max-width: 72ch;
}
body.scc-template-edition .scc-evaluation-grid .scc-section-heading p { margin-inline: 0; }
/* The model page does not load home.css: give its undecorated CTA its own layout. */
body.scc-template-edition .scc-final-cta__panel--plain {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 20px;
    background: #205b59;
    color: #fff;
    overflow: visible;
}
body.scc-template-edition .scc-final-cta__panel--plain h2 {
    margin: .7rem 0 0;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
    max-width: 32ch;
}
body.scc-template-edition .scc-final-cta__panel--plain .scc-kicker { color: #b8e5db; }
body.scc-template-edition .scc-final-cta__panel--plain .scc-button { min-height: 48px; padding: .85rem 1.2rem; }
@media (min-width: 720px) {
    body.scc-template-edition .scc-choice-guide__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    body.scc-template-edition .scc-final-cta__panel--plain { grid-template-columns: minmax(0, 1fr) minmax(17rem, .7fr); align-items: center; }
    body.scc-template-edition .scc-final-cta__panel--plain .scc-final-cta__actions { justify-content: flex-end; }
}
