:root {
    --p900: #1A0A3E;
    --p800: #2D1870;
    --p700: #3D2A8A;
    --p600: #5039A8;
    --p500: #6B52C4;
    --p400: #8B75D9;
    --p300: #B0A0EC;
    --p200: #D5CBFF;
    --p100: #EDE9FF;
    --p50: #F7F5FF;
    --gold: #F5C518;
    --institute: #8C65AA;
    --gold-pale: #FFF9DC;
    --white: #FFFFFF;
    --off: #FAFAF9;
    --ink: #0D0620;
    --muted: #7B6FA0;
    --border: #E4DEFF;
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 40px;
    --sh-sm: 0 2px 12px rgba(80, 57, 168, .1);
    --sh-md: 0 8px 32px rgba(80, 57, 168, .16);
    --sh-lg: 0 20px 60px rgba(80, 57, 168, .22);
    --ease: cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--p500);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--p500);
    border-radius: 1px;
    flex-shrink: 0;
}

h2.display {
    font-size: clamp(26px, 4.5vw, 46px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--ink);
}

h2.display span {
    color: var(--p600);
}

.sub {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all .2s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn-solid {
    background: var(--p600);
    color: var(--white);
    border: 2px solid var(--p600);
}

.btn-solid:hover {
    background: var(--p700);
    border-color: var(--p700);
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--p600);
    border: 2px solid var(--p300);
}

.btn-ghost:hover {
    background: var(--p100);
    border-color: var(--p400);
    transform: translateY(-2px);
}

.btn-gold {
    /* background: var(--institute); */
    background: #7e78b1;
    color: var(#000000);
    border: 2px solid #7e78b1;
}

.btn-gold:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    color: #000000 !important;
}

.btn-reno {
    background: #ffffff;
}

.btn-reno:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    color: #6c1efe !important;
}

.btn-invert {
    background: var(--white);
    color: var(--p700);
    border: 2px solid var(--white);
}

.btn-invert:hover {
    background: var(--p100);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 11px;
}

.btn-xs {
    padding: 6px 14px;
    font-size: 10px;
}

.arrow {
    display: inline-block;
    transition: transform .2s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* ── NAV ──────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    /* background: rgba(140, 101, 170, 0.23); */
    background: #fff;
    backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 94px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--p500), var(--p300));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -.5px;
}

.logo-text {
    font-size: 14px;
    font-weight: 800;
    color: #000000;
    line-height: 1.15;
}

.logo-sub {
    font-size: 9px;
    color: rgb(0, 0, 0);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex: 1;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    transition: .18s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.on {
    color: var(--institute);
}

.nav-links a.on::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.nav-right {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-badge {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--gold);
    color: var(--p900);
}

.ham {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    padding: 4px;
    margin-left: auto;
}

.ham span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: .2s;
}

.mob-menu {
    display: none;
    background: var(--p900);
    padding: 8px 0 16px;
}

.mob-menu a {
    display: block;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mob-menu a:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--white);
}

.mob-menu .btn {
    margin: 14px 28px 0;
    display: block;
    text-align: center;
}

/* ── HERO 
d
#b8885b
v
#588980

─────────────────────────────────────────── */
.hero {
    /* background: #32215C; */
    background: url(../images/fondo1.1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

@media (max-width: 768px) {
  .hero {
    background-position: center;
  }
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.geo {
    position: absolute;
    border-radius: 50%;
    opacity: .14;
}

.geo-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--p500) 0%, transparent 70%);
    top: -220px;
    right: -180px;
}

.geo-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--p400) 0%, transparent 70%);
    bottom: -80px;
    left: -100px;
}

.geo-line {
    position: absolute;
    top: 40%;
    left: 52%;
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .07), transparent);
    transform: rotate(18deg);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    padding: 88px 0 72px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    /* background: rgba(255, 255, 255, .06); */
    background: var(--p900);
    margin-bottom: 28px;
    width: fit-content;
}

.hero-tag .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* background: var(--gold); */
    background: var(--p100);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.75);
    }
}

.hero-tag span {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .06em;
}

.hero h1 {
    font-size: clamp(30px, 5.5vw, 58px);
    font-weight: 850;
    color: var(--white);
    line-height: 1.07;
    margin-bottom: 22px;
    text-shadow: .5px .5px 0 #00000085, -.5px -.5px 0 #00000085, .5px -.5px 0 #00000085, -.5px .5px 0 #00000085;
}

.hero h1 em {
    font-style: normal;
    /* color: var(--gold); */
    color: var(--p700);
}

.hero h1 .outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, .28);
    color: transparent;
}

