/* ==========================================================
   PROYECTO VENEZUELA
   RediseÃ±o inspirado en Venezuela Retorna
   Paleta: Azul #0057B8 | Dorado #F4C300 | Rojo #D71920
========================================================== */

:root {

    --bg: #f6f2e8;
    --surface: #fffdfa;
    --ink: #142033;
    --ink-soft: #506079;

    --brand: #0057B8;
    --brand-2: #003d82;
    --gold: #F4C300;
    --gold-2: #ffd633;
    --red: #D71920;
    --red-soft: #b65858;

    --line: rgba(0, 55, 130, .12);
    --shadow: 0 24px 60px rgba(10, 28, 56, .12);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;

    --transition: .25s ease;
}


/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(244, 195, 0, .20), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(0, 87, 184, .10), transparent 32%),
        radial-gradient(circle at 80% 70%, rgba(215, 25, 32, .06), transparent 25%),
        var(--bg);

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


button, input, select, textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


img {
    max-width: 100%;
    display: block;
}


/* ==========================================================
   GENERAL
========================================================== */

.container {

    width: min(
        calc(100% - 2rem),
        var(--container)
    );

    margin: 0 auto;
}


.section {
    padding: 6rem 0;
}


.section-dark {
    background: linear-gradient(135deg, #071529fa, #0d2a52f0);
    color: #fff;
}


.eyebrow {

    display: inline-flex;
    margin-bottom: 1rem;
    border-radius: 999px;
    padding: .45rem .95rem;
    background: rgba(0, 87, 184, .12);
    color: var(--brand);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}


/* ==========================================================
   HEADER / NAVBAR
========================================================== */

.site-header {

    position: sticky;
    top: 0;
    z-index: 20;
    padding: .75rem 0;
    transition:
        background var(--transition),
        box-shadow var(--transition),
        backdrop-filter var(--transition);
}


.site-header.scrolled {

    background: rgba(246, 242, 232, .92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(16, 29, 52, .06);
}


.header-inner {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
}


.brand {

    display: flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
    min-width: 0;
}


.brand-logo {

    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
}


.brand-name {

    font-size: .84rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .035em;
    line-height: 1.3;
    text-transform: uppercase;
}


.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}


.main-nav {

    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
}


.main-nav a {

    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .6rem;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink-soft);
    transition: background var(--transition), color var(--transition);
}


.main-nav a:hover {
    background: rgba(0, 87, 184, .08);
    color: var(--brand);
}


.header-actions {

    display: flex;
    align-items: center;
    gap: .85rem;
}


.header-actions .btn {
    min-height: 38px;
    min-width: 0;
    padding: .45rem 1.1rem;
    font-size: .88rem;
}


.login-link {

    font-size: .93rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color var(--transition);
}


.login-link:hover {
    color: var(--brand);
}


/* ==========================================================
   BUTTONS
========================================================== */

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: .95rem 1.35rem;
    font-weight: 700;
    font-size: .95rem;
    min-width: 144px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}


.btn:hover {
    transform: translateY(-1px);
}


.btn-primary {

    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 87, 184, .30);
}


.btn-primary:hover {
    box-shadow: 0 18px 38px rgba(0, 87, 184, .40);
}


.btn-secondary {

    background: linear-gradient(135deg, var(--gold), #d4a800);
    color: #1b1f29;
    box-shadow: 0 14px 30px rgba(244, 195, 0, .30);
}


.btn-outline {

    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .30);
}


.btn-outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: #fff;
}


.btn-large {
    padding: 1.1rem 1.55rem;
}


/* ==========================================================
   HERO
========================================================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(900px, calc(100vh - 80px));
    display: flex;
    align-items: center;
    color: #fff;
}


.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(90deg, rgba(9, 18, 34, .92) 0%, rgba(9, 18, 34, .55) 48%, rgba(9, 18, 34, .70) 100%),
        url(../images/mapa.jpeg);
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 60px);
    }
    .hero-bg {
        background-position: center center;
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(244, 195, 0, .22), transparent 24%),
        radial-gradient(circle at 88% 24%, rgba(0, 87, 184, .18), transparent 20%);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    padding-top: 2rem;
}


.hero .eyebrow {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
}


.hero h1 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 4.3vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    max-width: 1040px;
}


.hero h1 strong {
    font-weight: 800;
    color: var(--gold);
}


.hero p {
    max-width: 690px;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 0;
    line-height: 1.75;
}


.hero-lead {
    max-width: 690px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .85);
    font-size: 1.06rem;
    line-height: 1.75;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 2.5rem;
}


.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}


.hero-highlight {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}


.hero-highlight strong {
    display: block;
    margin-bottom: .5rem;
    font-size: 1.1rem;
}


.hero-highlight p {
    margin: 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.7;
}


/* ==========================================================
   SECTION HEADING
========================================================== */

.section-heading {
    max-width: 780px;
    margin-bottom: 2.5rem;
}


.section-heading h2 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--brand-2);
}


.section-heading p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.8;
}


.section-link,
.text-link {
    color: var(--brand);
    font-size: .95rem;
    font-weight: 700;
}


.text-link:hover {
    text-decoration: underline;
}


.centered {
    display: block;
    text-align: center;
}


.section-heading.centered,
.centered .section-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}


/* ==========================================================
   CONTENT CARDS (Noticias)
========================================================== */

.content-grid {

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.25rem;
}


.story-card {

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow);
}


.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(10, 28, 56, .18);
}


.story-image {
    min-height: 240px;
    position: relative;
    background:
        linear-gradient(135deg, #e8e4da, #d5d0c4);
}


.story-featured .story-image {
    min-height: 330px;
}


.story-tag {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #1b1f29;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
}


.story-content {
    padding: 1.4rem;
}


.story-time {
    font-size: .78rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}


.story-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.2;
    margin: .6rem 0 .7rem;
    color: var(--ink);
}


.story-content p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.75;
    margin: 0;
}


/* ==========================================================
   REPORT SECTION (Denuncias)
========================================================== */

.report-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(246, 242, 232, .90));
}


.report-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}


.report-layout h2 {
    margin: 0 0 1.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--brand-2);
}


.report-layout p {
    max-width: 600px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}


.report-stats {
    display: grid;
    gap: 1px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--line);
}


.stat {
    padding: 1.6rem 1.8rem;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.stat strong {
    font-size: 2.6rem;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--brand);
    line-height: 1;
}


.stat span {
    font-size: .82rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}


/* ==========================================================
   TALENTO
========================================================== */

.talent-section {
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 50%, rgba(0, 87, 184, .08), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 242, 232, .90));
}


.talent-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
}


.talent-copy h2 {
    margin: 0 0 1.1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.9vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--brand-2);
}


.talent-copy p {
    max-width: 600px;
    color: var(--ink-soft);
    font-size: 1.02rem;
    margin-bottom: 1.05rem;
    line-height: 1.7;
}


.talent-copy p:last-of-type {
    margin-bottom: 2rem;
}


.talent-media img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}


.talent-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}


/* Contador de profesionales (reutiliza el estilo de las estadÃ­sticas) */
.talent-stats {
    max-width: 430px;
    margin: 0 0 1.6rem;
}


.talent-stats .stat {
    gap: .4rem 1rem;
    flex-wrap: wrap;
}


/* ==========================================================
   PARTICIPATION
========================================================== */

.participation-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 242, 232, .90));
    color: var(--ink);
}


.participation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}


.participation-card {
    position: relative;
    min-height: 330px;
    padding: 2.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}


.participation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(10, 28, 56, .18);
}


.participation-number {
    font-size: .82rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: .12em;
}


.participation-card h3 {
    margin-top: auto;
    margin-bottom: .75rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    letter-spacing: -.04em;
    color: var(--ink);
    flex: 1;
    display: flex;
    align-items: flex-end;
}


.participation-card p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}


.card-arrow {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    font-size: 1.8rem;
    color: var(--brand);
}


/* ==========================================================
   ORGANIZATION
========================================================== */

.organization-section {
    background:
        radial-gradient(circle at 12% 30%, rgba(244, 195, 0, .16), transparent 34%),
        radial-gradient(circle at 92% 22%, rgba(0, 87, 184, .10), transparent 30%),
        radial-gradient(circle at 78% 82%, rgba(215, 25, 32, .05), transparent 26%),
        var(--surface);
}


.organization-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}


.organization-medallion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}


.eyebrow--gold {
    background: rgba(244, 195, 0, .18);
    color: #8a6d00;
}


.organization-layout h2 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--brand-2);
}


.organization-logo {
    width: clamp(252px, 34vw, 344px);
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(10, 28, 56, .22);
    justify-self: center;
}


.organization-layout p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
    line-height: 1.8;
}


.organization-copy .btn {
    margin-top: .4rem;
}


.organization-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.7rem;
}


.organization-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .5rem 1.05rem;
    background: rgba(0, 87, 184, .08);
    border: 1px solid rgba(0, 87, 184, .22);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}


.organization-chip:hover {
    background: rgba(0, 87, 184, .14);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 87, 184, .15);
}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
    padding: 2rem 0 3rem;
}


.footer-card {
    display: grid;
    gap: 2rem;
    padding: 2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(247, 243, 233, .95));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}


.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}


.site-footer p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.75;
}


.footer-copy {
    color: var(--ink-soft);
    font-size: .85rem;
}


.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    margin-bottom: 1rem;
}


.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink-soft);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}


.footer-contact-item:hover {
    color: var(--brand);
}


/* ==========================================================
   PAGE HERO (Subpages)
========================================================== */

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 5rem;
}


.page-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(90deg, rgba(9, 18, 34, .94) 0%, rgba(9, 18, 34, .70) 50%, rgba(9, 18, 34, .85) 100%),
        url(../images/bandera2.jpg);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}


.page-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(244, 195, 0, .18), transparent 24%),
        radial-gradient(circle at 88% 24%, rgba(0, 87, 184, .14), transparent 20%);
    z-index: 1;
}


.page-hero-content {
    position: relative;
    z-index: 2;
}


.page-hero .eyebrow {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}


.page-hero h1 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.04em;
}


.page-hero h1 strong {
    color: var(--gold);
}


.page-hero-lead {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 1.08rem;
    line-height: 1.75;
}


.page-hero--center .page-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.page-hero--center .page-hero-content h1 {
    text-align: center;
}


.page-hero--center .page-hero-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 1150px;
    font-size: 1.12rem;
}


/* ==========================================================
   FORM DENUNCIA
========================================================== */

.form-section {
    padding-top: 4rem;
    padding-bottom: 5rem;
}


.form-layout {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 2.5rem;
    align-items: start;
}


