.sr66f-wrap {
    --sr66f-ink: #30302f;
    --sr66f-muted: #77736d;
    --sr66f-sand: #d4a373;
    --sr66f-sand-dark: #b98355;
    --sr66f-cream: #f9f5e7;
    --sr66f-green: #6f8f72;
    --sr66f-green-dark: #55745b;
    --sr66f-line: #e8e0d5;
    --sr66f-white: #fff;
    --sr66f-error: #b94a3b;
    max-width: 980px;
    margin: 0 auto;
    color: var(--sr66f-ink);
    font-family: inherit;
}

.sr66f-wrap * { box-sizing: border-box; }
.sr66f-form { position: relative; }
.sr66f-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.sr66f-card,
.sr66f-project-card {
    background: #fffaf3;
    border: 1px solid var(--sr66f-line);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(48,48,47,.08);
}

.sr66f-card { padding: clamp(24px, 4vw, 42px); }
.sr66f-head { margin-bottom: 26px; }
.sr66f-head h3,
.sr66f-project-intro h3,
.sr66f-step__head h4 { color: var(--sr66f-ink); margin: 0; letter-spacing: -.025em; }
.sr66f-head h3 { font-size: clamp(28px, 4vw, 38px); }
.sr66f-head p:not(.sr66f-eyebrow),
.sr66f-project-intro p,
.sr66f-step__head p:not(.sr66f-eyebrow) { color: var(--sr66f-muted); line-height: 1.7; }
.sr66f-eyebrow { margin: 0 0 9px !important; font-size: 11px !important; line-height: 1.2 !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sr66f-sand-dark) !important; }

.sr66f-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.sr66f-field--full { grid-column: 1 / -1; }
.sr66f-field label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--sr66f-ink); }
.sr66f-field label span { color: var(--sr66f-error); }
.sr66f-field input,
.sr66f-field textarea {
    width: 100%;
    border: 1px solid #d8d4cd;
    border-radius: 12px;
    background: #fff;
    color: var(--sr66f-ink);
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sr66f-field textarea { resize: vertical; min-height: 130px; }
.sr66f-field input:focus,
.sr66f-field textarea:focus { border-color: var(--sr66f-sand); box-shadow: 0 0 0 3px rgba(212,163,115,.15); }
.sr66f-field input.has-error,
.sr66f-field textarea.has-error { border-color: var(--sr66f-error); box-shadow: 0 0 0 3px rgba(185,74,59,.10); }
.sr66f-field small { display: block; margin-top: 7px; color: #8a867f; line-height: 1.45; }

.sr66f-consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 18px; font-size: 13px; line-height: 1.55; color: #6f6a64; }
.sr66f-consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--sr66f-green); }
.sr66f-consent a { color: var(--sr66f-green-dark); text-decoration: underline; }

