/* RCAD native download block */
.sep-detalles-archivo {
    max-width: 760px;
    margin: 30px auto 22px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.sep-det-titulo {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e7edf5;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sep-det-lista {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sep-det-lista li {
    display: grid;
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 13px 0;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.65;
}

.sep-det-lista li:last-child {
    border-bottom: 0;
}

.sep-det-lista strong {
    color: #0f172a;
    font-weight: 750;
    text-transform: lowercase;
}

.sep-det-lista span {
    min-width: 0;
    color: #334155;
}

.sep-det-cats span {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sep-det-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
}

.sep-det-badge:hover,
.sep-det-badge:focus {
    background: #0f766e;
    color: #fff;
    text-decoration: none;
}

.rcad-file-box {
    max-width: 760px;
    margin: 30px auto;
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #fff;
    color: #071b46;
    font-family: Arial, sans-serif;
}

.rcad-file-header {
    padding: 22px 30px 18px;
    border-bottom: 1px solid #e3e8f0;
    background: #f8fafc;
}

.rcad-file-header h2 {
    margin: 0;
    color: #071b46;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .2px;
}

.rcad-line {
    width: 56px;
    height: 3px;
    margin-top: 10px;
    border-radius: 20px;
    background: #f6a800;
}

.rcad-file-content {
    padding: 0 30px 12px;
}

.rcad-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

.rcad-row:last-child {
    border-bottom: 0;
}

.rcad-label {
    color: #071b46;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

.rcad-value {
    color: #1f2f46;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.rcad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rcad-tag {
    display: inline-block;
    padding: 5px 14px;
    border: 0;
    border-radius: 999px;
    background: #eca11a;
    color: #fff !important;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none !important;
}

.rcad-tag:hover,
.rcad-tag:focus {
    background: #d99000;
    color: #fff !important;
}

@media (max-width: 600px) {
    .rcad-file-box {
        margin: 18px 10px;
    }

    .rcad-file-header {
        padding: 20px 20px 16px;
    }

    .rcad-file-header h2 {
        font-size: 20px;
    }

    .rcad-file-content {
        padding: 0 20px 10px;
    }

    .rcad-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px 0;
    }
}

.rcad-download-card,
.rcad-download-block-editor .rcad-block-preview-card {
    max-width: 760px;
    margin: 28px auto;
    padding: 20px;
    border: 1px solid #b7f3d0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
    box-shadow: 0 14px 34px rgba(15, 118, 110, 0.08);
}

.rcad-download-ad {
    margin: 0 0 18px;
}

.rcad-download-ad:empty {
    display: none;
}

.rcad-download-main {
    display: flex;
    justify-content: flex-start;
}

.rcad-download-btn,
.rcad-block-button-preview {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: min(100%, 460px);
    padding: 16px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e 0%, #16a34a 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(15, 118, 110, 0.25);
}

.rcad-download-btn:hover,
.rcad-download-btn:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.32);
}

.rcad-download-icon,
.rcad-block-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.rcad-download-icon svg,
.rcad-block-icon svg {
    width: 100%;
    height: 100%;
}

.rcad-download-text,
.rcad-block-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.rcad-download-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.rcad-download-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.78);
}

.rcad-download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.rcad-download-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.rcad-download-note {
    margin: 14px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.rcad-download-block-editor .rcad-block-input {
    min-height: 0;
    padding: 3px 6px;
    border: 0;
    border-bottom: 1px dashed rgba(255,255,255,0.55);
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    box-shadow: none;
}

.rcad-download-block-editor .rcad-block-input:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: #fff;
}

.rcad-download-block-editor .is-title {
    min-width: 180px;
    font-weight: 800;
}

.rcad-download-block-editor .is-small {
    width: 86px;
    color: rgba(255,255,255,0.82);
    font-size: 12px;
}

