:root {
    --color-wine: #7f1d2d;
    --color-wine-soft: #a83a4f;
    --color-orange: #e8893a;
    --color-blue: #7ec8e3;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f1f3f6;
    --color-gray-200: #e4e7ec;
    --color-gray-400: #98a2b3;
    --color-gray-700: #344054;
    --color-gray-900: #1d2939;
    --shadow-soft: 0 12px 26px rgba(15, 23, 42, 0.08);
    --radius-md: 12px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(155deg, #fffdfc 0%, #f7fbfd 56%, #f2f6fa 100%);
    color: var(--color-gray-900);
}

a {
    color: var(--color-wine);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-shell {
    min-height: 100vh;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    color: var(--color-wine);
}

.brand-logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: min(220px, 48vw);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    color: var(--color-gray-700);
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(232, 137, 58, 0.16);
    color: var(--color-wine);
    text-decoration: none;
}

.public-main {
    padding: 2.25rem 0 3rem;
}

.hero {
    background: linear-gradient(130deg, #fff7f3 0%, #ffffff 46%, #eef8fc 100%);
    border: 1px solid #f0e8e4;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.4rem;
}

.hero-title {
    margin: 0 0 0.5rem;
    color: var(--color-wine);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.hero-subtitle {
    margin: 0;
    color: var(--color-gray-700);
    max-width: 65ch;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-soft);
    padding: 1.1rem;
}

.card-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--color-gray-900);
}

.card-text {
    margin: 0;
    color: var(--color-gray-700);
}

.video-session-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1.3rem;
}

.video-session-shell {
    margin-block: 1.35rem;
}

.video-session-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.video-session-heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.video-session-title {
    margin: 0;
    font-size: 1.03rem;
    color: var(--color-gray-900);
}

.video-session-subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: var(--color-gray-400);
    font-weight: 500;
}

.video-session-platform {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-wine);
    background: rgba(127, 29, 45, 0.11);
}

.video-session-frame-wrap {
    width: 100%;
}

.video-session-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.video-session-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

.video-session-state {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1rem 1.05rem;
    font-size: 0.93rem;
    line-height: 1.5;
}

.video-session-state-empty {
    color: var(--color-gray-700);
    background: linear-gradient(140deg, #fdfefe 0%, #f6f9fc 100%);
    border-color: #dce5ee;
}

.video-session-state-error {
    color: #8b3f18;
    background: #fff8f1;
    border-color: #f6d6bc;
}

.pdf-support-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1.3rem;
}

.pdf-support-shell {
    margin-block: 1.35rem;
}

.pdf-support-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.pdf-support-heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pdf-support-title {
    margin: 0;
    font-size: 1.03rem;
    color: var(--color-gray-900);
}

.pdf-support-subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: var(--color-gray-400);
    font-weight: 500;
}

.pdf-support-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pdf-support-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-100);
    border-radius: 8px;
}

.pdf-support-item-unavailable {
    border-color: #f6d6bc;
    background: #fffaf5;
}

.pdf-support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: rgba(127, 29, 45, 0.1);
    color: var(--color-wine);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.pdf-support-meta {
    flex: 1;
    min-width: 0;
}

.pdf-support-doc-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-support-doc-subtext {
    margin: 0.05rem 0 0;
    font-size: 0.8rem;
    color: var(--color-gray-400);
}

.pdf-support-doc-error {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #8b3f18;
}

.pdf-support-action {
    white-space: nowrap;
    flex-shrink: 0;
}

.pdf-support-action-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    color: #8b3f18;
    border-color: #f0c8a8;
}

.pdf-support-state {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1rem 1.05rem;
    font-size: 0.93rem;
    line-height: 1.5;
}

.pdf-support-state-empty {
    color: var(--color-gray-700);
    background: linear-gradient(140deg, #fdfefe 0%, #f6f9fc 100%);
    border-color: #dce5ee;
}

.session-section-gap {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--color-gray-100);
}

.session-item-gap {
    margin-bottom: 1.25rem;
}

@supports not (aspect-ratio: 16 / 9) {
    .video-session-frame {
        height: 0;
        padding-top: 56.25%;
    }

    .video-session-frame iframe {
        position: absolute;
        inset: 0;
    }
}

