.santuario-coffee-guide,
.santuario-coffee-guide-invitation {
    box-sizing: border-box;
    color: #2d211b;
    font-family: Arial, Helvetica, sans-serif;
}

.santuario-coffee-guide *,
.santuario-coffee-guide *::before,
.santuario-coffee-guide *::after { box-sizing: inherit; }

.santuario-coffee-guide {
    width: 100%;
    min-height: 520px;
    padding: clamp(32px, 6vw, 78px);
    background: #fff;
    border: 1px solid rgba(52, 37, 29, .10);
}

.scg-screen { max-width: 880px; margin: 0 auto; outline: none; }
.scg-screen[hidden] { display: none !important; }
.scg-screen.scg-welcome {
    display: grid;
    max-width: 1080px;
    min-height: 520px;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: clamp(38px, 6vw, 76px);
    align-items: center;
}
.scg-welcome-copy { min-width: 0; }
.scg-welcome-visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #eee4d3;
    box-shadow: 0 22px 52px rgba(45,33,27,.12);
}
.scg-welcome-visual::after {
    content: '';
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.48);
}
.scg-welcome-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.scg-duration {
    margin: 13px 0 0;
    color: rgba(45,33,27,.52);
    font-size: 12px;
    letter-spacing: .04em;
}
.scg-eyebrow,
.scg-chapter {
    margin: 0 0 14px;
    color: #9a7936;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.scg-chapter-intro {
    max-width: 640px;
    margin: 0 0 20px;
    color: rgba(45,33,27,.68);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.65;
}
.scg-title,
.scg-result-title {
    margin: 0 0 24px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.08;
}
.scg-title { font-size: clamp(32px, 4.8vw, 54px); }
.scg-result-title { font-size: clamp(48px, 7vw, 82px); }
.scg-description {
    max-width: 670px;
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.75;
}
.scg-meta { max-width: 620px; margin: 0 0 30px; color: rgba(45,33,27,.65); font-size: 14px; }