.sr66f-submit,
.sr66f-next,
.sr66f-prev {
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 20px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.sr66f-submit,
.sr66f-next { color: #fff; background: var(--sr66f-green); box-shadow: 0 8px 18px rgba(111,143,114,.18); }
.sr66f-submit:hover,
.sr66f-next:hover { transform: translateY(-1px); background: var(--sr66f-green-dark); }
.sr66f-prev { color: var(--sr66f-ink); background: #f1ede7; }
.sr66f-prev:hover { background: #e8e2da; }
.sr66f-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.sr66f-submit__busy { display: none; }
.sr66f-submit.is-busy .sr66f-submit__idle { display: none; }
.sr66f-submit.is-busy .sr66f-submit__busy { display: inline; }

.sr66f-feedback { display: none; margin-top: 20px; padding: 16px 18px; border-radius: 14px; line-height: 1.55; }
.sr66f-feedback.is-visible { display: block; }
.sr66f-feedback.is-success { color: #345e3a; background: #edf6ee; border: 1px solid #d0e5d3; }
.sr66f-feedback.is-error { color: #8d382c; background: #fff1ee; border: 1px solid #f0d2cb; }

.sr66f-turnstile-wrap { margin: 16px 0 18px; min-height: 1px; }
.sr66f-admin-hint { padding: 12px 14px; border-radius: 10px; background: #fff3cd; color: #664d03; font-size: 13px; }

/* Proyecto 3D */
.sr66f-project-shell { overflow: hidden; }
.sr66f-project-intro {
    text-align: center;
    padding: clamp(20px, 3vw, 34px) 20px 26px;
}
.sr66f-project-intro h3 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.sr66f-project-intro p { max-width: 760px; margin: 16px auto 0; font-size: 16px; }

.sr66f-progress {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
    margin: 0 0 18px;
}
.sr66f-progress li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--sr66f-line);
    border-radius: 14px;
    background: #fff;
    color: #8b877f;
    font-size: 12px;
}
.sr66f-progress li span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0ece6;
    color: #6e6962;
    font-weight: 900;
}
.sr66f-progress li.is-active { border-color: rgba(212,163,115,.55); background: #fff9f1; color: var(--sr66f-ink); }
.sr66f-progress li.is-active span { background: var(--sr66f-sand); color: #fff; }
.sr66f-progress li.is-done { color: var(--sr66f-green-dark); border-color: rgba(111,143,114,.30); background: #f4f8f4; }
.sr66f-progress li.is-done span { background: var(--sr66f-green); color: #fff; }

.sr66f-project-card { overflow: hidden; }
.sr66f-step { padding: clamp(24px, 4vw, 44px); }
.sr66f-step[hidden] { display: none !important; }
.sr66f-step__head { margin-bottom: 24px; }
.sr66f-step__head h4 { font-size: clamp(25px, 4vw, 34px); }
.sr66f-step__head p:not(.sr66f-eyebrow) { margin: 10px 0 0; }

.sr66f-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.sr66f-choice { cursor: pointer; }
.sr66f-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sr66f-choice__box {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 24px;
    border: 2px solid #e6e0d8;
    border-radius: 20px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sr66f-choice:hover .sr66f-choice__box { transform: translateY(-2px); }
.sr66f-choice input:checked + .sr66f-choice__box { border-color: var(--sr66f-sand); box-shadow: 0 12px 28px rgba(212,163,115,.13); }
.sr66f-choice__badge { align-self: flex-start; margin-bottom: 18px; padding: 7px 10px; border-radius: 999px; background: #fff0e2; color: var(--sr66f-sand-dark); font-size: 12px; font-weight: 900; }
.sr66f-choice__badge--green { background: #edf5ee; color: var(--sr66f-green-dark); }
.sr66f-choice__box strong { font-size: 21px; color: var(--sr66f-ink); }
.sr66f-choice__box small { margin-top: 9px; color: var(--sr66f-muted); line-height: 1.55; font-size: 14px; }

.sr66f-note { display: grid; gap: 5px; margin-top: 18px; padding: 17px 18px; border-radius: 15px; background: var(--sr66f-cream); border: 1px solid #eee3d0; }
.sr66f-note strong { color: #6b4226; }
.sr66f-note span { color: #756c62; font-size: 14px; line-height: 1.55; }

.sr66f-upload { text-align: center; margin-bottom: 22px; padding: 28px 24px; border: 1.5px dashed #d7c7b7; border-radius: 20px; background: #fffdf9; }
.sr66f-upload__icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: #f5ece2; color: var(--sr66f-sand-dark); font-size: 22px; font-weight: 900; }
.sr66f-upload > strong { display: block; font-size: 20px; }
.sr66f-upload > p { max-width: 620px; margin: 8px auto 14px; color: var(--sr66f-muted); line-height: 1.55; }
.sr66f-upload__button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: #ede7df; color: var(--sr66f-ink); font-weight: 800; cursor: pointer; }
.sr66f-upload__button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sr66f-upload > small { display: block; margin-top: 12px; color: #8e8880; }
.sr66f-upload__file { margin-top: 10px; font-weight: 700; color: var(--sr66f-green-dark); word-break: break-word; }
.sr66f-upload__file.has-error { color: var(--sr66f-error); }

.sr66f-step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.sr66f-step-actions--end { justify-content: flex-end; }

.sr66f-summary { margin: 22px 0 8px; padding: 18px; border-radius: 16px; background: #f7f4ef; }
.sr66f-summary > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid #e9e3dc; }
.sr66f-summary > div:first-of-type { border-top: 0; }
.sr66f-summary span { color: #8b867e; }
.sr66f-summary strong { color: var(--sr66f-ink); }

@media (max-width: 720px) {
    .sr66f-grid,
    .sr66f-grid--two,
    .sr66f-choice-grid { grid-template-columns: 1fr; }
    .sr66f-field--full { grid-column: auto; }
    .sr66f-progress li { justify-content: center; padding: 8px; }
    .sr66f-progress li strong { display: none; }
    .sr66f-progress li span { width: 30px; height: 30px; }
    .sr66f-choice__box { min-height: auto; }
    .sr66f-step-actions { align-items: stretch; }
    .sr66f-step-actions button { flex: 1; }
    .sr66f-summary > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 460px) {
    .sr66f-card,
    .sr66f-step { padding: 22px 18px; }
    .sr66f-step-actions { flex-direction: column-reverse; }
    .sr66f-step-actions--end { flex-direction: column; }
    .sr66f-step-actions button { width: 100%; }
    .sr66f-turnstile { transform-origin: left top; max-width: 100%; overflow: hidden; }
}


/* 0.1.1 · Proyecto 3D compacto para páginas editoriales */
.sr66f-project-shell--compact .sr66f-progress {
    margin-bottom: 12px;
}
.sr66f-project-shell--compact .sr66f-progress li {
    min-height: 42px;
    padding: 7px 10px;
}
.sr66f-project-shell--compact .sr66f-project-card {
    border-radius: 20px;
}
.sr66f-project-shell--compact .sr66f-step {
    padding: clamp(22px, 3vw, 32px);
}
.sr66f-project-shell--compact .sr66f-step__head {
    margin-bottom: 18px;
}
.sr66f-project-shell--compact .sr66f-step__head h4 {
    font-size: clamp(24px, 3.2vw, 30px);
    line-height: 1.05;
}
.sr66f-project-shell--compact .sr66f-step__head p:not(.sr66f-eyebrow) {
    margin-top: 7px;
    line-height: 1.55;
}
.sr66f-project-shell--compact .sr66f-choice-grid {
    gap: 12px;
}
.sr66f-project-shell--compact .sr66f-choice__box {
    min-height: 164px;
    padding: 18px;
    border-radius: 16px;
}
.sr66f-project-shell--compact .sr66f-choice__badge {
    margin-bottom: 12px;
    padding: 5px 9px;
}
.sr66f-project-shell--compact .sr66f-choice__box strong {
    font-size: 18px;
    line-height: 1.1;
}
.sr66f-project-shell--compact .sr66f-choice__box small {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.45;
}
.sr66f-project-shell--compact .sr66f-note {
    margin-top: 12px;
    padding: 13px 15px;
    gap: 3px;
}
.sr66f-project-shell--compact .sr66f-note strong {
    font-size: 14px;
}
.sr66f-project-shell--compact .sr66f-note span {
    font-size: 12.5px;
    line-height: 1.45;
}
.sr66f-project-shell--compact .sr66f-step-actions {
    margin-top: 18px;
}
.sr66f-project-shell--compact .sr66f-upload {
    margin-bottom: 16px;
    padding: 20px 18px;
    border-radius: 16px;
}
.sr66f-project-shell--compact .sr66f-upload__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 9px;
    font-size: 19px;
}
.sr66f-project-shell--compact .sr66f-upload > strong {
    font-size: 18px;
}
.sr66f-project-shell--compact .sr66f-upload > p {
    margin: 6px auto 10px;
    font-size: 13px;
}
.sr66f-project-shell--compact .sr66f-field textarea {
    min-height: 112px;
}
.sr66f-project-shell--compact .sr66f-summary {
    margin: 16px 0 6px;
    padding: 14px 16px;
}
.sr66f-project-shell--compact .sr66f-consent {
    margin-top: 16px;
}

@media (max-width: 720px) {
    .sr66f-project-shell--compact .sr66f-choice__box { min-height: auto; }
}