.hero-desc {
    font-size: 15px;
    /* color: rgba(255, 255, 255, .62); */
    color: var(--p800);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hstat {
    border-left: 2px solid var(--p500);
    padding-left: 14px;
}

.hstat .n {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.hstat .l {
    font-size: 10px;
    color: rgba(255, 255, 255, .5);
    font-weight: 600;
    letter-spacing: .04em;
    margin-top: 3px;
}

/* Floating cards */
.hero-cards {
    position: relative;
    height: 500px;
}

.hcard {
    position: absolute;
    background: rgba(255, 255, 255, .07);
    /* border: 1px solid rgba(255, 255, 255, .12); */
    border: 1.5px solid var(--p200);
    border-radius: var(--r-md);
    padding: 20px;
    backdrop-filter: blur(12px);
}

.hcard-1 {
    width: 320px;
    top: 0;
    right: 0;
    animation: fl1 4s ease-in-out infinite;
}

.hcard-2 {
    width: 335px;
    top: 155px;
    left: 0;
    animation: fl2 4.5s ease-in-out infinite .4s;
}

.hcard-3 {
    width: 300px;
    bottom: 0;
    right: 24px;
    animation: fl1 5s ease-in-out infinite .9s;
}

@keyframes fl1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes fl2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

.hcard-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    /* color: rgba(255, 255, 255, .5); */
    color: var(--p900);
    margin-bottom: 7px;
}

.hcard-val {
    font-size: 26px;
    font-weight: 900;
    /* color: var(--white); */
    color: var(--p900);
    margin-bottom: 4px;
}

.hcard-sub {
    font-size: 15px;
    /* color: rgba(255, 255, 255, .5); */
    color: var(--p900);
}

.hcard-bar {
    height: 4px;
    background: rgba(255, 255, 255, .12);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.hcard-fill {
    height: 100%;
    border-radius: 2px;
    /* background: linear-gradient(90deg, var(--p400), var(--gold)); */
    background: linear-gradient(to right, #7c69bf, #d8c9f2);
}

.hcard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hcard-row:last-child {
    margin-bottom: 0;
}

.hcard-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.hcard-name {
    font-size: 15px;
    font-weight: 700;
    /* color: var(--white); */
    color: var(--p900);
    margin-bottom: 1px;
}

.hcard-date {
    font-size: 12px;
    /* color: rgba(255, 255, 255, .42); */
    color: var(--p900);
}

.hcard-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* Ticker */
.ticker {
    /* background: var(--gold); */
    background: var(--p900);
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    animation: ticker 32s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 40px;
    font-size: 11px;
    font-weight: 700;
    /* color: var(--p900); */
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item::before {
    content: '◆';
    font-size: 8px;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── SECCIONES ────────────────────────────────────── */
section {
    padding: 88px 0;
}

section.alt {
    background: var(--p50);
}

section.dark-sec {
    background: var(--p900);
}

.sec-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.sec-head {
    margin-bottom: 48px;
}








/* ── ESTILOS RESPONSIVOS DEL BOTÓN DE SIMULADOR DE VOTACIÓN EN LA CARD DEBAJO DEL HERO ────────────────────────────────────── */
@media (max-width: 390px) {

    .promes-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .promes-sub {
        font-size: 13px;
        line-height: 1.5;
    }

    .promes-card .btn {
        font-size: 18px !important;
        padding: 12px 18px !important;
    }
}

































/* ── ESTILO PARA EL BOTÓN DEL PROMES EN EL HERO ────────────────────────────────────── */

.btn-outline-promes {
    /* color: rgba(255,255,255,.8);
    border: 2px solid rgba(255,255,255,.25); */
    color: #7e78b1;
border: 2px solid rgba(126, 120, 177, 1);
    border-radius: 999px;
    padding: 13px 26px;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all .35s ease;
}

/* fondo animado */
.btn-outline-promes::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(169deg, #430890, #b290d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: 1; /* 👈 importante */
}

/* texto SIEMPRE arriba */
.btn-outline-promes span {
    position: relative;
    z-index: 2;
}

/* hover */
.btn-outline-promes:hover::before {
    transform: scaleX(1);
}

.btn-outline-promes:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px) scale(1.03);
}































/* ── MENÚ TABS ────────────────────────────────────── */
.menu-tabs-wrap {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
}

.menu-tab-bar {
    display: flex;
    background: var(--p100);
    border-radius: var(--r-md);
    padding: 5px;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
}

.menu-tab-bar::-webkit-scrollbar {
    display: none;
}

.menu-tab {
    flex-shrink: 0;
    padding: 11px 22px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: .18s;
    white-space: nowrap;
}

.menu-tab.on {
    background: var(--p700);
    color: var(--white);
    box-shadow: var(--sh-sm);
}

.menu-tab:hover:not(.on) {
    color: var(--p600);
}

/* ── DATA STRIP ───────────────────────────────────── */
.data-strip {
    background: var(--p800);
    padding: 60px 0;
}

.data-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .08);
}

.dstat {
    padding: 28px 24px;
    background: var(--p800);
}

.dstat .n {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.dstat .n span {
    color: var(--gold);
}

.dstat .l {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    font-weight: 500;
    line-height: 1.5;
}

.dstat .bar {
    height: 3px;
    margin-top: 14px;
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
    overflow: hidden;
}

.dstat .fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--p400), var(--gold));
}