.rcad-download-block-editor .is-pill {
    width: 78px;
    border: 0;
    color: #166534;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.rcad-block-title-row,
.rcad-block-subtitle-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rcad-block-title-row > span {
    color: rgba(255,255,255,0.76);
    font-size: 13px;
    font-weight: 700;
}

.rcad-block-free {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
}

.rcad-block-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.rcad-block-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rcad-block-fields {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.76);
}

.rcad-block-fields label {
    color: #334155;
    font-size: 12px;
    font-weight: 750;
}

.rcad-block-fields .rcad-block-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d7dde8;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}

.rcad-download-block-editor .rcad-block-preview-simple {
    max-width: 720px;
    padding: 20px;
    border: 1px solid #c8f7dc;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fbf5 0%, #ffffff 100%);
    box-shadow: 0 18px 45px rgba(15, 118, 74, 0.1);
}

.rcad-block-simple-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rcad-block-simple-kicker {
    color: #0b5c35;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rcad-block-simple-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.rcad-block-simple-state.is-ready {
    border: 1px solid #bbf7d0;
    background: #dcfce7;
    color: #166534;
}

.rcad-block-simple-state.is-empty {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.rcad-block-button-preview-simple {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.14), transparent 35%),
        linear-gradient(135deg, #12824a, #073d25);
    box-shadow: 0 18px 34px rgba(18,130,74,.26);
}

.rcad-block-button-preview-simple .rcad-block-icon {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 13px;
    background: rgba(255,255,255,.16);
}

.rcad-block-button-preview-simple .rcad-block-copy {
    gap: 5px;
}

.rcad-block-button-preview-simple .rcad-block-copy strong {
    color: #fff;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.15;
}

.rcad-block-button-preview-simple .rcad-block-copy span {
    color: rgba(255,255,255,.74);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
}

.rcad-block-fields-simple {
    gap: 8px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255,255,255,.9);
}

.rcad-block-fields-simple label {
    color: #102018;
    font-size: 13px;
    font-weight: 850;
}

.rcad-block-fields-simple .rcad-block-input {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
}

.rcad-block-help {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .sep-detalles-archivo {
        margin: 24px auto 18px;
        padding: 18px;
        border-radius: 12px;
    }

    .sep-det-titulo {
        font-size: 17px;
    }

    .sep-det-lista li {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .rcad-download-card,
    .rcad-download-block-editor .rcad-block-preview-card {
        padding: 16px;
    }

    .rcad-download-main,
    .rcad-download-btn,
    .rcad-block-button-preview {
        width: 100%;
    }

    .rcad-download-btn,
    .rcad-block-button-preview {
        justify-content: flex-start;
        padding: 14px 16px;
    }
}

/* RCAD download block v2 - desktop/mobile variants */
.rcad-download-card {
    --rcad-dl-green-900: #0d3b22;
    --rcad-dl-green-800: #145c35;
    --rcad-dl-green-700: #1a7a4a;
    --rcad-dl-green-100: #d6f5e7;
    --rcad-dl-green-50: #f0fbf5;
    --rcad-dl-ink: #0f1a13;
    --rcad-dl-ink-60: rgba(15,26,19,0.6);
    --rcad-dl-ink-20: rgba(15,26,19,0.12);
    --rcad-dl-surface: #f5f7f5;
    max-width: 760px;
    margin: 28px auto;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rcad-dl-ink-20);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.rcad-download-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rcad-dl-green-700);
}

.rcad-dl-mobile {
    display: none;
}

.rcad-format-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    padding: 3px 8px;
    border: 1px solid var(--rcad-dl-green-100);
    border-radius: 4px;
    background: var(--rcad-dl-green-50);
    color: var(--rcad-dl-green-800);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.rcad-format-chip svg {
    width: 11px;
    height: 11px;
}

.rcad-file-name {
    margin: 0 0 4px;
    color: var(--rcad-dl-ink-60);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0;
}

.rcad-resource-title {
    margin: 0 0 20px;
    color: var(--rcad-dl-ink);
    font-size: 19px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0;
}