.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}


/* Notice (anonimato) */
.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 87, 184, .06), rgba(0, 87, 184, .02));
    border: 1px solid rgba(0, 87, 184, .12);
    margin-bottom: 2rem;
}


.form-notice-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
}


.form-notice strong {
    display: block;
    margin-bottom: .2rem;
    font-size: .95rem;
    color: var(--brand);
}


.form-notice p {
    margin: 0;
    font-size: .88rem;
    color: var(--ink-soft);
    line-height: 1.6;
}


/* Groups */
.form-group {
    display: grid;
    gap: .45rem;
    margin-bottom: 1.5rem;
}


.form-group--full {
    grid-column: 1 / -1;
}


.form-group label {
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
}


.form-hint {
    font-size: .85rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: .4rem;
    display: block;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid rgba(0, 55, 130, .14);
    border-radius: var(--radius-sm);
    padding: .9rem 1rem;
    background: #ffffffeb;
    color: var(--ink);
    font-size: .98rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(0, 87, 184, .35);
    box-shadow: 0 0 0 3px rgba(0, 87, 184, .08);
}


.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.7;
}


.form-counter {
    font-size: .8rem;
    color: var(--ink-soft);
    text-align: right;
    display: block;
    margin-top: .3rem;
}


/* Rows */
.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


.form-row--3 {
    grid-template-columns: repeat(3, 1fr);
}


/* Subsection header */
.form-subsection-header {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(244, 195, 0, .08), rgba(244, 195, 0, .03));
    border: 1px solid rgba(244, 195, 0, .15);
    margin-bottom: .5rem;
}


/* Personas dinÃ¡micas */
.persona-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem .2rem;
    background: #ffffff70;
    margin-bottom: 1rem;
}


.persona-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .4rem;
}


.persona-block-title {
    font-weight: 700;
    font-size: .92rem;
    color: var(--brand);
}


.persona-remove {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 999px;
    background: rgba(215, 25, 32, .08);
    color: var(--red);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}


.persona-remove:hover {
    background: rgba(215, 25, 32, .16);
}


.btn-persona-add {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 2px dashed rgba(0, 87, 184, .25);
    border-radius: 999px;
    padding: .7rem 1.2rem;
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}


.btn-persona-add:hover {
    border-color: var(--brand);
    background: rgba(0, 87, 184, .05);
    transform: translateY(-1px);
}


.add-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}


.form-subsection-title {
    display: block;
    font-weight: 700;
    font-size: .98rem;
    color: var(--ink);
    margin-bottom: .2rem;
}


.form-subsection-note {
    font-size: .84rem;
    color: var(--ink-soft);
    line-height: 1.6;
}


/* File upload */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(0, 55, 130, .18);
    border-radius: var(--radius-sm);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    background: #ffffff80;
}


.file-upload-area:hover,
.file-upload-area.is-dragover {
    border-color: var(--brand);
    background: rgba(0, 87, 184, .04);
}


.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


.file-upload-content {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}


.file-upload-content svg {
    color: var(--brand);
    opacity: .6;
}


.file-upload-text {
    font-size: .95rem;
    color: var(--ink-soft);
}


.file-upload-text strong {
    color: var(--brand);
}


.file-upload-hint {
    font-size: .8rem;
    color: var(--ink-soft);
    opacity: .7;
}


/* File list */
.file-list {
    display: grid;
    gap: .5rem;
    margin-top: .8rem;
}


.file-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .9rem;
    border-radius: 12px;
    background: rgba(0, 87, 184, .04);
    border: 1px solid rgba(0, 55, 130, .08);
    font-size: .88rem;
}


.file-item-icon {
    font-size: 1.1rem;
}


.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-weight: 600;
}


.file-item-size {
    flex-shrink: 0;
    color: var(--ink-soft);
    font-size: .8rem;
}


.file-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 999px;
    background: rgba(215, 25, 32, .08);
    color: var(--red);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}


.file-item-remove:hover {
    background: rgba(215, 25, 32, .16);
}


/* Form actions */
.form-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: .5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}


.form-actions .btn {
    flex-shrink: 0;
}


.form-actions-note {
    font-size: .85rem;
    color: var(--ink-soft);
}


/* Sidebar */
.form-sidebar {
    display: grid;
    gap: 1.25rem;
    position: sticky;
    top: 6rem;
}


.sidebar-card {
    padding: 1.6rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}


.sidebar-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    margin-bottom: 1rem;
}


.sidebar-card h3 {
    margin: 0 0 .6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.25;
}


.sidebar-card p {
    margin: 0 0 1.2rem;
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.7;
}


.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.2rem;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    transition: transform var(--transition), box-shadow var(--transition);
}


.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, .30);
}


/* Tips */
.sidebar-card--tips {
    background: linear-gradient(135deg, rgba(0, 87, 184, .04), rgba(244, 195, 0, .03));
    border-color: rgba(0, 87, 184, .10);
}


.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .85rem;
}


.tips-list li {
    padding-left: 1.1rem;
    position: relative;
    font-size: .9rem;
    color: var(--ink-soft);
    line-height: 1.65;
}


.tips-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--gold);
}


.tips-list li strong {
    display: block;
    color: var(--ink);
    margin-bottom: .1rem;
}


/* Nav active */
.main-nav a.active {
    background: rgba(0, 87, 184, .10);
    color: var(--brand);
    font-weight: 700;
}


/* ==========================================================
   QUIÃ‰NES SOMOS
========================================================== */

.about-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 242, 232, .90));
}


.about-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fffffff5, #f7f3e9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}


.about-org-name {
    margin: 0 auto 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--brand);
    text-align: center;
    max-width: 800px;
}


.about-lead {
    margin: 0 0 2rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.5;
    letter-spacing: -.02em;
    color: var(--brand-2);
}


.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(244, 195, 0, .10), rgba(244, 195, 0, .03));
    border: 1px solid rgba(244, 195, 0, .18);
    margin-bottom: 1.5rem;
}


.about-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
}


.about-feature h3 {
    margin: 0 0 .3rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    color: var(--ink);
}


.about-feature p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.2rem;
    line-height: 1.7;
}


.about-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-sm);
    background: rgba(215, 25, 32, .05);
    border: 1px solid rgba(215, 25, 32, .12);
}


.about-note strong {
    flex-shrink: 0;
    color: var(--red);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}


.about-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.6;
}


/* ==========================================================
   MISIÃ“N / VISIÃ“N
========================================================== */

.mission-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 242, 232, .90));
}


.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}


.mission-card {
    padding: 2.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fffffff5, #f7f3e9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}


.mission-card--vision {
    background: linear-gradient(135deg, #173f90f5, #0d2a52fa);
    color: #fff;
    border: none;
}


.mission-label {
    display: inline-block;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: rgba(0, 87, 184, .10);
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 1.5rem;
}


.mission-label--vision {
    background: rgba(255, 255, 255, .14);
    color: var(--gold);
}


.mission-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    margin-bottom: 1.5rem;
}


.mission-card--vision .mission-icon {
    background: linear-gradient(135deg, var(--gold), #d4a800);
    color: #1b1f29;
}


.mission-card h2 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--brand-2);
}


.mission-card--vision h2 {
    color: #fff;
}


.mission-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.03rem;
    line-height: 1.8;
}


.mission-card--vision p {
    color: #ffffff;
    font-weight: 400;
}


/* ==========================================================
   OBJETIVOS
========================================================== */

.objectives-section {
    background: var(--surface);
}


.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}


.objective-card {
    position: relative;
    padding: 1.8rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffffeb, #f6f2e8c7);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}


.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(10, 28, 56, .16);
}


.objective-number {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(0, 87, 184, .08);
    line-height: 1;
}


.objective-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), #ffd633);
    color: #1b1f29;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 22px rgba(244, 195, 0, .30);
}


.objective-card h3 {
    margin: 0 0 .6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1.25;
}


.objective-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.7;
}


/* ==========================================================
   VALORES
========================================================== */

.values-section,
.comunicados-section {
    background: linear-gradient(135deg, #071529fa, #0d2a52f0);
    color: #fff;
}


.values-section .eyebrow,
.comunicados-section .eyebrow {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}


.values-section .section-heading h2,
.comunicados-section .section-heading h2 {
    color: #fff;
}


.values-section .section-heading p,
.comunicados-section .section-heading p {
    color: rgba(255, 255, 255, .80);
}


.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}


.value-item {
    padding: 1.8rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    transition: background var(--transition), transform var(--transition);
}


.value-item:hover {
    background: rgba(255, 255, 255, .10);
    transform: translateY(-4px);
}


.value-letter {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), #d4a800);
    color: #1b1f29;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}


.value-item h3 {
    margin: 0 0 .5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    color: #fff;
}


.value-item p {
    margin: 0;
    color: rgba(255, 255, 255, .80);
    font-size: .95rem;
    line-height: 1.7;
}


/* ==========================================================
   COMUNICADOS
========================================================== */

.comunicados-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}


.comunicado-card {
    display: flex;
    flex-direction: column;
    padding: 1.8rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    transition: background var(--transition), transform var(--transition);
}


.comunicado-card:hover {
    background: rgba(255, 255, 255, .10);
    transform: translateY(-4px);
}


.comunicado-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.1rem;
}


.comunicado-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .3rem .7rem;
    background: linear-gradient(135deg, var(--gold), #d4a800);
    color: #1b1f29;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}


.comunicado-date {
    color: rgba(255, 255, 255, .65);
    font-size: .78rem;
    text-align: right;
}


.comunicado-card h3 {
    margin: 0 0 .6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
    color: #fff;
    line-height: 1.3;
}


.comunicado-card > p {
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, .80);
    font-size: .92rem;
    line-height: 1.7;
}


.comunicado-firma {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    gap: .9rem;
}


.comunicado-firma-svg {
    width: 64px;
    height: 30px;
    color: rgba(255, 255, 255, .72);
    flex-shrink: 0;
}


.comunicado-firma-copy {
    line-height: 1.35;
    min-width: 0;
}


.comunicado-firma-nombre {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: .98rem;
    color: #fff;
}


.comunicado-firma-cargo {
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}


.comunicados-foot {
    margin-top: 2.5rem;
    text-align: center;
}


.comunicado-btn {
    margin-top: 1.2rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .55rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .30);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    transition: background var(--transition), border-color var(--transition);
}


.comunicado-btn:hover {
    background: rgba(255, 255, 255, .10);
    border-color: #fff;
}


/* Comunicados â€” carrusel dinÃ¡mico (portada) */
.comunicados-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.7rem;
}