/* ── DOCUMENTO BENTO ──────────────────────────────── */
.doc-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.fchip {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1.5px solid var(--border);
    color: var(--muted);
    background: var(--white);
    cursor: pointer;
    transition: .18s;
}

.fchip:hover {
    border-color: var(--p400);
    color: var(--p600);
}

.fchip.on {
    background: var(--p600);
    color: var(--white);
    border-color: var(--p600);
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    align-items: center;
    gap: 20px;

    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 22px;
    transition: all .2s var(--ease);
    cursor: pointer;
}

.doc-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-row:hover {
    border-color: var(--p400);
    transform: translateX(4px);
    box-shadow: var(--sh-sm);
}

.doc-row.featured {
    background: var(--p800);
    border-color: var(--p700);
}

.doc-row.featured .doc-num {
    color: var(--gold);
}

.doc-row.featured .doc-title-text {
    color: var(--white);
}

.doc-row.featured .doc-tag-text {
    color: rgba(255, 255, 255, .55);
}

.doc-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width:100%;
}

.doc-num {
    font-size: 13px;
    font-weight: 900;
    color: var(--p400);
    min-width: 24px;
    margin-top: 1px;
    flex-shrink: 0;
}

.doc-info {
        flex:1;
    min-width:0;
    max-width:900px;
}

.doc-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pt-est {
    background: #EDE9FE;
    color: #5B21B6;
}

.pt-ana {
    background: #DBEAFE;
    color: #1E40AF;
}

.pt-acu {
    background: #D1FAE5;
    color: #065F46;
}

.pt-inf {
    background: #FEF3C7;
    color: #92400E;
}

.pt-doc {
    background: #FCE7F3;
    color: #9D174D;
}

.pt-pro {
    background: #F3E8FF;
    color: #6B21A8;
}

.pt-pre {
    background: rgba(245, 197, 24, .18);
    color: #8B6800;
}

.pt-est-inv {
    background: rgba(237, 233, 254, .15);
    color: var(--p200);
}

.doc-title-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    width:100%;
}

.doc-tag-text {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}

.doc-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--p100);
    color: var(--p600);
    border: 1.5px solid var(--border);
    transition: .18s;
    font-size: 15px;
}

.dl-btn:hover {
    background: var(--p600);
    color: var(--white);
    border-color: var(--p600);
}

.dl-btn.link {
    background: rgba(255, 255, 255, .1);
    color: var(--p200);
    border-color: rgba(255, 255, 255, .2);
}

.dl-btn.link:hover {
    background: var(--gold);
    color: var(--p900);
    border-color: var(--gold);
}

/* ── CARD DESTACADA ───────────────────────────────── */
.spotlight-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-lg);
}

.sc-bg {
    position: absolute;
    inset: 0;
    transition: filter .3s;
}

.spotlight-card:hover .sc-bg {
    filter: brightness(1.1);
}

.sc-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .5) 1px, transparent 0);
    background-size: 24px 24px;
}

.sc-content {
    position: relative;
    z-index: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.sc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: auto;
}

.sc-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 7px;
}

.sc-title {
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 8px;
}

.sc-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.6;
    margin-bottom: 18px;
}

.sc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    transition: .2s;
    border: 1px solid rgba(255, 255, 255, .2);
    width: fit-content;
    margin-top: auto;
}

.spotlight-card:hover .sc-cta {
    background: rgba(255, 255, 255, .25);
}

/* ── ACCESOS GRID ─────────────────────────────────── */
.accesos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.accesos-grid .tall {
    grid-row: span 2;
}

.accesos-grid .wide {
    grid-column: span 2;
}

/* ── DIAGNÓSTICO TABLE ────────────────────────────── */
.diag-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.diag-table thead tr {
    background: var(--p700);
}

.diag-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
}

.diag-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: .15s;
}

.diag-table tbody tr:last-child {
    border-bottom: none;
}

.diag-table tbody tr:hover {
    background: var(--p50);
}

.diag-table td {
    padding: 14px 20px;
    font-size: 13px;
    color: var(--ink);
    vertical-align: middle;
}