.rcad-btn-download-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--rcad-dl-green-700);
    color: #fff;
    text-decoration: none;
    transition: background .18s ease, transform .12s ease;
}

.rcad-btn-download-pro:hover,
.rcad-btn-download-pro:focus {
    background: var(--rcad-dl-green-800);
    color: #fff;
    text-decoration: none;
}

.rcad-btn-download-pro:active {
    transform: scale(.985);
}

.rcad-btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rcad-btn-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
}

.rcad-btn-icon svg,
.rcad-btn-arrow svg,
.rcad-btn-compact svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.rcad-btn-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.rcad-btn-label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.rcad-btn-sub {
    color: rgba(255,255,255,.68);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
}

.rcad-btn-arrow {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    transition: background .18s ease, transform .18s ease;
}

.rcad-btn-download-pro:hover .rcad-btn-arrow {
    background: rgba(255,255,255,.22);
    transform: translateX(3px);
}

.rcad-dl-sep {
    height: 1px;
    margin: 20px 0;
    background: var(--rcad-dl-ink-20);
}

.rcad-dl-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.rcad-dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.rcad-dl-badge-free,
.rcad-dl-badge-check {
    border-color: #a8dfc3;
    background: #eaf6f0;
    color: #145c35;
}

.rcad-dl-badge-format {
    border-color: #b5d4f4;
    background: #e6f1fb;
    color: #0c447c;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .04em;
}

.rcad-dl-badge-size {
    border-color: var(--rcad-dl-ink-20);
    background: var(--rcad-dl-surface);
    color: var(--rcad-dl-ink-60);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.rcad-dl-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.rcad-dl-stat {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--rcad-dl-surface);
    text-align: center;
}