.comunicados-carousel-head h3 {
    margin: .4rem 0 0;
    font-size: 1.15rem;
    color: #fff;
}


.comunicados-section .carousel-nav {
    display: flex;
    gap: .5rem;
}


.comunicados-section .carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}


.comunicados-section .carousel-arrow:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}


.comunicado-card--carrusel {
    flex: 0 0 330px;
    max-width: 330px;
    scroll-snap-align: start;
    text-align: left;
    padding: 0;
    overflow: hidden;
}


.comunicado-card--carrusel .report-card-media {
    aspect-ratio: auto;
    height: 180px;
}


.comunicado-card-body {
    padding: .95rem 1.1rem .7rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}


.comunicado-card--carrusel .report-card-date {
    color: rgba(255, 255, 255, .62);
}


.comunicado-card--carrusel h3 {
    margin: 0;
    font-size: .98rem;
    line-height: 1.3;
}


.comunicado-card-body p {
    margin: 0;
    color: rgba(255, 255, 255, .80);
    font-size: .86rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.comunicado-card--carrusel .comunicado-firma {
    margin-top: .15rem;
    padding-top: .7rem;
}


.comunicado-card--carrusel .comunicado-firma-img {
    width: 130px;
    max-height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}


.comunicado-card--carrusel .comunicado-btn {
    margin: auto 1.1rem 1.1rem;
    align-self: stretch;
    justify-content: center;
}


.comunicados-section .carousel-empty {
    width: 100%;
    border-color: rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .70);
    background: rgba(255, 255, 255, .04);
}


/* ==========================================================
   CONTACTO
========================================================== */

.contact-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 242, 232, .90));
}


.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}


.contact-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffffeb, #f6f2e8c7);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}


.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(10, 28, 56, .16);
}


.contact-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    margin-bottom: 1.2rem;
}


.contact-icon--whatsapp {
    background: #25D366;
}


.contact-icon--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}


.contact-icon--tiktok {
    background: #010101;
}


.contact-icon--facebook {
    background: #1877F2;
}


.contact-icon--youtube {
    background: #FF0000;
}


.contact-card h3 {
    margin: 0 0 .6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1.25;
}


.contact-card p {
    margin: 0 0 1.2rem;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.7;
}


.contact-link {
    margin-top: auto;
    color: var(--brand);
    font-weight: 700;
    font-size: .9rem;
}


/* ==========================================================
   BOTÃ“N FLOTANTE DE TRADUCCIÃ“N ES â‡„ EN
========================================================== */

#trs-btn {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 900;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(244, 195, 0, .85);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 14px 34px -10px rgba(10, 28, 56, .55);
    transition: transform .2s ease, box-shadow .2s ease;
}


#trs-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(244, 195, 0, .45);
    animation: trs-pulse 2.6s ease-out infinite;
}


#trs-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 16px 40px -10px rgba(244, 195, 0, .35);
}


@keyframes trs-pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 195, 0, .45); }
    70% { box-shadow: 0 0 0 14px rgba(244, 195, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 195, 0, 0); }
}


@media (max-width: 640px) {
    #trs-btn {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
        font-size: .95rem;
    }
}


/* ==========================================================
   BOTÃ“N FLOTANTE DE WHATSAPP (ARRIBA DEL TRADUCTOR)
========================================================== */

.btn-whatsapp-float {
    position: fixed;
    right: 1.4rem;
    bottom: calc(1.4rem + 66px);
    z-index: 899;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 14px 34px -10px rgba(18, 140, 86, .6);
    transition: transform .2s ease, box-shadow .2s ease;
}


.btn-whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .45);
    animation: trs-pulse 2.6s ease-out infinite;
}


.btn-whatsapp-float:hover {
    transform: scale(1.07);
    box-shadow: 0 16px 40px -10px rgba(37, 211, 102, .55);
}


.btn-whatsapp-float svg {
    display: block;
}


@media (max-width: 640px) {
    .btn-whatsapp-float {
        right: 1rem;
        bottom: calc(1rem + 60px);
        width: 52px;
        height: 52px;
    }
}


/* ==========================================================
   ALIADOS DE LA ORGANIZACIÃ“N
========================================================== */

.ally-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1076px;
    margin: 3rem auto 0;
}


/* Tarjeta del aliado con la misma estructura que la de los presos
   políticos: foto grande arriba y contenido abajo. Conserva la
   identidad azul de la organización. */
.ally-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fffffff8, #f7f3ea);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}


.ally-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(10, 28, 56, .18);
}


/* Foto cuadrada arriba, con la franja dorada del encabezado. */
.ally-mini-foto {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(150deg, var(--brand), var(--brand-2));
    overflow: hidden;
}


.ally-mini-foto::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #d4a800);
}


.ally-mini-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .35s ease;
}


.ally-mini:hover .ally-mini-foto img {
    transform: scale(1.04);
}


.ally-mini-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.3rem 1.4rem 1.45rem;
}


.ally-mini-badge {
    align-self: flex-start;
    padding: .3rem .62rem;
    margin-bottom: .7rem;
    border-radius: 999px;
    background: rgba(0, 87, 184, .1);
    color: var(--brand);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.ally-mini-name {
    margin: 0 0 .6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--brand-2);
}


.ally-mini-rol {
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.6;
}


/* El botón se empuja al fondo para que todas las tarjetas dejen el
   "Ver perfil" a la misma altura. */
.ally-mini .btn-ally {
    margin-top: auto;
    align-self: flex-start;
    min-width: 0;
    min-height: 38px;
    padding: .4rem 1.2rem;
    font-size: .82rem;
}


/* Modal â€” Perfil del aliado (tipografÃ­a de la reseÃ±a) */
.ally-modal-bio {
    margin-top: .35rem;
}


.ally-modal-bio p {
    white-space: pre-line;
}


.ally-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}


.ally-social-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand-2);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}


.ally-social-link:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 12px 24px -14px rgba(0, 87, 184, .5);
}


.ally-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}


.ally-social-icon svg {
    width: 20px;
    height: 20px;
}


.ally-social-link--instagram .ally-social-icon {
    color: #d62976;
}


.ally-social-link--linkedin .ally-social-icon {
    color: #0a66c2;
}


.ally-social-link--web .ally-social-icon {
    color: var(--brand);
}


@media (max-width: 1024px) {

    .ally-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 830px;
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 560px) {

    .ally-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 440px;
        gap: 1.25rem;
    }
}


/* ==========================================================
   ORGANIZACIONES INTERNACIONALES (carrusel de logos)
========================================================== */

.orgs-section {
    background:
        radial-gradient(circle at 88% 12%, rgba(244, 195, 0, .12), transparent 46%),
        linear-gradient(180deg, #ffffff, #f4f7fc);
}


.orgs-section .section-heading h2 {
    color: var(--brand-2);
}


.orgs-section .section-heading p {
    color: var(--ink-soft);
}


.orgs-section .eyebrow--soft {
    background: rgba(0, 87, 184, .12);
    border: 1px solid rgba(0, 87, 184, .18);
    color: var(--brand);
}


.orgs-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 3.5rem 0 1.5rem;
}


.orgs-carousel-head h3 {
    margin: .4rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--brand-2);
    letter-spacing: -.02em;
}


.orgs-section .carousel-arrow {
    border-color: var(--line);
    background: var(--surface);
    color: var(--brand);
}


.orgs-section .carousel-arrow:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}


.orgs-track {
    align-items: stretch;
}


.orgs-card {
    position: relative;
    flex: 0 0 260px;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: 1.6rem 1.3rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #ffffff, #f7f9fd);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}


.orgs-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
}


.orgs-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 87, 184, .35);
    box-shadow: 0 24px 50px -20px rgba(0, 87, 184, .45);
}


.orgs-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 auto;
    padding: .4rem;
    min-height: 104px;
}


/* Todos los logos se dibujan dentro de la MISMA caja (el ancho de la tarjeta
   por 104 px de alto) y se centran con "object-fit: contain".

   Antes cada logo se mostraba a su tamaÃ±o natural con un tope de 108 px de
   alto, asi que un logotipo cuadrado llenaba la caja, uno vertical se
   estrechaba y uno horizontal se veia pequeno: ninguno parecia del mismo
   tamano. "contain" conserva la proporcion (nada se deforma) y al compartir
   caja todos quedan centrados sobre el mismo eje vertical. */
.orgs-card-logo img {
    width: 100%;
    height: 104px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 16px rgba(6, 22, 48, .12));
}


.orgs-card-name {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand-2);
    text-align: center;
    line-height: 1.25;
}


@media (max-width: 640px) {

    .orgs-card {
        flex-basis: 210px;
        max-width: 210px;
    }

    .orgs-card-logo img {
        height: 88px;
    }
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

    .report-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .talent-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ally-inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .ally-left {
        align-items: flex-start;
    }

    .organization-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .form-sidebar {
        position: static;
    }

    .mission-grid,
    .objectives-grid,
    .values-grid,
    .comunicados-grid {
        grid-template-columns: 1fr;
    }


    /* Las redes (Facebook, Instagram, TikTok y YouTube) van dos en
       fila en tablet, para que no queden cuatro tarjetas estrechas
       ni una sola suelta en la segunda fila. */
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .participation-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: 56px;
        height: 56px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-copy {
        display: none;
    }

    .main-nav a {
        font-size: .9rem;
    }

    .header-actions .btn {
        padding: .5rem 1rem;
        font-size: .85rem;
    }
}


@media (max-width: 820px) {

    .main-nav {
        display: none;
    }

    .participation-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .report-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .talent-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .ally-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .organization-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-avatar {
        margin: 0 auto;
    }

    .modal-facts {
        text-align: left;
    }

    .form-row--3,
    .form-row--2 {
        grid-template-columns: 1fr;
    }

    .form-radio-group,
    .docs-uploads {
        grid-template-columns: 1fr;
    }

    .video-card {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}
@media (max-width: 640px) {

    .section {
        padding: 4rem 0;
    }

    .container {
        width: min(
            calc(100% - 1.5rem),
            var(--container)
        );
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        min-width: 0;
    }

    .header-actions .login-link {
        display: none;
    }

    .ally-card {
        padding: 2rem 1.4rem;
    }

    .ally-inner {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .ally-left {
        align-items: flex-start;
    }

    .ally-emblem {
        width: 84px;
        height: 84px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-row--3 {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-enlaces {
        grid-template-columns: repeat(2, minmax(0, 300px));
    }

    .modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-avatar {
        margin: 0 auto;
    }

    .modal-facts {
        text-align: left;
    }

    .form-row--3 {
        grid-template-columns: 1fr;
    }

    .form-row--2 {
        grid-template-columns: 1fr;
    }

    .form-radio-group {
        grid-template-columns: 1fr;
    }

    .docs-uploads {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .video-card {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}


/* ==========================================================
   MIEMBROS â€” GRID DE LÃDERES
========================================================== */

#enlaces {
    padding-top: 1rem;
}


.team-section {
    background: var(--surface);
}


.team-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(246, 242, 232, .90));
}


.team-section .section-heading p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}


.team-section .section-heading.centered p {
    text-align: center;
}


.member-grid {
    display: grid;
    gap: 1.75rem;
    margin-top: 3rem;
}


.grid-primary {
    grid-template-columns: repeat(3, 1fr);
}


.grid-secondary {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}


.member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fffffff8, #f8f4ea);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}


.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px -18px rgba(0, 87, 184, .30);
}


.member-photo {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--brand), var(--gold), var(--red));
    margin-bottom: 1.25rem;
}