.diag-table td:last-child {
    width: 60px;
    text-align: center;
}

.diag-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--p100);
    color: var(--p600);
    border: 1.5px solid var(--border);
    font-size: 16px;
    transition: .18s;
}

.diag-link:hover {
    background: var(--p600);
    color: var(--white);
    border-color: var(--p600);
}

/* ── PROMES SECTION ───────────────────────────────── */
.promes-card {
    background: linear-gradient(135deg, var(--p700), var(--p500));
    border-radius: var(--r-xl);
    padding: 52px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.promes-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.promes-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 25%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
}

.promes-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.promes-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.promes-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* PROMES doc list */
.promes-docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.promes-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    transition: all .2s var(--ease);
}

.promes-doc:hover {
    border-color: var(--p400);
    transform: translateX(3px);
    box-shadow: var(--sh-sm);
}

.promes-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--p100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.promes-doc-info {
    flex: 1;
    min-width: 0;
}

.promes-doc-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--p500);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.promes-doc-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

/* ── NEWSLETTER ───────────────────────────────────── */
.nl-wrap {
    /* background: linear-gradient(135deg, var(--p700), var(--p500)); */
    background: url(../images/Fondo2.1.png);
    border: 1px solid var(--p700);
    border-radius: var(--r-xl);
    padding: 52px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nl-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(139, 117, 217, 0.13);
    z-index: 0;
}

.nl-wrap::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.nl-title {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 900;
    color: var(--p700);
    margin-bottom: 8px;
}

.nl-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
    max-width: 400px;
}

.nl-form {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.nl-input {
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    width: 230px;
    outline: none;
    transition: .2s;
}

.nl-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.nl-input:focus {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .18);
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
    background: #ffffff;
}

.footer-top {
    padding: 56px 0 44px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ft-logo {
    margin-bottom: 16px;
}

.ft-about p {
    font-size: 12px;
    color: rgb(0, 0, 0);
    line-height: 1.8;
    max-width: 240px;
}

.ft-socials {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.ft-soc {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #32215C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: .18s;
    border: 1px solid rgba(255, 255, 255, .08);
}

.ft-soc:hover {
    background: var(--p600);
    color: var(--white);
}

.ft-col h5 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgb(0, 0, 0);
    margin-bottom: 16px;
}

.ft-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-col a {
    font-size: 13px;
    color: rgba(108, 3, 223, 1);
    transition: .15s;
}

.ft-col a:hover {
    background-color: #3e1277;
    color: #fff;
}

.footer-bot {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bot p {
    font-size: 12px;
    color: rgb(0, 0, 0);
}

.footer-bot-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bot-links a {
    font-size: 11px;

    transition: .15s;
}

.footer-bot-links a:hover {
    color: rgba(255, 255, 255, .7);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media(max-width:1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: auto;
        gap: 12px;
    }

    .hcard {
        position: static;
        width: 100%;
        animation: none;
    }

    .accesos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .accesos-grid .tall {
        grid-row: span 1;
    }

    .accesos-grid .wide {
        grid-column: span 2;
    }

    .data-strip .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .promes-docs {
        grid-template-columns: 1fr;
    }

    .promes-card,
    .nl-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .ft-about {
        grid-column: span 2;
    }
}

@media(max-width:768px) {
    section {
        padding: 60px 0;
    }

    .nav-links,
    .nav-right {
        display: none;
    }

    .ham {
        display: flex;
    }

    .mob-menu.open {
        display: block;
    }

    .hero-inner {
        padding: 60px 0 48px;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .accesos-grid {
        grid-template-columns: 1fr;
    }

    .accesos-grid .wide {
        grid-column: span 1;
    }

    .data-strip .container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        justify-content: center;
    }

    .diag-table {
        display: block;
        overflow-x: auto;
    }

    .promes-card {
        padding: 32px 24px;
    }

    .nl-wrap {
        padding: 36px 28px;
    }

    .nl-form {
        flex-direction: column;
    }

    .nl-input {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .ft-about {
        grid-column: span 1;
    }

    .footer-bot {
        flex-direction: column;
        align-items: flex-start;
    }

    .sec-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .promes-btns {
        flex-direction: column;
    }
}

@media(max-width:480px) {
    .container {
        padding: 0 18px;
    }

    .data-strip .container {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 20px;
    }
}

/* ── ANIMATION ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* active tab panels */
.tab-panel {
    display: none;
}

.tab-panel.on {
    display: block;
}

.logo img {
    max-width: 30px;
    width: 100%;
    height: auto;
}


.promes-text {
    color: #000000;
    font-size: 14px;
    text-align: justify;
}