.rcad-dl-stat-num {
    color: var(--rcad-dl-ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.rcad-dl-stat-label {
    margin-top: 3px;
    color: var(--rcad-dl-ink-60);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rcad-download-note {
    margin-top: 14px;
    color: var(--rcad-dl-ink-60);
    font-size: 12px;
}

.rcad-compact-header,
.rcad-compact-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rcad-compact-header {
    margin-bottom: 12px;
}

.rcad-compact-title {
    min-width: 0;
    color: var(--rcad-dl-ink);
    font-size: 15px;
    font-weight: 700;
}

.rcad-compact-meta,
.rcad-compact-tags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rcad-btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--rcad-dl-green-700);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}

.rcad-btn-compact:hover,
.rcad-btn-compact:focus {
    background: var(--rcad-dl-green-800);
    color: #fff;
    text-decoration: none;
}

.rcad-btn-compact:active {
    transform: scale(.98);
}

.rcad-compact-info {
    margin-top: 12px;
}

.rcad-compact-license {
    color: var(--rcad-dl-ink-60);
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .rcad-download-card {
        padding: 20px;
    }

    .rcad-dl-desktop {
        display: none;
    }

    .rcad-dl-mobile {
        display: block;
    }

    .rcad-download-note {
        display: none;
    }
}

/* RCAD clean download card - final simplified design */
.rcad-download-card-clean {
    --rcad-clean-green: #12824a;
    --rcad-clean-green-dark: #073d25;
    --rcad-clean-ink: #102018;
    --rcad-clean-muted: #64736b;
    max-width: 760px;
    margin: 30px auto;
    padding: 0 0 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.rcad-download-card-clean::before {
    display: none;
}

.rcad-download-card-clean::after {
    display: none;
}

.rcad-download-clean-title,
.rcad-download-clean-center,
.rcad-download-notice,
.rcad-download-social,
.rcad-download-card-clean .rcad-download-ad,
.rcad-download-card-clean .rcad-download-note {
    position: relative;
    z-index: 2;
}

.rcad-download-clean-title {
    margin: 0;
    padding: 22px 30px 18px;
    border-bottom: 1px solid #e3e8f0;
    background: #f8fafc;
    color: #071b46;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: .2px;
}

.rcad-download-card-clean .rcad-download-ad {
    margin: 0;
    padding: 22px 30px 0;
    text-align: center;
}

.rcad-download-clean-center {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
    padding: 22px 30px 0;
}

.rcad-download-clean-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 18px 22px;
    border-radius: 20px;
    background:
        linear-gradient(135deg,rgba(255,255,255,.14),transparent 35%),
        linear-gradient(135deg,var(--rcad-clean-green),var(--rcad-clean-green-dark));
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: none;
    overflow: hidden;
    transition: transform .18s ease, background .18s ease;
}

.rcad-download-clean-btn:hover,
.rcad-download-clean-btn:focus {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

.rcad-download-clean-btn.is-counting {
    cursor: wait;
    opacity: .88;
    transform: none;
}

.rcad-download-clean-btn.is-ready {
    background:
        linear-gradient(135deg,rgba(255,255,255,.14),transparent 35%),
        linear-gradient(135deg,#16a34a,#0f5132);
}

.rcad-clean-btn-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.rcad-clean-btn-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.16);
}

.rcad-clean-btn-icon svg,
.rcad-clean-btn-go svg {
    stroke: #fff;
}

.rcad-clean-btn-icon svg {
    width: 24px;
    height: 24px;
}

.rcad-clean-btn-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.rcad-clean-btn-title {
    color: #fff !important;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.15;
}

.rcad-clean-btn-sub {
    margin-top: 6px;
    color: rgba(255,255,255,.74) !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.rcad-download-clean-btn span,
.rcad-download-clean-btn strong {
    color: inherit;
    text-decoration: none !important;
}

.rcad-clean-btn-go {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    transition: transform .18s ease, background .18s ease;
}

.rcad-clean-btn-go svg {
    width: 20px;
    height: 20px;
}

.rcad-download-clean-btn:hover .rcad-clean-btn-go {
    transform: translateX(4px);
    background: rgba(255,255,255,.24);
}

.rcad-download-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 10px 18px;
    border: 1px solid #d8ebe0;
    border-radius: 999px;
    background: #f4faf7;
    color: #0b5c35;
    font-size: 13px;
    font-weight: 750;
}

.rcad-download-notice-icon {
    display: flex;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 13px;
}

.rcad-download-social {
    margin: 0;
    color: var(--rcad-clean-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.rcad-download-social strong {
    color: var(--rcad-clean-green-dark);
    font-weight: 850;
}

.rcad-download-card-clean .rcad-download-note {
    margin: 12px auto 0;
    max-width: 700px;
    padding: 0 30px;
    text-align: center;
}

@media (max-width: 560px) {
    .rcad-download-card-clean {
        margin: 18px 10px;
        padding: 0 0 24px;
    }

    .rcad-download-clean-title {
        padding: 20px 20px 16px;
        font-size: 20px;
        font-weight: 400;
    }

    .rcad-download-clean-center {
        padding: 18px 20px 0;
    }

    .rcad-download-clean-btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 15px;
    }

    .rcad-clean-btn-title {
        font-size: 15px;
    }

    .rcad-clean-btn-sub {
        font-size: 11px;
    }

    .rcad-clean-btn-icon {
        width: 44px;
        height: 44px;
    }

    .rcad-download-notice {
        width: 100%;
        font-size: 12px;
    }

    .rcad-download-social {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .rcad-clean-btn-go {
        display: none;
    }
}

/* RCAD download card - author, save and sharing actions */
.rcad-download-card-clean {
    padding: 28px 32px 30px;
    border-color: #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}

.rcad-download-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.rcad-download-head-icon {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: #e6f4ee;
}

.rcad-download-head-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1a6e3c;
}

.rcad-download-head-copy {
    min-width: 0;
}

.rcad-download-head-copy p {
    margin: 8px 0 0;
    color: #536171;
    font-size: 15px;
    line-height: 1.5;
}

.rcad-download-card-clean .rcad-download-clean-title {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #071b46;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.25;
}

.rcad-download-card-clean .rcad-download-ad {
    padding: 4px 0 18px;
}

.rcad-download-button-box {
    display: flex;
    justify-content: center;
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    background: #fafafa;
}

.rcad-download-card-clean .rcad-download-clean-btn {
    max-width: 480px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #1a7a43;
}

.rcad-download-card-clean .rcad-download-clean-btn:hover,
.rcad-download-card-clean .rcad-download-clean-btn:focus {
    background: #145f34;
}

.rcad-download-card-clean .rcad-clean-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.rcad-download-card-clean .rcad-clean-btn-go {
    width: 40px;
    height: 40px;
}

.rcad-download-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.rcad-download-author-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #d7e5d7;
}

.rcad-download-avatar-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.rcad-download-author-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

.rcad-download-author-copy a {
    color: #071b46;
    font-weight: 750;
    text-decoration: none;
}

.rcad-download-author-copy a:hover,
.rcad-download-author-copy a:focus {
    color: #f6a800;
    text-decoration: underline;
}

.rcad-download-author-avatar {
    transition: transform .16s ease;
}

.rcad-download-author-avatar:hover,
.rcad-download-author-avatar:focus {
    transform: translateY(-1px);
}

.rcad-download-verified svg {
    width: 17px;
    height: 17px;
    color: #16824a;
    vertical-align: -3px;
}

.rcad-download-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.rcad-download-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #334155 !important;
    font: 650 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-decoration: none !important;
    cursor: pointer;
}

.rcad-download-action:hover,
.rcad-download-action:focus {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #071b46 !important;
}

.rcad-download-action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.rcad-download-like,
.rcad-download-share-trigger {
    width: 36px;
    padding: 7px;
}

/* Transición suave SVG */
.rcad-download-like svg,
.rcad-download-save svg {
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Like activo — corazón rojo */
.rcad-download-like.is-active {
    color: #e0245e !important;
    border-color: #fcd7e2;
    background: #fff5f8;
}
.rcad-download-like.is-active svg {
    fill: #e0245e;
    stroke: #e0245e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Guardar activo — bookmark amber */
.rcad-download-save.is-active {
    color: #f6a800 !important;
    border-color: #fde8aa;
    background: #fffbf0;
}
.rcad-download-save.is-active svg {
    fill: #f6a800;
    stroke: #f6a800;
}

.rcad-download-share-wrap {
    position: relative;
}

.rcad-download-share-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 30;
    display: none;
    width: 224px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.rcad-download-share-menu.is-open {
    display: block;
}

.rcad-share-label {
    display: block;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

.rcad-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.rcad-share-btn {
    display: grid;
    min-height: 38px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.rcad-share-btn svg {
    width: 19px;
    height: 19px;
}

.rcad-share-btn:hover,
.rcad-share-btn:focus {
    opacity: .88;
}

.rcad-share-btn.is-whatsapp { background: #25d366; }
.rcad-share-btn.is-facebook { background: #1877f2; }
.rcad-share-btn.is-x { background: #111; }
.rcad-share-btn.is-telegram { background: #2aabee; }
.rcad-share-btn.is-email { background: #ea4335; }
.rcad-share-btn.is-copy {
    grid-column: span 2;
    background: #f1f5f9;
    color: #334155;
}

.rcad-share-toast {
    display: none;
    margin-top: 9px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    text-align: center;
}

.rcad-share-toast.is-visible {
    display: block;
}

.rcad-download-trust-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
}

.rcad-download-trust-item {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.rcad-download-trust-item::after {
    content: ' · ';
    color: #cbd5e1;
    margin: 0 4px;
}

.rcad-download-trust-item:last-child::after {
    content: '';
}

.rcad-download-trust-icon {
    display: none;
}

.rcad-download-trust-icon svg {
    display: none;
}

.rcad-download-trust-item strong,
.rcad-download-trust-item span {
    display: inline;
    max-width: none;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
}

/* RCAD final polish: compact CAD details and download block */
.rcad-file-box {
    max-width: 760px;
    margin: 22px auto;
    border-color: #e1e7ef;
    border-radius: 12px;
    color: #0f2544;
}

.rcad-file-header {
    padding: 18px 30px 14px;
    background: #fbfcfe;
}

.rcad-file-header h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
}

.rcad-line {
    width: 44px;
    height: 2px;
    margin-top: 9px;
}

.rcad-file-content {
    padding: 0 30px 10px;
}

.rcad-row {
    grid-template-columns: 140px 1fr;
    gap: 18px;
    padding: 9px 0;
}

.rcad-label {
    color: #0f2544;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.rcad-value {
    color: #1f334d;
    font-size: 13px;
    line-height: 1.45;
}

.rcad-tag {
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 600;
}

.rcad-download-card-clean {
    max-width: 760px;
    margin: 22px auto;
    padding: 22px 30px 24px;
    border-radius: 14px;
}

.rcad-download-head {
    gap: 14px;
    margin-bottom: 12px;
}

.rcad-download-head-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.rcad-download-head-icon svg {
    width: 23px;
    height: 23px;
}

.rcad-download-card-clean .rcad-download-clean-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.rcad-download-head-copy p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.rcad-download-button-box {
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 12px;
    background: #fbfbfa;
}

.rcad-download-card-clean .rcad-download-clean-btn {
    max-width: 430px;
    padding: 13px 16px;
    border-radius: 12px;
}

.rcad-clean-btn-left {
    gap: 12px;
}

.rcad-download-card-clean .rcad-clean-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.rcad-clean-btn-icon svg {
    width: 20px;
    height: 20px;
}

.rcad-clean-btn-title {
    font-size: 14px;
    font-weight: 750;
}

.rcad-clean-btn-sub {
    margin-top: 4px;
    font-size: 11px;
}

.rcad-download-card-clean .rcad-clean-btn-go {
    width: 34px;
    height: 34px;
}

.rcad-download-author-row {
    margin-bottom: 18px;
}

.rcad-download-author-avatar,
.rcad-download-avatar-img {
    width: 38px;
    height: 38px;
}

.rcad-download-author-copy {
    font-size: 12px;
}

.rcad-download-action {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.rcad-download-like,
.rcad-download-share-trigger {
    width: 34px;
}

.rcad-download-trust-grid {
    margin-bottom: 12px;
}

.rcad-download-trust-item strong,
.rcad-download-trust-item span,
.rcad-download-social {
    font-size: 11px;
}

@media (max-width: 560px) {
    .rcad-file-header,
    .rcad-file-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .rcad-file-header h2,
    .rcad-download-card-clean .rcad-download-clean-title {
        font-size: 18px;
    }

    .rcad-download-card-clean {
        padding: 18px;
    }

    .rcad-download-button-box {
        padding: 14px;
    }
}

.rcad-download-trust-item span:last-child {
    display: none;
}

@media (max-width: 720px) {
    .rcad-download-card-clean {
        margin: 18px 10px;
        padding: 22px 18px;
    }

    .rcad-download-head {
        align-items: flex-start;
    }

    .rcad-download-card-clean .rcad-download-clean-title {
        font-size: 20px;
    }

    .rcad-download-button-box {
        padding: 16px;
    }

    .rcad-download-author-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .rcad-download-author-copy {
        flex-wrap: wrap;
    }

    .rcad-download-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rcad-download-share-menu {
        right: auto;
        left: 0;
    }

    .rcad-download-trust-grid {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .rcad-download-head-icon {
        width: 48px;
        height: 48px;
    }

    .rcad-download-card-clean .rcad-clean-btn-go {
        display: none;
    }

    .rcad-download-save span {
        display: none;
    }
}