.member-photo img,
.member-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}


.member-avatar {
    background: linear-gradient(160deg, var(--brand-2), var(--brand));
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: .02em;
}


.member-star {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #e0ad00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(244, 195, 0, .35);
}


.member-name {
    margin: 0 0 .3rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    color: var(--brand-2);
    line-height: 1.2;
}


.member-rank {
    margin: 0 0 .4rem;
    color: var(--ink-soft);
    font-size: .9rem;
}


.member-role {
    display: inline-block;
    margin-bottom: 1.4rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(0, 87, 184, .10);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}


.member-card .btn-member {
    margin-top: auto;
    min-height: 40px;
    min-width: 0;
    padding: .5rem 1.4rem;
    font-size: .9rem;
}


.member-card.card-mini .btn-member {
    background: transparent;
    color: var(--brand);
    border: 1px solid rgba(0, 87, 184, .40);
}


.member-card.card-mini .btn-member:hover {
    background: rgba(0, 87, 184, .08);
    border-color: var(--brand);
}


.member-card.card-mini .member-photo {
    width: 96px;
    height: 96px;
}


.member-card.card-mini .member-avatar {
    font-size: 1.8rem;
}


.card-mini {
    padding: 1.75rem 1.25rem;
}


/* ==========================================================
   MIEMBROS â€” ORGANIGRAMA
========================================================== */

.org-stem {
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(246, 242, 232, .90));
    padding-top: 1rem;
    text-align: center;
}


.org-stem::before {
    content: "";
    display: block;
    width: 2px;
    height: 3rem;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(0, 87, 184, .20), rgba(0, 87, 184, .55));
}


.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: var(--surface);
    padding-top: .5rem;
    padding-bottom: 0;
}


.org-branch-line {
    width: 2px;
    height: 2.5rem;
    background: linear-gradient(180deg, rgba(0, 87, 184, .55), rgba(0, 87, 184, .20));
}


.org-branch-line--down {
    background: linear-gradient(180deg, rgba(0, 87, 184, .20), rgba(0, 87, 184, .55));
}


.org-branch-tag {
    display: inline-flex;
    border-radius: 999px;
    padding: .35rem .9rem;
    background: rgba(0, 87, 184, .10);
    border: 1px solid rgba(0, 87, 184, .22);
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}


.grid-presidencia {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 2.5rem;
}


.grid-direccion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}


/* Mandos superiores (Vicepresidente y Secretario General): una tarjeta
   centrada por fila, por encima de las secretarÃ­as en filas de dos. */
.member-card--mando {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(430px, 100%);
}


.grid-enlaces {
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
}


.member-card--lead {
    width: min(430px, 100%);
    padding: 3rem 2.25rem;
    background: linear-gradient(180deg, #ffffff, #eef4fc);
    border-color: rgba(0, 87, 184, .25);
    box-shadow: 0 30px 60px -24px rgba(0, 87, 184, .28);
}


.member-card--lead .member-photo {
    width: 172px;
    height: 172px;
}


.member-card--lead .member-avatar {
    font-size: 3rem;
}


.member-card--lead .member-name {
    font-size: 1.7rem;
}


/* ==========================================================
   MIEMBROS â€” CTA
========================================================== */

.cta-section {
    background: var(--surface);
    padding-bottom: 5rem;
}


.cta-box {
    text-align: center;
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(0, 61, 130, .96), rgba(0, 87, 184, .92)),
        url(../images/bandera.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: var(--shadow);
}


.cta-box h2 {
    margin: 0 0 .9rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    color: #fff;
}


.cta-box p {
    max-width: 560px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
}


.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}


.btn-gold {
    background: linear-gradient(135deg, var(--gold), #e0ad00);
    color: #091222;
    box-shadow: 0 10px 24px -10px rgba(244, 195, 0, .6);
}


.btn-gold:hover {
    color: #091222;
}


.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
}


.btn-outline-light:hover {
    background: rgba(255, 255, 255, .10);
    border-color: #fff;
}


/* ==========================================================
   MIEMBROS â€” MODAL CONÃ“CEME
========================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(9, 18, 34, .72);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s ease;
}


.modal-overlay[hidden] {
    display: none;
}


.modal-overlay:not([hidden]) {
    opacity: 1;
}


.modal {
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #ffffff, #f7f3e9);
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px -20px rgba(9, 18, 34, .5);
    transform: translateY(12px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}


.modal-overlay:not([hidden]) .modal {
    transform: translateY(0);
    opacity: 1;
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(9, 18, 34, .08);
    color: var(--brand-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}


.modal-close:hover {
    background: var(--brand);
    color: #fff;
}


/* La foto (180 px) queda a la izquierda y el texto a la derecha. Con
   "align-items: center" el bloque de texto (cargo, nombre, rango) se centra
   verticalmente frente a la foto, en lugar de arrancar pegado arriba y dejar
   un hueco vacÃ­o debajo. En mÃ³vil el bloque pasa a una sola columna y esto no
   cambia nada. */
/* El retrato va arriba, junto al nombre, y se queda fijo al bajar.
   En una ficha corta da igual que estÃ© centrado; en las largas (las
   reseÃ±as de los presos polÃ­ticos, que tienen pÃ¡ginas enteras) evita
   que la foto quede flotando a media ficha, en medio del vacÃ­o. */
.modal-body {
    display: grid;
    grid-template-columns: 176px 1fr;
    align-items: start;
    gap: 1.6rem;
    padding: 2rem 2.2rem 2.2rem;
}


.modal-avatar {
    position: sticky;
    top: 0;
    width: 152px;
    height: 152px;
    border-radius: 18px;
    padding: 6px;
    background: linear-gradient(135deg, var(--brand), var(--gold), var(--red));
}


.modal-avatar img,
.modal-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    /* El retrato se recorta desde arriba: en las fotos
       verticales (hay varias en el sitio) el rostro queda
       en el tercio superior, y el recorte central lo
       partÃ­a. En las cuadradas y apaisadas no cambia nada. */
    object-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal-avatar span {
    background: linear-gradient(160deg, var(--brand-2), var(--brand));
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 700;
}


.modal-role {
    display: inline-block;
    margin-bottom: .6rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(244, 195, 0, .20);
    color: var(--brand-2);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}


.modal h2 {
    margin: 0 0 .3rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    color: var(--brand-2);
    line-height: 1.15;
}


.modal-rank {
    margin: 0 0 1.1rem;
    color: var(--brand);
    font-weight: 600;
}


.modal-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-bottom: 1.4rem;
}


.modal-fact {
    padding: .7rem .9rem;
    border-radius: 12px;
    background: rgba(0, 87, 184, .07);
    border-left: 3px solid var(--brand);
}


.modal-fact span {
    display: block;
    color: var(--ink-soft);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .15rem;
}


.modal-fact strong {
    color: var(--brand-2);
    font-size: .92rem;
}


.modal-resumen p {
    margin: 0 0 .95rem;
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: .98rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}


.modal-resumen p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   MODAL â€” REDES SOCIALES
========================================================== */

.modal-social {
    margin-top: 1.7rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .95rem;
}


.modal-social-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}


.modal-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}


.modal-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
}


.modal-social-icon:hover {
    transform: translateY(-3px);
}


.modal-social-icon svg {
    width: 22px;
    height: 22px;
}


.modal-social--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 22px -8px rgba(220, 39, 67, .5);
}


.modal-social--instagram:hover {
    box-shadow: 0 16px 30px -8px rgba(220, 39, 67, .55);
}


.modal-social--tiktok {
    background: #010101;
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .40);
}


.modal-social--tiktok:hover {
    box-shadow: 0 16px 30px -8px rgba(0, 0, 0, .50);
}


.modal-social--facebook {
    background: #1877f2;
    box-shadow: 0 10px 22px -8px rgba(24, 119, 242, .50);
}


.modal-social--facebook:hover {
    box-shadow: 0 16px 30px -8px rgba(24, 119, 242, .55);
}


.modal-social-icon[hidden] {
    display: none;
}


@media (max-width: 900px) {

    .grid-primary {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-direccion {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-enlaces {
        grid-template-columns: repeat(2, minmax(0, 420px));
        justify-content: center;
    }

    .modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-avatar {
        margin: 0 auto;
    }

    .modal-facts {
        text-align: left;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .report-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .talent-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .ally-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .organization-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .video-card {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}


@media (max-width: 560px) {

    .grid-primary,
    .grid-secondary,
    .grid-direccion,
    .grid-enlaces {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

}


/* ==========================================================
   BANCO DE TALENTO â€” FORMULARIO
========================================================== */

.form-row--2 {
    grid-template-columns: 1fr 1fr;
}


.form-row[hidden] {
    display: none;
}


.form-section-title {
    margin: .5rem 0 1.1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--brand);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    color: var(--brand-2);
    font-weight: 700;
}


/* Radios de nacionalidad */
.form-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: .5rem;
}


.form-radio {
    position: relative;
    cursor: pointer;
}


.form-radio input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    cursor: pointer;
    margin: 0;
}


.form-radio-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.15rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--line);
    background: #ffffff90;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}


.form-radio-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--brand-2);
}


.form-radio-desc {
    font-size: .82rem;
    color: var(--ink-soft);
    line-height: 1.4;
}


.form-radio input:checked + .form-radio-card {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(0, 87, 184, .08), rgba(0, 87, 184, .02));
    box-shadow: 0 6px 18px -8px rgba(0, 87, 184, .4);
}


.form-radio input:focus-visible + .form-radio-card {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}


.form-radio input:checked + .form-radio-card .form-radio-title {
    color: var(--brand);
}