@media (max-width: 720px) {
    .video-session-card {
        padding: 1rem;
    }

    .pdf-support-card {
        padding: 1rem;
    }

    .video-session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .video-session-platform {
        font-size: 0.72rem;
    }

    .video-session-shell {
        margin-block: 1.1rem;
    }

    .pdf-support-shell {
        margin-block: 1.1rem;
    }

    .pdf-support-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pdf-support-action {
        width: 100%;
        justify-content: center;
    }

    .session-section-gap {
        margin-top: 1.1rem;
        padding-top: 0.95rem;
    }

    .session-item-gap {
        margin-bottom: 1rem;
    }
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 0.62rem 1rem;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-wine);
    color: var(--color-white);
    box-shadow: 0 8px 16px rgba(127, 29, 45, 0.26);
}

.btn-secondary {
    background: var(--color-orange);
    color: #2a1709;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
}

.form-card {
    width: min(500px, 94vw);
    margin: 1.2rem auto;
}

.form-card-lg {
    width: min(800px, 96vw);
    margin: 1.2rem auto;
    background: var(--color-white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    padding: 2rem 2.2rem;
}

.form-card-header {
    margin-bottom: 1.4rem;
}

.form-card-header h2 {
    color: var(--color-wine);
    margin: 0 0 .3rem;
}

.form-card-header p {
    color: var(--color-gray-600);
    margin: 0;
    font-size: .93rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}

.form-grid-2-full {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.form-label {
    font-size: 0.9rem;
    color: var(--color-gray-700);
    font-weight: 600;
}

.input,
.select,
.textarea {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: var(--color-gray-900);
    border-radius: 10px;
    padding: 0.66rem 0.78rem;
    font-size: 0.95rem;
    width: 100%;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: 2px solid rgba(126, 200, 227, 0.45);
    border-color: var(--color-blue);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.badge-wine {
    background: rgba(127, 29, 45, 0.12);
    color: var(--color-wine);
}

.badge-orange {
    background: rgba(232, 137, 58, 0.18);
    color: #7a3f10;
}

.badge-blue {
    background: rgba(126, 200, 227, 0.25);
    color: #0f526c;
}

.inbox-row-new {
    background: rgba(126, 200, 227, 0.12);
}

.inbox-row-new td {
    border-bottom-color: rgba(126, 200, 227, 0.28);
}

.inbox-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    margin-left: 0.35rem;
    background: var(--color-blue);
    vertical-align: middle;
}

.inbox-subject-new {
    font-weight: 700;
    color: var(--color-gray-900);
}

.dashboard {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #7f1d2d 0%, #6a1725 100%);
    color: var(--color-white);
    padding: 1.3rem 1rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.1rem;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.34rem;
}

.sidebar-link {
    color: #fbe8eb;
    padding: 0.6rem 0.72rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 600;
}

.sidebar-badge {
    min-width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    padding: 0 0.34rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(126, 200, 227, 0.28);
    color: var(--color-white);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
}

/* ── Video modal de induccion ─────────────────────────── */
.iv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    z-index: 900;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.iv-overlay.is-open {
    display: flex;
}
.iv-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 780px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
}
.iv-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--color-gray-100);
    gap: .75rem;
}
.iv-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-gray-800);
}
.iv-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-gray-500);
    padding: .2rem .4rem;
    border-radius: 4px;
    flex-shrink: 0;
}
.iv-modal-close:hover { background: var(--color-gray-100); }
.iv-modal-body {
    overflow-y: auto;
    padding: 1rem 1.1rem;
}
.iv-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: .8rem;
}
.iv-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.iv-modal-foot {
    padding: .85rem 1.1rem;
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
}
.iv-banner {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--color-blue);
    background: rgba(126,200,227,.08);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.iv-banner.is-required {
    border-color: var(--color-wine);
    background: rgba(138,0,0,.05);
}
.iv-banner-text { flex: 1; min-width: 0; }
.iv-banner-text strong { display: block; font-size: .95rem; }
.iv-banner-text small { color: var(--color-gray-500); font-size: .84rem; }
.iv-gate {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    background: rgba(138,0,0,.06);
    border: 1px dashed var(--color-wine);
    color: var(--color-wine);
    font-size: .9rem;
    margin-top: .65rem;
}

/* ─── Survey Gate Banner (bloquea operación del grupo) ─── */
.survey-gate-banner {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(252, 165, 11, 0.08) 0%, rgba(252, 165, 11, 0.04) 100%);
    border: 2px solid #e8893a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.survey-gate-content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.survey-gate-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-orange);
}

.survey-gate-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray-700);
}

.survey-gate-banner .btn-primary {
    align-self: flex-start;
    background-color: var(--color-orange);
}

.survey-gate-banner .btn-primary:hover {
    background-color: #d67a2d;
}