.scg-progress-row { display: flex; align-items: center; gap: 16px; max-width: 660px; margin: 0 0 30px; color: rgba(45,33,27,.58); font-size: 12px; }
.scg-progress-bar { flex: 1; height: 3px; overflow: hidden; background: rgba(52,37,29,.10); }
.scg-progress-bar span { display: block; height: 100%; background: #b89955; }

.scg-button,
.scg-option {
    appearance: none;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
}
.scg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    color: #fff;
    background: #2d211b;
    border: 1px solid #2d211b;
    text-decoration: none;
}
.scg-button:hover,
.scg-button:focus-visible { color: #fff; background: #9a7936; border-color: #9a7936; outline: none; }
.scg-welcome .scg-button,
.scg-primary-action .scg-restart-link {
    width: min(100%, 320px);
}
.scg-button--secondary { color: #2d211b; background: transparent; }
.scg-button--secondary:hover,
.scg-button--secondary:focus-visible { color: #9a7936; background: transparent; }

.scg-options { display: grid; gap: 11px; max-width: 680px; }
.scg-option {
    width: 100%;
    padding: 17px 20px;
    color: #2d211b;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(52,37,29,.22);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.scg-option:hover,
.scg-option:focus-visible,
.scg-option.is-selected {
    color: #7c5e25;
    background: #fcfaf5;
    border-color: #b89955;
    outline: none;
}

.scg-navigation { margin-top: 22px; }
.santuario-coffee-guide .scg-back-link,
.santuario-coffee-guide button.scg-back-link,
.santuario-coffee-guide input.scg-back-link {
    appearance: none !important;
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 6px 0 !important;
    color: #111 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font: inherit !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    transition: color .22s ease !important;
}
.santuario-coffee-guide .scg-back-link:hover,
.santuario-coffee-guide .scg-back-link:active,
.santuario-coffee-guide .scg-back-link:focus,
.santuario-coffee-guide .scg-back-link:focus-visible {
    color: #b89955 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.scg-result { padding-top: 6px; }
.scg-result-identity { margin: -10px 0 18px; color: #9a7936; font-size: 14px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
.scg-result-phrase {
    max-width: 760px;
    margin: 0 0 38px;
    padding: 0 0 0 22px;
    color: #4a382f;
    border-left: 2px solid #b89955;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(22px, 3vw, 32px);
    font-style: italic;
    line-height: 1.45;
}
.scg-result-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0 0 34px; }
.scg-result-panel { padding: 26px; background: #faf8f3; border: 1px solid rgba(52,37,29,.08); }
.scg-result-panel h3,
.scg-sensory-section h3,
.scg-alternatives-section h3 { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 400; }
.scg-result-panel p { margin: 0; line-height: 1.75; }
.scg-origin-data dl { margin: 0; }
.scg-origin-data dl > div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(52,37,29,.10); }
.scg-origin-data dt { color: rgba(45,33,27,.60); font-size: 13px; }
.scg-origin-data dd { margin: 0; font-weight: 600; }

.scg-sensory-section { margin: 0 0 34px; }
.scg-sensory { display: flex; flex-wrap: wrap; gap: 9px; }
.scg-sensory span { padding: 9px 13px; background: #fff; border: 1px solid rgba(52,37,29,.17); font-size: 14px; }

.scg-profile-card { max-width: 760px; margin: 0 0 34px; padding: 24px 26px; background: #fff; border-left: 3px solid #b89955; box-shadow: 0 8px 30px rgba(52,37,29,.06); }
.scg-profile-label { display: block; margin-bottom: 6px; color: rgba(45,33,27,.60); font-size: 12px; letter-spacing: .10em; text-transform: uppercase; }
.scg-profile-card strong { display: block; margin-bottom: 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 400; }
.scg-profile-card p { margin: 0; line-height: 1.7; }

.scg-alternatives-section { margin: 0 0 30px; }
.scg-alternatives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.scg-alternative-card { padding: 18px 20px; background: #fff; border: 1px solid rgba(52,37,29,.13); }
.scg-alternative-card strong { display: block; margin-bottom: 5px; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 400; }
.scg-alternative-card span { color: #9a7936; font-size: 13px; }
.scg-product-link[hidden] { display: none !important; }

.scg-diagnostic,
.scg-details { max-width: 800px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(52,37,29,.12); }
.scg-diagnostic summary,
.scg-details summary { cursor: pointer; font-weight: 700; }
.scg-diagnostic [data-scg-diagnostic-content] { margin-top: 16px; padding: 18px; background: #f6f4ef; font-family: Consolas, Monaco, monospace; font-size: 13px; line-height: 1.6; }
.scg-diagnostic-total { padding: 3px 0; }
.scg-diagnostic-question { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(52,37,29,.12); }
.scg-diagnostic-question p { margin: 5px 0 0; }
.scg-summary { display: grid; gap: 10px; margin-top: 14px; }
.scg-summary-item { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid rgba(52,37,29,.10); }
.scg-summary-question { color: rgba(45,33,27,.62); font-size: 13px; }
.scg-result-actions { margin-top: 28px; }
.scg-private,
.scg-notice { min-height: auto; padding: 20px; }

@media (max-width: 760px) {
    .santuario-coffee-guide { min-height: 420px; padding: 30px 22px; }
    .scg-screen.scg-welcome {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .scg-welcome-visual { width: 100%; max-width: 480px; justify-self: center; }
    .scg-result-grid { grid-template-columns: 1fr; }
    .scg-alternatives { grid-template-columns: 1fr; }
    .scg-origin-data dl > div { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .santuario-coffee-guide * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Resultado editorial */
.scg-alternative-card p {
    margin: 0;
    color: rgba(45,33,27,.72);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.55;
}
.scg-product-link { margin-top: 4px; }

/* Experiencia visual premium v0.5.0 */
.scg-result {
    --scg-accent: #9a7936;
    --scg-accent-soft: rgba(154,121,54,.10);
    max-width: 980px;
}
.scg-result[data-scg-origin="huatusco"] { --scg-accent: #956f45; --scg-accent-soft: rgba(149,111,69,.11); }
.scg-result[data-scg-origin="chiapas"] { --scg-accent: #80683e; --scg-accent-soft: rgba(128,104,62,.11); }
.scg-result[data-scg-origin="oaxaca"] { --scg-accent: #7d7658; --scg-accent-soft: rgba(125,118,88,.11); }
.scg-result[data-scg-origin="guerrero"] { --scg-accent: #8a594c; --scg-accent-soft: rgba(138,89,76,.11); }
.scg-result[data-scg-origin="cosautlan"] { --scg-accent: #5c4538; --scg-accent-soft: rgba(92,69,56,.11); }

.scg-result-hero {
    position: relative;
    margin-bottom: clamp(38px, 6vw, 70px);
    padding: clamp(30px, 6vw, 64px) clamp(22px, 6vw, 68px);
    overflow: hidden;
    text-align: center;
    background: linear-gradient(145deg, #fbf8f1 0%, #fff 72%);
    border: 1px solid rgba(52,37,29,.12);
}
.scg-result-hero::before,
.scg-result-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 86px;
    height: 1px;
    background: var(--scg-accent);
    transform: translateX(-50%);
}
.scg-result-hero::before { top: 0; }
.scg-result-hero::after { bottom: 0; }
.scg-result-hero .scg-eyebrow { margin-bottom: 18px; color: var(--scg-accent); }
.scg-result-territory {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(45,33,27,.58);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.scg-result .scg-result-title {
    margin-bottom: 8px;
    color: #2d211b;
    font-size: clamp(54px, 9vw, 104px);
    letter-spacing: -.035em;
}
.scg-result-identity {
    margin: 0 0 22px;
    color: var(--scg-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.scg-result-phrase {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    max-width: 620px;
    margin: 0 auto;
    padding: 0;
    color: #4c3b31;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(19px, 2.6vw, 28px);
    font-style: italic;
    line-height: 1.55;
    border: 0;
}
.scg-result-phrase > span {
    min-width: 0;
}
.santuario-coffee-guide .scg-result-phrase::before,
.santuario-coffee-guide .scg-result-phrase::after {
    position: static !important;
    display: block !important;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(76, 59, 49, .10) !important;
    background: none !important;
    border: 0 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    flex-basis: 76px;
    font-size: clamp(104px, 11vw, 128px) !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: .78 !important;
    opacity: 1 !important;
    transform: none !important;
}
.santuario-coffee-guide .scg-result-phrase::before { content: '\201C' !important; }
.santuario-coffee-guide .scg-result-phrase::after { content: '\201D' !important; }

.scg-result-grid { gap: 18px; margin-bottom: 18px; }
.scg-result-panel,
.scg-sensory-section,
.scg-alternatives-section {
    position: relative;
    padding: clamp(24px, 4vw, 38px);
    background: #fff;
    border: 1px solid rgba(52,37,29,.12);
}
.scg-result-panel h3,
.scg-sensory-section h3,
.scg-alternatives-section h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.2;
}
.scg-panel-number {
    display: block;
    margin-bottom: 15px;
    color: var(--scg-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}
.scg-section-heading { margin-bottom: 28px; }
.scg-origin-data dl { margin-top: 22px; }
.scg-origin-data dl > div { padding: 13px 0; border-color: rgba(52,37,29,.09); }
.scg-origin-data dt { color: rgba(45,33,27,.50); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.scg-origin-data dd { color: #2d211b; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; }

.scg-sensory-section { margin: 18px 0; }
.scg-sensory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 14px;
}
.scg-sensory-item {
    display: flex;
    min-height: 132px;
    padding: 18px 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    background: #fcfaf6;
    border: 1px solid rgba(52,37,29,.09);
}
.scg-sensory-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--scg-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-style: italic;
    border: 1px solid var(--scg-accent);
    border-radius: 50%;
}
.scg-sensory-icon.has-image { overflow: hidden; border-color: transparent; background: transparent; }
.scg-sensory-icon.has-image {
    width: 82px;
    height: 68px;
    padding: 0;
}
.scg-sensory-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.scg-sensory-icon.has-image img { transform: scale(1.65); transform-origin: center; }
.scg-sensory-label { color: #3a2a22; font-size: 13px; line-height: 1.35; }

.scg-profile-card {
    margin: 18px 0;
    padding: clamp(24px, 4vw, 38px);
    background: var(--scg-accent-soft);
    border: 0;
    border-left: 3px solid var(--scg-accent);
}
.scg-profile-card .scg-profile-label { color: var(--scg-accent); }
.scg-profile-card p { max-width: 760px; margin: 12px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.65; }

.scg-alternatives { gap: 18px; }
.scg-alternative-card {
    position: relative;
    min-height: 220px;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #fbf9f4, #fff);
    border: 1px solid rgba(52,37,29,.12);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.scg-alternative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 44px;
    height: 2px;
    background: var(--card-accent, var(--scg-accent));
}
.scg-alternative-card:hover { transform: translateY(-3px); border-color: var(--card-accent, var(--scg-accent)); box-shadow: 0 18px 34px rgba(45,33,27,.08); }
.scg-alternative-territory { display: block; margin-bottom: 28px; color: var(--card-accent, var(--scg-accent)); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.scg-alternative-relationship {
    display: inline-flex;
    margin: 0 0 13px;
    padding: 5px 8px;
    color: #2d211b !important;
    background: rgba(52,37,29,.055);
    border: 1px solid rgba(52,37,29,.10);
    font-size: 9px !important;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.scg-alternative-card.is-exploratory .scg-alternative-relationship {
    color: var(--card-accent, var(--scg-accent)) !important;
    background: transparent;
    border-color: var(--card-accent, var(--scg-accent));
}
.scg-alternative-card strong { display: block; margin-bottom: 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 400; }
.scg-alternative-card p { min-height: 48px; margin-bottom: 22px; }
.scg-alternative-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2d211b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}
.scg-alternative-link:hover { color: var(--card-accent, var(--scg-accent)); }

.scg-primary-action { display: flex; margin: 24px 0 8px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.santuario-coffee-guide .scg-primary-action .scg-product-link,
.santuario-coffee-guide .scg-primary-action .scg-restart-link {
    box-sizing: border-box !important;
    width: min(100%, 320px) !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 22px !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}
/* El CTA de producto es un enlace y algunos temas sobrescriben el color de los
 * enlaces dentro de botones. Fijamos todos sus estados y el span interior para
 * conservar contraste suficiente sin depender de la herencia del tema. */
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:link,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:visited {
    color: #f7f3eb !important;
    background: #2d211b !important;
    border-color: #2d211b !important;
    text-decoration: none !important;
}
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link > span {
    color: #f7f3eb !important;
}
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:hover,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:focus,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:focus-visible,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:active {
    color: #1e1a17 !important;
    background: #b7aa70 !important;
    border-color: #b7aa70 !important;
    text-decoration: none !important;
}
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:hover > span,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:focus > span,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:focus-visible > span,
.santuario-coffee-guide .scg-primary-action a.scg-button.scg-product-link:active > span {
    color: #1e1a17 !important;
}
.scg-product-price { margin: 0 0 8px; color: #2d211b; font-family: Georgia, serif; font-size: 22px; font-weight: 600; }
.scg-product-price[hidden] { display: none !important; }
.scg-restart-link {
    appearance: none;
    min-height: 48px;
    padding: 13px 24px;
    color: rgba(45,33,27,.62);
    background: transparent;
    border: 1px solid rgba(45,33,27,.28);
    cursor: pointer;
    font: inherit;
}
.scg-restart-link:hover,
.scg-restart-link:focus-visible { color: var(--scg-accent); border-color: var(--scg-accent); outline: none; }

.santuario-coffee-guide .scg-primary-action button.scg-restart-link {
    color: #f7f3eb !important;
    background: #2d211b !important;
    border-color: #2d211b !important;
}
.santuario-coffee-guide .scg-primary-action button.scg-restart-link:hover,
.santuario-coffee-guide .scg-primary-action button.scg-restart-link:focus,
.santuario-coffee-guide .scg-primary-action button.scg-restart-link:focus-visible,
.santuario-coffee-guide .scg-primary-action button.scg-restart-link:active {
    color: #1e1a17 !important;
    background: #b7aa70 !important;
    border-color: #b7aa70 !important;
    outline: none !important;
}

.scg-result:not([hidden]) .scg-result-hero,
.scg-result:not([hidden]) .scg-result-panel,
.scg-result:not([hidden]) .scg-sensory-section,
.scg-result:not([hidden]) .scg-profile-card,
.scg-result:not([hidden]) .scg-alternatives-section,
.scg-result:not([hidden]) .scg-primary-action {
    animation: scgReveal .55s ease both;
}
.scg-result:not([hidden]) .scg-result-panel { animation-delay: .06s; }
.scg-result:not([hidden]) .scg-sensory-section { animation-delay: .11s; }
.scg-result:not([hidden]) .scg-profile-card { animation-delay: .16s; }
.scg-result:not([hidden]) .scg-alternatives-section { animation-delay: .21s; }
.scg-result:not([hidden]) .scg-primary-action { animation-delay: .26s; }
@keyframes scgReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
    .scg-result-hero { margin-left: -2px; margin-right: -2px; }
    .scg-result .scg-result-title { font-size: clamp(50px, 17vw, 76px); }
    .scg-result-phrase { gap: 7px; }
    .santuario-coffee-guide .scg-result-phrase::before,
    .santuario-coffee-guide .scg-result-phrase::after {
        flex-basis: 50px;
        font-size: 96px !important;
    }
    .scg-result-panel,
    .scg-sensory-section,
    .scg-alternatives-section { padding: 25px 20px; }
    .scg-sensory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .scg-sensory-item { min-height: 118px; padding: 14px 8px; }
    .scg-alternative-card { min-height: 0; padding: 25px 22px; }
    .scg-alternative-card::before { left: 22px; }
    .scg-primary-action .scg-product-link { width: 100%; }
}