/* Panel de documentos (fondo oscuro) */
.docs-panel {
    margin: 1.5rem 0 2rem;
    padding: 1.6rem;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 15% 10%, rgba(244, 195, 0, .10), transparent 30%),
        linear-gradient(160deg, #0d1726 0%, #0a1220 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    box-shadow: var(--shadow);
}


.docs-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
}


.docs-panel-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(244, 195, 0, .25), rgba(244, 195, 0, .05));
    color: var(--gold);
    border: 1px solid rgba(244, 195, 0, .25);
}


.docs-panel-head h3 {
    margin: 0 0 .3rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    color: #fff;
}


.docs-panel-head p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    line-height: 1.6;
}

/* Checklist inline: círculo/cuadrado junto al texto (coherente con identidad OVRISD) */
.form-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .5rem .25rem .5rem 2rem;
    cursor: pointer;
    line-height: 1.45;
}

.form-check input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.form-check .checkmark {
    position: absolute;
    left: 0;
    top: .4rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(20, 32, 51, .45);
    background: #fff;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.form-check input[type="checkbox"] + .checkmark {
    border-radius: 6px;
}

.form-check input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.form-check .checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.form-check input[type="checkbox"]:checked + .checkmark::after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check input[type="radio"]:checked + .checkmark::after {
    display: block;
    left: 50%;
    top: 50%;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.form-check input:checked + .checkmark {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 87, 184, .12);
}

.form-check input:focus-visible + .checkmark {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.form-check .label-text {
    color: var(--ink);
    font-weight: 600;
}

.form-check:hover .checkmark {
    border-color: var(--brand);
}


.docs-uploads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}


.docs-upload > label {
    display: block;
    margin-bottom: .3rem;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}


.file-upload-area--dark {
    border-color: rgba(244, 195, 0, .35);
    background: rgba(255, 255, 255, .04);
    padding: 1.6rem 1rem;
}


.file-upload-area--dark:hover,
.file-upload-area--dark.is-dragover {
    border-color: var(--gold);
    background: rgba(244, 195, 0, .08);
}


.file-upload-area--dark .file-upload-text {
    color: rgba(255, 255, 255, .85);
}


.file-upload-area--dark .file-upload-text strong {
    color: var(--gold);
}


.file-upload-area--dark .file-upload-hint {
    color: rgba(255, 255, 255, .6);
}


.file-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    margin-top: .5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    font-size: .88rem;
    color: rgba(255, 255, 255, .9);
}


.file-item-icon {
    font-size: 1rem;
}


.file-item-name {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.file-item-size {
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
}


.file-item-remove {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    font-size: .9rem;
}


.file-item-remove:hover {
    color: #fff;
}


@media (max-width: 760px) {

    .form-row--2,
    .form-radio-group,
    .docs-uploads {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .report-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .talent-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .ally-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .organization-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-avatar {
        margin: 0 auto;
    }

    .modal-facts {
        text-align: left;
    }

    .video-card {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}


/* ==========================================================
   LOGIN â€” INICIAR SESIÃ“N
========================================================== */

.login-link--active,
.login-link--active:hover {
    color: var(--brand);
    font-weight: 700;
}


.auth-hero-logo {
    width: clamp(100px, 14vw, 150px);
    height: auto;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--brand), var(--gold), var(--red));
    box-shadow: 0 12px 30px -10px rgba(0, 87, 184, .45);
    margin-bottom: 1.2rem;
}


.page-hero--compact {
    min-height: 300px;
    padding-top: 6rem;
    padding-bottom: 2rem;
}


.auth-section {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
    background: var(--surface);
}


.auth-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 2.5rem;
    align-items: start;
    justify-content: center;
}


.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}


/* Campo de contraseÃ±a con toggle */
.password-field {
    position: relative;
}


.password-field input {
    width: 100%;
    padding-right: 3rem;
}


.password-toggle {
    position: absolute;
    top: 50%;
    right: .4rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}


.password-toggle:hover {
    background: rgba(0, 87, 184, .08);
    color: var(--brand);
}


.password-toggle .icon-eye-off {
    display: none;
}


.password-toggle.is-visible .icon-eye {
    display: none;
}


.password-toggle.is-visible .icon-eye-off {
    display: block;
}


/* Opciones (recordar / olvidÃ©) */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .25rem 0 1.5rem;
}


.auth-checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: .92rem;
}


.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
}


.auth-forgot {
    color: var(--brand);
    font-size: .9rem;
    font-weight: 600;
}


.auth-forgot:hover {
    text-decoration: underline;
}


.auth-submit {
    width: 100%;
}


.auth-register {
    margin-top: 1.2rem;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--brand);
    border: 1px solid rgba(0, 87, 184, .40);
}


.btn-outline-secondary:hover {
    background: rgba(0, 87, 184, .08);
    border-color: var(--brand);
}


@media (max-width: 900px) {

    .auth-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

    .report-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .talent-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .ally-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .organization-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-avatar {
        margin: 0 auto;
    }

    .modal-facts {
        text-align: left;
    }

    .video-card {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
    }

}


/* ==========================================================
   ALERTAS DEL FORMULARIO DE DENUNCIA
========================================================== */

.form-alert {
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: .95rem;
    line-height: 1.6;
}


.form-alert strong {
    display: block;
    margin-bottom: .35rem;
}


.form-alert ul {
    margin: 0;
    padding-left: 1.2rem;
}


.form-alert--error {
    background: rgba(215, 25, 32, .08);
    border: 1px solid rgba(215, 25, 32, .35);
    color: #a3191d;
}


.form-alert--error strong {
    color: #a3191d;
}


.form-alert--warning {
    background: rgba(244, 195, 0, .12);
    border: 1px solid rgba(244, 195, 0, .5);
    color: #8a6d00;
}


.form-alert--warning strong {
    color: #8a6d00;
}


/* ==========================================================
   CARRUSEL DE DENUNCIAS (index)
========================================================== */

.report-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 3.5rem 0 1.5rem;
}


.report-carousel-head h3 {
    margin: .4rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--brand-2);
    letter-spacing: -.02em;
}


.carousel-nav {
    display: flex;
    gap: .6rem;
}


.carousel-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--brand);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}


.carousel-arrow:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}


.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--brand) transparent;
}


.carousel-track::-webkit-scrollbar {
    height: 8px;
}


.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0, 87, 184, .35);
    border-radius: 999px;
}


.carousel-track::-webkit-scrollbar-track {
    background: transparent;
}


.report-card {
    flex: 0 0 320px;
    max-width: 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}


.report-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px -18px rgba(0, 87, 184, .30);
}


.report-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1220;
}


.report-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.report-card-badge {
    position: absolute;
    top: .7rem;
    left: .7rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(9, 20, 34, .82);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}


.report-card-body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.report-card-date {
    font-size: .75rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}


.report-card-text {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: .93rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.report-card-link {
    margin-top: auto;
    color: var(--brand);
    font-size: .88rem;
    font-weight: 700;
}


.report-card:hover .report-card-link {
    text-decoration: underline;
}


.carousel-empty {
    grid-column: 1 / -1;
    padding: 2.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line);
    color: var(--ink-soft);
    background: #ffffff70;
}


/* ==========================================================
   VIDEOS â€” TESTIMONIOS Y ACCIONES (index)
========================================================== */

.video-section {
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 87, 184, .07), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 242, 232, .90));
    color: var(--ink);
    overflow: hidden;
}


.video-section .section-heading h2 {
    color: var(--brand-2);
}


.video-section .section-heading p {
    color: var(--ink-soft);
}


.video-section .eyebrow--soft {
    background: rgba(0, 87, 184, .12);
    border: 1px solid rgba(0, 87, 184, .18);
    color: var(--brand);
}


.video-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 3.5rem 0 1.5rem;
}


.video-carousel-head h3 {
    margin: .4rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--brand-2);
    letter-spacing: -.02em;
}


.video-section .carousel-arrow {
    border-color: var(--line);
    background: var(--surface);
    color: var(--brand);
}


.video-section .carousel-arrow:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}


.video-card {
    flex: 0 0 400px;
    max-width: 400px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}


.video-card:hover,
.video-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(0, 87, 184, .35);
    box-shadow: 0 22px 45px -18px rgba(0, 87, 184, .30);
    outline: none;
}


.video-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1220;
}


/* Aportes en video: tarjeta vertical tipo historia (9:16), igual que
   el reproductor. El selector con dos clases gana a las reglas de
   .video-card tambiÃ©n dentro de las consultas de medios. */
.video-card--story,
.carousel-track .video-card--story {
    flex: 0 0 250px;
    max-width: 250px;
}

.video-card--story .video-card-media,
.carousel-track .video-card--story .video-card-media {
    aspect-ratio: 9 / 16;
}

.video-card--story .video-play {
    width: 54px;
    height: 54px;
}

.video-card--story .video-play::after {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 14px;
}


.video-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}


/* Placeholder cuando el video no tiene miniatura disponible */
.video-card-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    /* Degradado de marca con brillo superior: se ve como una tarjeta
       disenada y no como una imagen que no cargo. */
    background:
        radial-gradient(115% 80% at 50% 0%, rgba(255, 255, 255, .10), transparent 62%),
        linear-gradient(158deg, #1d2a45 0%, #131f38 52%, #0c1526 100%);
    color: var(--gold);
}

.video-card-ph svg {
    width: 62px;
    height: 62px;
    opacity: .9;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}

/* Rótulo bajo el icono: deja claro que es un Reel de esa plataforma. */
.video-card-ph span {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .7;
}

.video-card-ph--youtube   { color: #ff6b6b; }
.video-card-ph--tiktok    { color: #25F4EE; }
.video-card-ph--instagram { color: #ff5c8a; }

/* Enlace de escape: si el reproductor embebido no carga (TikTok e Instagram
   limitan peticiones o el creador desactiva el embedding), el visitante
   siempre tiene una salida directa al video original. */
.video-owner-abrir {
    display: block;
    margin-top: 10px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--gold, #c4a532);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

.video-owner-abrir:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .34);
}


.video-card:hover .video-card-media img {
    transform: scale(1.05);
}


.video-badge {
    position: absolute;
    top: .7rem;
    left: .7rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(9, 20, 34, .82);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}


.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(244, 195, 0, .95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background var(--transition);
}


.video-play::after {
    content: "";
    margin-left: 4px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #08101f;
}


.video-card:hover .video-play {
    transform: scale(1.1);
}


.video-card-body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.video-card-body h4 {
    margin: 0 0 .45rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--brand-2);
}


.video-card-body p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.video-card-link {
    margin-top: auto;
    color: var(--brand);
    font-size: .88rem;
    font-weight: 700;
}


.video-card:hover .video-card-link {
    text-decoration: underline;
}


.video-empty {
    background: #ffffff70;
    border-color: var(--line);
    color: var(--ink-soft);
}


/* Reproductor de video dentro de la misma pÃ¡gina */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}