/* ─── Survey Completed Banner (encuesta respondida) ───── */
.survey-completed-banner {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #2e7d32;
}

.survey-completed-checkmark {
    font-weight: bold;
    font-size: 1.1rem;
}

.survey-completed-text {
    font-weight: 500;
}
/* ─────────────────────────────────────────────────────── */

/* ── Estilos para encuestas de grupos ─────────────────── */
.survey-question-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-gray-50);
}

.survey-question-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-gray-800);
}
/* ─────────────────────────────────────────────────────── */

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-content {
    padding: 1.3rem 1.3rem 1.8rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table th,
.table td {
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid var(--color-gray-100);
    text-align: left;
    font-size: 0.92rem;
}

.table th {
    background: #fcfcfd;
    color: var(--color-gray-700);
    font-weight: 700;
}

.table tr:hover td {
    background: #fffdfb;
}

.footer-note {
    margin-top: 1.2rem;
    color: var(--color-gray-400);
    font-size: 0.86rem;
}

.alert {
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.alert-error {
    background: rgba(127, 29, 45, 0.10);
    color: var(--color-wine);
    border: 1px solid rgba(127, 29, 45, 0.22);
}

.alert-success {
    background: rgba(126, 200, 227, 0.18);
    color: #0f526c;
    border: 1px solid rgba(126, 200, 227, 0.4);
}

.dash-panel {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    padding: 1rem;
}

.dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dash-title {
    margin: 0;
    color: var(--color-wine);
}

.dash-subtitle {
    margin: 0.25rem 0 0;
    color: var(--color-gray-700);
    font-size: 0.92rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.stat-card {
    border: 1px solid var(--color-gray-200);
    background: #fcfcfd;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-card strong {
    font-size: 1.25rem;
    color: var(--color-gray-900);
}

.stat-card span {
    color: var(--color-gray-700);
    font-size: 0.86rem;
}

.filter-bar {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.table-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

@media (max-width: 940px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .topbar-inner {
        flex-wrap: wrap;
        padding: 0.6rem 0;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============== Home publica Academy FRP =============== */

.home-page {
    display: block;
}

.home-editable {
    position: relative;
}

/* ---- Header Global ---- */
.home-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-150);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-header-logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-wine);
    letter-spacing: -0.5px;
}

.home-header-nav {
    display: flex;
    gap: 2rem;
}

.home-header-link {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.home-header-link:hover {
    color: var(--color-wine);
}

/* ---- Hero Principal ---- */
.home-hero {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    background: linear-gradient(135deg, #fefefe 0%, #f5f8fc 100%);
    border-bottom: 2px solid var(--color-orange);
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(232, 137, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.home-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(232, 137, 58, 0.12);
    color: var(--color-orange);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-hero-title {
    margin: 0;
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    line-height: 1.05;
    color: var(--color-wine);
    font-weight: 700;
}

.home-hero-subtitle {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--color-gray-800);
    line-height: 1.4;
}

.home-hero-description {
    margin: 0;
    max-width: 55ch;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--color-gray-700);
}

.home-hero-actions {
    margin-top: 1.3rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.home-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.home-hero-visual-block {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127, 29, 45, 0.08) 0%, rgba(232, 137, 58, 0.08) 50%, rgba(126, 200, 227, 0.08) 100%);
    border-radius: 20px;
    border: 2px solid rgba(232, 137, 58, 0.2);
    position: relative;
    overflow: hidden;
}

.home-hero-visual-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(232, 137, 58, 0.15), transparent),
                radial-gradient(circle at 70% 30%, rgba(126, 200, 227, 0.1), transparent);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

/* ---- Bloques generales ---- */
.home-block {
    background: var(--color-white);
    border: 1px solid var(--color-gray-150);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    margin: clamp(1.5rem, 3vw, 2.5rem) auto;
    max-width: 1280px;
    transition: box-shadow 0.3s ease;
}

.home-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.home-section-head {
    margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem);
    text-align: center;
}

.home-section-title {
    margin: 0;
    color: var(--color-wine);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
}

.home-section-title.left {
    text-align: left;
}

.home-section-subtitle {
    margin: 0.5rem 0 0;
    color: var(--color-gray-700);
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ---- Sección Bienvenida ---- */
.home-welcome {
    padding-block: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.home-section-text {
    margin: 1.2rem auto 0;
    max-width: 75ch;
    text-align: center;
    color: var(--color-gray-700);
    line-height: 1.78;
    font-size: clamp(0.98rem, 1.8vw, 1.1rem);
}

/* ---- Sección Pasos ---- */
.home-steps {
    text-align: center;
}

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

.home-step-card {
    border: 2px solid var(--color-gray-150);
    border-radius: 16px;
    background: linear-gradient(165deg, #fffefe 0%, #f9fbfd 100%);
    padding: clamp(1.2rem, 2vw, 1.6rem);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-wine), var(--color-orange), var(--color-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.home-step-card:hover {
    border-color: var(--color-orange);
    box-shadow: 0 4px 16px rgba(232, 137, 58, 0.1);
}

.home-step-card:hover::before {
    transform: scaleX(1);
}

.home-step-number-container {
    display: flex;
    justify-content: flex-start;
}

.home-step-number {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(127, 29, 45, 0.12) 0%, rgba(232, 137, 58, 0.08) 100%);
    color: var(--color-wine);
    font-weight: 700;
    font-size: 1.3rem;
    border: 2px solid rgba(127, 29, 45, 0.15);
}

.home-step-text {
    margin: 0;
    color: var(--color-gray-700);
    line-height: 1.66;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    text-align: left;
    flex-grow: 1;
}

/* ---- Banner Destacado ---- */
.home-banner {
    border-radius: 18px;
    overflow: hidden;
    margin: clamp(1.5rem, 3vw, 2.5rem) auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background-image:
        linear-gradient(95deg, rgba(25, 35, 52, 0.85) 0%, rgba(15, 82, 108, 0.75) 52%, rgba(25, 35, 52, 0.82) 100%),
        url('/assets/images/home-banner-bg.svg');
    background-size: cover;
    background-position: center;
    max-width: 1280px;
}

.home-banner-inner {
    padding: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.home-banner-title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.home-banner-text {
    margin: 0.8rem 0 1.6rem;
    line-height: 1.72;
    color: #e8f3f9;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

/* ---- Sección Contacto ---- */
.home-contact {
    text-align: center;
}

.home-contact-grid {
    margin-top: clamp(1.5rem, 2.5vw, 2rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-contact-item {
    border: 2px solid var(--color-gray-150);
    border-radius: 16px;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    background: linear-gradient(165deg, #fefefe 0%, #f5f9fc 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(232, 137, 58, 0.05), transparent);
    pointer-events: none;
}

.home-contact-item:hover {
    border-color: var(--color-orange);
    box-shadow: 0 4px 16px rgba(232, 137, 58, 0.1);
    transform: translateY(-2px);
}

.home-contact-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.home-contact-item h3 {
    margin: 0;
    color: var(--color-wine);
    font-size: 1.05rem;
    font-weight: 700;
}

.home-contact-item p {
    margin: 0.6rem 0 0;
    color: var(--color-gray-700);
    line-height: 1.62;
    font-size: 0.95rem;
}

.help-page {
    display: grid;
    gap: 1rem;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.help-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.help-card-head {
    margin-bottom: 0.65rem;
}

.help-card-title {
    margin: 0;
    font-size: 1rem;
    color: var(--color-gray-900);
}

.help-frame-wrap {
    width: 100%;
}

.help-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.help-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

.help-empty {
    padding: 1rem 1.1rem;
}

.help-card-note,
.help-invalid-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray-700);
}

.help-invalid-note {
    font-size: 0.84rem;
    color: var(--color-gray-400);
}

/* ---- Responsivo ---- */
@media (max-width: 1000px) {
    .home-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-hero-visual {
        min-height: 260px;
    }

    .home-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-contact-grid {
        grid-template-columns: 1fr;
    }

    .home-header-nav {
        gap: 1.2rem;
    }

    .home-header-link {
        font-size: 0.88rem;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .brand-logo {
        height: 38px;
        max-width: 170px;
    }

    .home-header-container {
        height: 56px;
        padding: 0 1rem;
    }

    .home-header-logo {
        font-size: 1rem;
    }

    .home-header-nav {
        display: none;
    }

    .home-hero {
        padding: 1.5rem 1rem 2rem;
    }

    .home-hero-container {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        min-height: 200px;
        order: -1;
    }

    .home-section-title.left {
        text-align: center;
    }

    .home-section-subtitle {
        text-align: center;
    }

    .home-steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-step-card {
        min-height: auto;
        padding: 1rem;
        gap: 0.8rem;
    }

    .home-step-number {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.1rem;
    }

    .home-step-text {
        font-size: 0.9rem;
    }

    .home-contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-contact-item {
        padding: 1.2rem;
    }

    .home-contact-icon {
        font-size: 1.6rem;
    }

    .help-card {
        padding: 0.85rem;
    }
}

/* ======================================================= */