.video-modal[hidden] {
    display: none;
}


.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, .88);
    backdrop-filter: blur(4px);
}


.video-modal-box {
    position: relative;
    width: fit-content;
    max-width: 100%;
    border-radius: var(--radius-sm);
    background: #05080f;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .60);
    overflow: hidden;
    animation: videoModalIn .3s ease;
}


@keyframes videoModalIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}


.video-modal-close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(5, 8, 15, .85);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}


.video-modal-close:hover {
    background: var(--gold);
    color: #08101f;
    border-color: var(--gold);
}


/* Reproductor tipo "historia": vertical 9:16, se ve completo sin deslizar */
.video-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    /* El ancho toma el MENOR de tres limites: el maximo del reproductor,
       lo que deja la pantalla, y lo que cabe en el alto disponible
       (9/16 = 0.5625). Asi el 9:16 se respeta siempre y el video se ve
       completo, tanto en una pantalla grande como en un telefono. */
    width: min(440px, calc(100vw - 3rem), calc((100vh - 11rem) * .5625));
    height: auto;
    margin: 0 auto;
    background: #000;
}


.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Capa de respaldo: si el embed de TikTok o Instagram no responde (429/503),
   se ve la portada del video en lugar de un rectangulo negro. */
.video-frame-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0b1220;
}


/* Perfil del dueÃ±o, debajo del video */
.video-owner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: #05080f;
    color: #fff;
    text-decoration: none;
    transition: background var(--transition);
}

.video-owner:hover {
    background: rgba(255, 255, 255, .06);
}

.video-owner-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
}

.video-owner-icon svg {
    width: 22px;
    height: 22px;
}

.video-owner-icon--youtube {
    background: #ff0000;
}

.video-owner-icon--tiktok {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .35);
}

.video-owner-icon--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.video-owner-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.video-owner-name {
    font-weight: 700;
    font-size: .95rem;
}

.video-owner-sub {
    font-size: .75rem;
    color: rgba(255, 255, 255, .6);
}


/* ============================================================
   PROYECTO REPÃšBLICA
   Tarjeta azul (como la de aliados) con el logo en un marco
   cuadrado (como la foto de los presos polÃ­ticos).
   ============================================================ */
.proyecto-wrap {
    display: flex;
    justify-content: center;
}

.proyecto-card {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;   /* horizontal: logo | texto */
    gap: 2.2rem;
    align-items: center;
    text-align: left;
    width: min(980px, 100%);
    padding: 2rem 2.4rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.proyecto-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(320px 170px at 85% -18%, rgba(244, 195, 0, .22), transparent 65%);
}

.proyecto-card__logo {
    position: relative;
    width: 190px;
    aspect-ratio: 1 / 1;              /* cuadrado, como el de presos */
    margin-bottom: 1.3rem;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 34px rgba(3, 16, 36, .28);
    border: 3px solid var(--gold);
    overflow: hidden;
}

.proyecto-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.proyecto-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.proyecto-card__etiqueta {
    display: inline-block;
    padding: .28rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.proyecto-card__body h3 {
    margin: .7rem 0 .5rem;
    font-size: 1.55rem;
    color: #fff;
}

.proyecto-card__body p {
    margin: 0 0 1.2rem;
    color: rgba(255, 255, 255, .88);
    font-size: .875rem;
    line-height: 1.6;
}

.proyecto-card__btn {
    min-width: 0;
    padding: .7rem 1.6rem;
}

/* --- Visor del documento --- */
.proyecto-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.proyecto-modal[hidden] {
    display: none;
}

.proyecto-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, .90);
    backdrop-filter: blur(4px);
}

.proyecto-modal-box {
    position: relative;
    width: min(1100px, 100%);
    height: min(88vh, 900px);
    border-radius: var(--radius-sm);
    background: #05080f;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .60);
    overflow: hidden;
    animation: videoModalIn .3s ease;
}

.proyecto-modal-close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(5, 8, 15, .85);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.proyecto-modal-close:hover {
    background: var(--gold);
    color: #08101f;
    border-color: var(--gold);
}

.proyecto-modal-frame {
    width: 100%;
    height: calc(100% - 52px);
    position: relative;
    background: #14161a;
}

.proyecto-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Panel movil: en telefonos el iframe de PDF no es fiable, asi que se
   muestra este panel CLARO (no negro) con un boton dorado visible para
   abrir el documento en el lector nativo. Ocupa todo el frame. */
.proyecto-movil-enlace {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background: linear-gradient(160deg, #eef2f7 0%, #e2e8f0 100%);
}

.proyecto-movil-enlace[hidden] {
    display: none;
}

.proyecto-movil-caja {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.proyecto-movil-titulo {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0d1b2e;
    line-height: 1.3;
}

.proyecto-movil-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--gold, #c4a532);
    color: #10192b;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(4, 8, 16, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}

.proyecto-movil-btn:hover,
.proyecto-movil-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(4, 8, 16, .34);
}

.proyecto-movil-nota {
    margin: 18px 0 0;
    font-size: .82rem;
    color: #43536e;
    line-height: 1.5;
}


/* --- Selector de idioma dentro del visor --- */
.proyecto-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 52px;
    padding: 0 .7rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: #05080f;
}

.proyecto-lang {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}

/* Sin versión en inglés el selector se oculta (el JS marca hidden) */
.proyecto-lang[hidden] {
    display: none;
}

.proyecto-lang button {
    min-width: 46px;
    padding: .35rem .75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.proyecto-lang button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.proyecto-lang button.is-active {
    background: var(--gold);
    color: #08101f;
}

/* ============================================================
   ASISTENTE VIRTUAL
   Botón flotante encima del de WhatsApp + panel de conversación.
   ============================================================ */
#asistenteBtn {
    position: fixed;
    right: 1.4rem;
    bottom: calc(1.4rem + 132px);
    z-index: 898;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--gold);
    box-shadow: 0 14px 34px -10px rgba(10, 28, 56, .55);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Halo pulsante: llama la atención como el de WhatsApp, pero más discreto */
#asistenteBtn::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    pointer-events: none;
    animation: asistentePulso 2.6s ease-out infinite;
}

#asistenteBtn[aria-expanded="true"]::after {
    animation: none;
    opacity: 0;
}

@keyframes asistentePulso {
    0%   { transform: scale(.92); opacity: .75; }
    70%  { transform: scale(1.28); opacity: 0; }
    100% { transform: scale(1.28); opacity: 0; }
}

/* Puntos de "escribiendo" */
.asistente-typing-puntos {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.asistente-typing-puntos i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .35;
    animation: asistentePunto 1.2s ease-in-out infinite;
}

.asistente-typing-puntos i:nth-child(2) { animation-delay: .18s; }
.asistente-typing-puntos i:nth-child(3) { animation-delay: .36s; }

@keyframes asistentePunto {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30%           { opacity: 1;  transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    #asistenteBtn::after,
    .asistente-typing-puntos i {
        animation: none;
    }
}

#asistenteBtn svg {
    width: 26px;
    height: 26px;
}

#asistenteBtn:hover {
    transform: scale(1.06);
}

.asistente-panel {
    position: fixed;
    right: 1.4rem;
    bottom: calc(1.4rem + 200px);
    z-index: 901;
    width: min(360px, calc(100vw - 2.8rem));
    height: min(520px, calc(100vh - 15rem));
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(4, 12, 28, .35);
    overflow: hidden;
}

.asistente-panel[hidden] {
    display: none;
}

.asistente-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .8rem .9rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
}

.asistente-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    color: var(--gold);
    flex: 0 0 auto;
}

.asistente-avatar svg {
    width: 20px;
    height: 20px;
}

.asistente-id {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
}

.asistente-name {
    font-size: .95rem;
}

.asistente-sub {
    font-size: .68rem;
    color: rgba(255, 255, 255, .72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asistente-cerrar {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.asistente-cerrar:hover {
    background: var(--gold);
    color: #08101f;
}

.asistente-msgs {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: #f7f9fc;
}

.asistente-msg {
    max-width: 88%;
    padding: .6rem .75rem;
    border-radius: 14px;
    font-size: .86rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.asistente-msg--bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    color: var(--ink);
}

.asistente-msg--yo {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.asistente-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: .6rem .9rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.asistente-chip {
    padding: .35rem .7rem;
    border: 1px solid rgba(0, 87, 184, .35);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.asistente-chip:hover {
    background: var(--brand);
    color: #fff;
}

.asistente-chip--principal {
    background: var(--gold);
    border-color: var(--gold);
    color: #08101f;
}

.asistente-chip--principal:hover {
    background: #08101f;
    color: var(--gold);
}

.asistente-form {
    display: flex;
    gap: 8px;
    padding: .7rem .9rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.asistente-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    font-size: .86rem;
    color: var(--ink);
    background: #fbfcfe;
}

.asistente-input:focus {
    outline: 2px solid rgba(0, 87, 184, .35);
    outline-offset: 1px;
}

.asistente-enviar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}

.asistente-enviar svg {
    width: 18px;
    height: 18px;
}

.asistente-enviar:hover {
    background: var(--brand-2);
}

@media (max-width: 520px) {
    .asistente-panel {
        right: .8rem;
        left: .8rem;
        width: auto;
        height: min(70vh, 460px);
        bottom: calc(1.4rem + 120px);
    }
}

@media (max-width: 860px) {
    .proyecto-card {
        grid-template-columns: 1fr;      /* en mÃ³vil vuelve a una columna */
        text-align: center;
        padding: 1.7rem 1.3rem;
    }

    .proyecto-card__body {
        align-items: center;
    }

    .proyecto-card__logo {
        margin: 0 auto 1.1rem;
    }
}

@media (max-width: 760px) {
    .proyecto-card__logo {
        width: 140px;
    }

    .proyecto-modal-box {
        height: 92vh;
    }
}

@media (max-width: 860px) {

    .video-card {
        flex: 0 0 320px;
        max-width: 320px;
    }

}


/* ==========================================================
   VER DENUNCIA â€” DETALLE
========================================================== */

.detail-section {
    background: var(--surface);
}


.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}


.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}


.detail-block {
    padding: 1.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ffffff, #f8f4ea);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}


.detail-label {
    display: block;
    margin-bottom: .8rem;
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}


.detail-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.8;
    white-space: pre-wrap;
}


.detail-place {
    margin: 0;
    color: var(--brand-2);
    font-weight: 600;
    line-height: 1.6;
}


.detail-none {
    margin: 0;
    color: var(--ink-soft);
    font-style: italic;
}


/* GalerÃ­a de evidencia */
.evidence-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.evidence-item {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0a1220;
}


/* ---------------- ImÃ¡genes: muestran su tamaÃ±o natural ---------------- */
.evidence-item--image {
    display: inline-block;
    background: #0a1220;
}


.evidence-item--image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}


.evidence-item--image figcaption {
    padding: .55rem .75rem;
    background: #0a1220;
    color: #e7ecf2;
    font-size: .8rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---------------- Videos: ancho completo, alto segÃºn ratio ---------------- */
.evidence-item--video video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
    object-fit: contain;
}


.evidence-video-name {
    display: block;
    padding: .6rem .9rem;
    background: #0a1220;
    color: #e7ecf2;
    font-size: .85rem;
}


/* ---------------- PDF: visor adaptativo ---------------- */
.evidence-item--doc {
    background: #ffffff;
    border: 1px solid var(--line);
}


.evidence-pdf-frame {
    display: block;
    width: 100%;
    height: 82vh;
    min-height: 460px;
    border: 0;
    background: #fff;
}


.evidence-doc-name {
    display: block;
    padding: .6rem .9rem;
    background: #f8f4ea;
    color: var(--brand-2);
    font-size: .82rem;
    font-weight: 600;
    border-top: 1px solid var(--line);
}




/* Columna lateral */
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 100px;
}


.detail-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ffffff, #f8f4ea);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}


.person-detail {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
}


.person-detail:last-child {
    border-bottom: none;
}


.person-detail-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


.person-detail strong {
    display: block;
    color: var(--brand-2);
    font-size: .95rem;
}


.person-detail span {
    color: var(--ink-soft);
    font-size: .82rem;
}


.detail-card--meta .meta-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}


.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: .88rem;
}


.meta-list li:last-child {
    border-bottom: none;
}


.meta-list span {
    color: var(--ink-soft);
}


.meta-list strong {
    color: var(--brand-2);
    text-align: right;
}


.detail-note {
    padding: .9rem 1rem;
    border-radius: 12px;
    background: rgba(0, 87, 184, .07);
    color: var(--brand-2);
    font-size: .82rem;
    line-height: 1.5;
}


/* CTA */
.report-cta-section {
    padding: 1rem 0 5rem;
    background: var(--surface);
}


.report-cta-box {
    text-align: center;
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(0, 61, 130, .96), rgba(0, 87, 184, .92)),
        url(../images/bandera.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: var(--shadow);
}


.report-cta-box h2 {
    margin: 0 0 .8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
}


.report-cta-box p {
    max-width: 520px;
    margin: 0 auto 1.8rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
}


.notfound-box {
    max-width: 560px;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}


.notfound-box p {
    margin: 0 0 1.5rem;
    color: var(--ink-soft);
    line-height: 1.7;
}


@media (max-width: 900px) {

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

}


/* ==========================================================
   TELÃ‰FONO Y TABLETA â€” AJUSTES FINALES
   ==========================================================
   Este bloque va al final del archivo a propÃ³sito: asÃ­ gana
   contra las reglas anteriores que usan el mismo ancho, sin
   tener que reescribir una por una.

   ------------------------------------------------------------
   1) MENÃš DESPLEGABLE
   ------------------------------------------------------------
   Hasta ahora, a 820 px o menos la barra de enlaces se ocultaba
   por completo y no existÃ­a ningÃºn botÃ³n para abrirla. En el
   telÃ©fono quedaban visibles solo el logotipo y el botÃ³n de
   contacto, sin forma de llegar a las demÃ¡s secciones.

   El botÃ³n lo dibuja app.js. Este cÃ³digo solo le da el aspecto
   de hamburguesa y convierte la barra en un panel que baja.

   ------------------------------------------------------------
   2) LA BARRA YA NO ES "position: static"
   ------------------------------------------------------------
   El panel se coloca con position: absolute respecto a
   .site-header, que es position: sticky (y por tanto sirve de
   contenedor). Si el encabezado fuera static, el panel se
   medirÃ­a contra el documento y quedarÃ­a pegado al borde
   superior de la pantalla.

   ------------------------------------------------------------
   3) POR QUÃ‰ SE USA minmax(0, 1fr) Y NO 1fr
   ------------------------------------------------------------
   "1fr" equivale a minmax(auto, 1fr). La parte "auto" impide
   que una columna se haga mÃ¡s estrecha que el texto que lleva
   dentro. En el telÃ©fono eso hacÃ­a que varias rejillas se
   salieran de la pantalla:

     - /miembros   la tarjeta de cargo superior medÃ­a 390 px
                   dentro de 351 px, y por eso la pÃ¡gina se
                   desplazaba de lado en los cuatro anchos.
     - /talento/talento   el formulario se salÃ­a 40 px.

   Con minmax(0, 1fr) las columnas sÃ­ pueden encogerse por
   debajo del contenido, y las tarjetas se ajustan al ancho
   disponible. No cambia nada en computadora de escritorio:
   estas reglas solo existen dentro de @media.
   ========================================================== */

/* ==========================================================
   ALIANZAS CON PRESOS POLÃTICOS
   Mismo lenguaje visual que los cuadros de misiÃ³n y visiÃ³n
   (etiqueta, titular en serif y tarjeta con relieve), pero con
   retrato: aquÃ­ la persona es el centro, no la idea.
   ========================================================== */

.presos-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 87, 184, .07), transparent 55%),
        linear-gradient(180deg, rgba(246, 242, 232, .92), rgba(255, 255, 255, .96));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


/* Tres en fila en pantalla grande. El marco de 1076px deja
   cada tarjeta un 15% mÃ¡s chica que antes: con dos en fila
   medÃ­a 403px y ahora 343px. */
.presos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1076px;
    margin: 2.2rem auto 0;
}


/* En tablet caben dos en fila; la tercera pasa abajo. */
@media (max-width: 1024px) {
    .presos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 830px;
    }
}


/* En el telÃ©fono, una sola columna. */
@media (max-width: 640px) {
    .presos-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 440px;
        gap: 1.25rem;
    }
}


.preso-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fffffff8, #f7f3ea);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}


.preso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(10, 28, 56, .18);
}


/* Franja dorada del encabezado, como el borde inferior de la
   cabecera de la organizaciÃ³n. */
/* Cuadrada y no vertical: las fotos llegan en formatos distintos
   (una cuadrada, otra apaisada) y con un marco cuadrado casi
   ninguna se pierde. */
.preso-card__foto {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(150deg, var(--brand), var(--brand-2));
    overflow: hidden;
}


.preso-card__foto::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #d4a800);
}


.preso-card__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .35s ease;
}


.preso-card:hover .preso-card__foto img {
    transform: scale(1.04);
}


/* Cuando aÃºn no hay foto se muestra la inicial, para que la
   tarjeta nunca se vea rota. */
.preso-card__inicial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
}


.preso-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.3rem 1.4rem 1.45rem;
}


.preso-card__etiqueta {
    align-self: flex-start;
    padding: .3rem .62rem;
    margin-bottom: .7rem;
    border-radius: 999px;
    background: rgba(244, 195, 0, .16);
    color: #8a6b00;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .12em;
}


.preso-card h3 {
    margin: 0 0 .6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--brand-2);
}


/* En la tarjeta solo se ve el resumen corto. La reseÃ±a entera vive
   en la ficha que se abre con "Conocer mÃ¡s". */
.preso-card__resumen {
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.62;
}


/* El botÃ³n se empuja al fondo para que las dos tarjetas dejen el
   "Conocer mÃ¡s" a la misma altura, tenga el resumen corto o largo. */
.preso-card .btn-preso {
    margin-top: auto;
    align-self: flex-start;
    min-height: 38px;
    min-width: 0;
    padding: .4rem 1.2rem;
    font-size: .82rem;
}


/* ---------------------------------------------------------
   Ficha con la reseÃ±a completa (dentro del modal)
   Los .txt vienen escritos para leerse: traen separadores
   "---" y tÃ­tulos como "2. PERFIL GENERAL". AhÃ­ se-les da
   estilo; el texto lo pone app.js con textContent.
--------------------------------------------------------- */

/* La foto y su comportamiento son los de todas las fichas (ver
   .modal-avatar). Esta reseÃ±a sÃ­ necesita mÃ¡s ancho: con los 720px
   de las demÃ¡s el texto se queda en 430px y una reseÃ±a de diez mil
   caracteres sale interminable. */
.modal--preso {
    width: min(880px, 100%);
}


.preso-ficha > p {
    margin: 0 0 1rem;
    /* Respeta los saltos de lÃ­nea sueltos dentro de un bloque */
    white-space: pre-line;
}


.preso-ficha > p:last-child {
    margin-bottom: 0;
}


/* Las lÃ­neas "Something: value" de la ficha de datos, con la etiqueta
   en negrita. */
.preso-ficha__dato {
    margin: 0 0 .35rem !important;
    white-space: normal !important;
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.6;
}


.preso-ficha__dato strong {
    color: var(--ink);
    font-weight: 700;
}


.preso-ficha__dato:last-child {
    margin-bottom: 1rem !important;
}


.preso-ficha__subtitulo {
    display: block;
    margin: 1.7rem 0 .7rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}


.preso-ficha__subtitulo:first-child {
    margin-top: 0;
}


.preso-ficha__sep {
    display: block;
    height: 1px;
    margin: 1.7rem 0;
    background: linear-gradient(90deg, var(--gold), rgba(244, 195, 0, 0));
}


/* Tablet y telÃ©fono: la ficha vuelve a foto encima del
   texto como en las demÃ¡s. (La cuadrÃ­cula de las tarjetas
   se ajusta mÃ¡s arriba, en sus propios puntos de quiebre.) */
@media (max-width: 900px) {
    /* En el telÃ©fono el retrato no se queda fijo: estorba y la
       reseÃ±a se lee mejor con todo el ancho. Esto aplica a todas
       las fichas, no solo a la de los presos. */
    .modal-avatar {
        position: static;
        width: 128px;
        height: 128px;
    }


    .modal-body {
        gap: 1.1rem;
        padding: 1.75rem 1.6rem 1.9rem;
    }


    .preso-ficha > p {
        font-size: .95rem;
    }
}


/* ==========================================================
   FIN ALIANZAS CON PRESOS POLÃTICOS
   ========================================================== */

/* El botÃ³n no se muestra en computadora; lo crea app.js */
.nav-toggle {
    display: none;
}


@media (max-width: 820px) {

    /* -----------------------------------------------------------
       BotÃ³n de hamburguesa
    ----------------------------------------------------------- */
    .nav-toggle {
        display: grid;
        place-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        cursor: pointer;
    }

    .nav-toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--brand);
        transition: transform var(--transition), opacity var(--transition);
    }

    /* Las tres barras se convierten en una X al estar abierto */
    .nav-toggle--activo .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle--activo .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle--activo .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-toggle:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

    /* -----------------------------------------------------------
       Panel con los enlaces
    ----------------------------------------------------------- */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        margin: 0;
        padding: .6rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface);
        box-shadow: var(--shadow);

        /* Si el telÃ©fono es muy bajo, el panel se desplaza en vez de
           quedar cortado, y asÃ­ siempre se ven los Ãºltimos enlaces. */
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.nav-abierto {
        display: flex;
    }

    .main-nav a {
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: .7rem .85rem;
        border-radius: 10px;
        font-size: 1rem;
    }

    /* "Iniciar sesion" entra al final del panel (lo mueve app.js).
       Se le pone una linea arriba para separarlo de las secciones,
       porque es una accion distinta y no una seccion mas. */
    .main-nav a.main-nav-login {
        margin-top: .35rem;
        box-shadow: inset 0 1px 0 var(--line);
        color: var(--brand);
        font-weight: 700;
    }

    /* Con "Iniciar sesion" ya dentro del panel, la fila del encabezado
       se queda con el logotipo, Contacto y las tres rayitas, que es lo
       que cabe bien en un telefono. */
    .header-actions {
        gap: .6rem;
    }

    /* -----------------------------------------------------------
       Rejillas que no deben salirse de la pantalla
    ----------------------------------------------------------- */
    .mission-grid,
    .objectives-grid,
    .values-grid,
    .comunicados-grid,
    .contact-grid,
    .participation-grid,
    .content-grid,
    .report-layout,
    .talent-layout,
    .form-layout,
    .ally-inner,
    .organization-layout,
    .hero-highlights,
    .detail-layout,
    .auth-layout,
    .form-row--3,
    .form-row--2,
    .form-radio-group,
    .docs-uploads {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Estas tres conservan dos columnas, pero dejan poder encogerse */
    .member-grid,
    .grid-secondary,
    .grid-enlaces {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* El presidente comparte la clase .member-grid con el resto, asi que
       la regla de arriba tambien le ponia DOS columnas y su tarjeta caia
       en la primera: se veia pegada a la izquierda. Aqui se le devuelve
       una sola columna centrada, como en computadora. */
    .grid-presidencia {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    /* Y se le repite el centrado en la propia tarjeta, para que no
       dependa de cuantas columnas tenga la rejilla que lo contiene.
       Es lo mismo que ya hace .member-card--mando. */
    .member-card--lead {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(430px, 100%);
    }

    /* -----------------------------------------------------------
       Textos que se descuadraban
    -----------------------------------------------------------
       "Sin fines de lucro" es un bloque .about-note en flex. Su
       tÃ­tulo tenÃ­a flex-shrink: 0, es decir, se negaba a
       encogerse, asÃ­ que el pÃ¡rrafo de al lado quedaba
       aplastado a 97 px de ancho: el texto se partÃ­a en dos o
       tres letras por lÃ­nea. Al apilar el tÃ­tulo encima del
       pÃ¡rrafo, cada uno ocupa el ancho completo.
    ----------------------------------------------------------- */
    .about-note {
        flex-wrap: wrap;
        gap: .4rem .9rem;
    }

    /* El tÃ­tulo puede encojar sihiciera falta, en vez de negarse */
    .about-note strong {
        flex-shrink: 1;
    }

    /* Solo en telÃ©fonos estrechos el tÃ­tulo baja encima del pÃ¡rrafo.
       En tablet hay ancho de sobra y pueden quedar en la misma lÃ­nea,
       igual que en computadora. */
    @media (max-width: 480px) {
        .about-note {
            flex-direction: column;
            align-items: stretch;
        }
    }

    /* Una palabra larga (un nombre, un correo) no debe abrir
       un scroll horizontal: se parte antes de desbordar. */
    .about-card h3,
    .about-card p,
    .member-name,
    .member-rank,
    .member-role,
    .modal-body {
        overflow-wrap: anywhere;
    }

    /* Menos aire interior: con 2.5rem de margen a cada lado
       quedaba muy poco ancho Ãºtil en el telÃ©fono. */
    .about-card {
        padding: 1.5rem 1.1rem;
    }

    .form-card {
        padding: 1.4rem 1rem;
    }
}


/* ==========================================================
   COMENTARIOS (portada y formulario)
========================================================== */

.comentarios-section {
    background:
        radial-gradient(circle at 12% 20%, rgba(244, 195, 0, .10), transparent 34%),
        linear-gradient(180deg, rgba(0, 87, 184, .035), rgba(0, 87, 184, 0));
}


.comentarios-acciones {
    display: flex;
    justify-content: center;
    margin: 0 auto 2.75rem;
}


.comentarios-tabla-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(10, 28, 56, .06);
    overflow-x: auto;
}


.comentarios-tabla {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}


.comentarios-tabla thead th {
    padding: .85rem 1.15rem;
    background: rgba(0, 87, 184, .06);
    color: var(--brand-2);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}


.comentarios-tabla tbody tr + tr th,
.comentarios-tabla tbody tr + tr td {
    border-top: 1px solid var(--line);
}


.comentarios-tabla tbody tr:hover {
    background: rgba(0, 87, 184, .03);
}


.comentarios-tabla tbody th,
.comentarios-tabla tbody td {
    padding: 1rem 1.15rem;
    vertical-align: top;
    font-size: .95rem;
    line-height: 1.65;
}


.comentario-nombre-celda {
    width: 22%;
    min-width: 160px;
    font-weight: 700;
    text-align: left;
}


.comentario-nombre-celda .comentario-nombre {
    display: block;
    color: var(--brand-2);
    font-size: .95rem;
    overflow-wrap: anywhere;
}


.comentario-nombre-celda .comentario-badge {
    margin-top: .35rem;
}


.comentario-texto-celda {
    color: var(--ink);
    overflow-wrap: anywhere;
}


.comentario-fecha-celda {
    width: 1%;
    white-space: nowrap;
    color: var(--ink-soft);
    font-size: .82rem;
}


.comentario-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .15rem .55rem;
    background: rgba(0, 87, 184, .10);
    color: var(--brand);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}


/* Al volver de responder, el comentario no queda oculto bajo el header. */
.comentarios-tabla tbody tr {
    scroll-margin-top: 6rem;
}


.comentario-mensaje {
    color: var(--ink);
    overflow-wrap: anywhere;
}


/* Respuestas dentro de cada comentario */
.respuestas-lista {
    list-style: none;
    margin: .9rem 0 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid rgba(0, 87, 184, .18);
    display: grid;
    gap: .8rem;
}


.respuesta-cabecera {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .2rem;
}


.respuesta-nombre {
    color: var(--brand-2);
    font-size: .88rem;
}


.respuesta-fecha {
    color: var(--ink-soft);
    font-size: .75rem;
    white-space: nowrap;
}


.respuesta-texto {
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}


/* Botón "Responder" y su formulario */
.responder {
    margin-top: .9rem;
}


.responder-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    list-style: none;
    padding: .38rem .85rem;
    border: 1px solid rgba(0, 87, 184, .25);
    border-radius: 999px;
    color: var(--brand);
    font-size: .82rem;
    font-weight: 700;
    background: rgba(0, 87, 184, .04);
    transition: background var(--transition), border-color var(--transition);
}


.responder-toggle::-webkit-details-marker {
    display: none;
}


.responder-toggle::marker {
    content: "";
}


.responder-toggle:hover,
.responder[open] .responder-toggle {
    background: rgba(0, 87, 184, .10);
    border-color: rgba(0, 87, 184, .40);
}


.responder-form {
    display: grid;
    gap: .85rem;
    margin-top: .8rem;
    padding: 1rem;
    background: rgba(0, 87, 184, .035);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}


.responder-form .form-group {
    margin-bottom: 0;
}


.responder-form .form-alert {
    margin: 0;
}


.responder-opciones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    font-size: .88rem;
}


.responder-opciones-titulo {
    font-weight: 700;
    color: var(--ink);
}


.responder-opcion {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    color: var(--ink);
}


.responder-opcion input {
    accent-color: var(--brand);
    margin: 0;
}


.responder-acciones {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}


.responder-acciones .btn {
    padding: .6rem 1.2rem;
    font-size: .88rem;
}


.comentarios-vacio {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, .55);
    border: 1px dashed rgba(0, 55, 130, .25);
    border-radius: var(--radius-sm);
}


.comentarios-aviso {
    max-width: 760px;
    margin: 0 auto 2rem;
}


.form-alert--success {
    background: rgba(22, 128, 74, .09);
    border: 1px solid rgba(22, 128, 74, .35);
    color: #14663c;
}


.form-alert--success strong {
    color: #14663c;
}


.comentario-form-card {
    max-width: 860px;
    margin: 0 auto;
}


.form-group[hidden] {
    display: none;
}


.form-counter--limite {
    color: #a3191d;
    font-weight: 700;
}


@media (max-width: 640px) {

    /* La tabla se convierte en una lista de bloques: una fila por
       comentario, sin scroll horizontal ni columnas estrechas. */
    .comentarios-tabla-wrap {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .comentarios-tabla,
    .comentarios-tabla thead,
    .comentarios-tabla tbody,
    .comentarios-tabla tr,
    .comentarios-tabla th,
    .comentarios-tabla td {
        display: block;
        width: auto;
    }

    .comentarios-tabla thead {
        display: none;
    }

    .comentarios-tabla tbody tr {
        padding: 1.05rem 1.1rem;
        margin-bottom: .85rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        box-shadow: 0 12px 30px rgba(10, 28, 56, .05);
    }

    .comentarios-tabla tbody tr:hover {
        background: var(--surface);
    }

    .comentarios-tabla tbody th,
    .comentarios-tabla tbody td {
        padding: 0;
        border: 0;
    }

    .comentario-nombre-celda {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: .5rem;
        min-width: 0;
        margin-bottom: .45rem;
    }

    .comentario-nombre-celda .comentario-nombre {
        display: inline;
    }

    .comentario-nombre-celda .comentario-badge {
        margin-top: 0;
    }

    .comentario-fecha-celda {
        margin-top: .55rem;
    }

    .respuestas-lista {
        padding-left: .75rem;
    }

    .responder-form {
        padding: .85rem;
    }

    .responder-acciones .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
