/* Estilos modernos y premium */
.hero-gradient {
    background: url('../assets/fondo-header.webp') center bottom -5vh / cover no-repeat;
    background-color: #0A142F;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.text-gradient-gold {
    background: linear-gradient(to right, #7ABAFF, #B8DBFF, #7ABAFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

.text-rmgold-contrast {
    color: #2563EB;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.glass-nav {
    background: rgba(10, 20, 47, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-desktop {
    display: none;
}

.nav-mobile-toggle {
    display: block;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

@media (min-width: 1000px) {
    .nav-desktop {
        display: flex;
    }

    .nav-mobile-toggle,
    .nav-mobile-panel {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .lg\:order-1 {
        order: 1;
    }

    .lg\:order-2 {
        order: 2;
    }
}

.modern-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(10, 20, 47, 0.12);
    border-color: rgba(122, 186, 255, 0.5);
}

.icon-wrapper {
    transition: all 0.4s ease;
}

.modern-card:hover .icon-wrapper {
    background-color: #0A142F;
    color: #7ABAFF;
    transform: scale(1.1);
}

.presentation-video-frame {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presentation-video-frame:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px -32px rgba(10, 20, 47, 0.55);
}

.presentation-video-frame video {
    cursor: pointer;
}

.spot-modal,
.gallery-modal {
    opacity: 0;
    transition: opacity 0.24s ease;
}

.spot-modal.is-open,
.gallery-modal.is-open {
    opacity: 1;
}

.spot-modal__panel,
.gallery-modal__panel {
    transform: translateY(18px) scale(0.98);
    transition: transform 0.24s ease;
}

.spot-modal.is-open .spot-modal__panel,
.gallery-modal.is-open .gallery-modal__panel {
    transform: translateY(0) scale(1);
}

body.modal-open {
    overflow: hidden;
}

.vote-mail {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background:
        linear-gradient(135deg, rgba(10, 20, 47, 0.98), rgba(7, 17, 38, 0.94)),
        linear-gradient(180deg, #0A142F, #030610);
    color: #ffffff;
}

.vote-mail::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(122, 186, 255, 0.18), transparent 38%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.08), transparent 42%);
    pointer-events: none;
}

.vote-mail__inner {
    position: relative;
    z-index: 1;
}

.vote-mail__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 3rem;
    text-align: center;
    justify-items: center;
}

.vote-mail__eyebrow {
    margin-bottom: 0.75rem;
    color: #7ABAFF;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vote-mail__header h3 {
    font-family: Montserrat, sans-serif;
    font-size: 2.5rem;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: 0;
}

.vote-mail__header p {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

.vote-mail__header strong {
    color: #ffffff;
    font-weight: 700;
}

.vote-mail__portal-link, .vote-mail__step p a{
    color: #0A142F;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}

.vote-mail__portal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.vote-mail__portal-link:hover, .vote-mail__step p > a:hover {
    color: #2563EB;
}

.vote-mail__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.vote-mail__steps[hidden] {
    display: none;
}

.vote-mail__image {
    overflow: hidden;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px -44px rgba(0, 0, 0, 0.85);
}

.vote-mail__image a {
    display: block;
    cursor: pointer;
}

.vote-mail__image img {
    display: block;
    width: 100%;
    height: auto;
}

.vote-mail__step {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.5rem;
    color: #0A142F;
    box-shadow: 0 24px 60px -42px rgba(0, 0, 0, 0.8);
}

.vote-mail__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: #0A142F;
    color: #7ABAFF;
}

.vote-mail__icon-number {
    font-family: Montserrat, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.vote-mail__step h4 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.85rem;
    font-family: Montserrat, sans-serif;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
}

.vote-mail__step p {
    position: relative;
    z-index: 1;
    color: #4B5563;
    font-size: 0.92rem;
    line-height: 1.65;
    font-weight: 300;
}

.vote-mail__step strong {
    color: #0A142F;
    font-weight: 700;
}

.vote-mail-modal {
    z-index: 85;
    opacity: 0;
    transition: opacity 0.32s ease;
}

.vote-mail-modal.is-open {
    opacity: 1;
}

.vote-mail-modal__backdrop {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.32s ease;
}

.vote-mail-modal.is-open .vote-mail-modal__backdrop {
    opacity: 1;
}

.vote-mail-modal__panel {
    width: 100%;
    max-width: 56rem;
    opacity: 0;
    transform: translateY(2rem) scale(0.96);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.vote-mail-modal.is-open .vote-mail-modal__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vote-mail-modal__hero {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(10, 20, 47, 0.98), rgba(7, 17, 38, 0.94)),
        linear-gradient(180deg, #0A142F, #030610);
    color: #ffffff;
}

.vote-mail-modal__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(122, 186, 255, 0.22), transparent 42%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.08), transparent 48%);
    pointer-events: none;
}

.vote-mail-modal__hero > * {
    position: relative;
    z-index: 1;
}

.vote-mail-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.vote-mail-modal__close:hover {
    background: #7ABAFF;
    color: #0A142F;
}

.vote-mail-modal__eyebrow {
    margin-bottom: 0.85rem;
    color: #7ABAFF;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vote-mail-modal__hero h2 {
    max-width: 42rem;
    font-family: Montserrat, sans-serif;
    font-size: 2.5rem;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: 0;
}

.vote-mail-modal__subtitle {
    max-width: 42rem;
    margin-top: 0.85rem;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 400;
}

.vote-mail-modal__subtitle strong {
    color: #7ABAFF;
    font-weight: 700;
}

.vote-mail-modal__subtitle a {
    color: #ffffff;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.vote-mail-modal__subtitle a:hover {
    color: #7ABAFF;
}

.vote-mail-modal__hero p:last-child {
    max-width: 40rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 300;
}

.vote-mail-modal__body {
    padding: 1.25rem;
}

.vote-mail-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vote-mail-modal__primary,
.vote-mail-modal__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vote-mail-modal__primary {
    background: #0A142F;
    color: #ffffff;
}

.vote-mail-modal__primary:hover {
    background: #7ABAFF;
    color: #0A142F;
}

.vote-mail-modal__secondary {
    border: 1px solid #E5E7EB;
    color: #4B5563;
}

.vote-mail-modal__secondary:hover {
    border-color: #0A142F;
    color: #0A142F;
}

.media-gallery__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 3rem;
}

.media-gallery__header p:last-child {
    max-width: 34rem;
}

.media-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.media-gallery__item {
    position: relative;
    grid-column: span 12;
    min-height: 18rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #0A142F;
    isolation: isolate;
}

.media-gallery__item--video {
    aspect-ratio: 16 / 9;
    min-height: auto;
    border: 1px solid rgba(10, 20, 47, 0.08);
    box-shadow: 0 24px 60px -30px rgba(10, 20, 47, 0.45);
}

.media-gallery__image,
.media-gallery__video {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.media-gallery__image {
    transition: transform 0.5s ease;
}

.media-gallery__item:hover .media-gallery__image {
    transform: scale(1.04);
}

.media-gallery__play {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.media-gallery__item:hover .media-gallery__play {
    background: #7ABAFF;
    color: #0A142F;
    transform: scale(1.06);
}

.media-gallery__caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    color: #ffffff;
}

.media-gallery__caption span {
    display: block;
    margin-bottom: 0.35rem;
    color: #7ABAFF;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.media-gallery__caption strong {
    display: block;
    font-family: Montserrat, sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
}

.gallery-modal__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(72vh, 44rem);
    min-height: min(18rem, calc(100vh - 10rem));
    max-height: calc(100vh - 10rem);
}

.gallery-modal__media {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-modal__stage.is-changing .gallery-modal__media {
    opacity: 0;
    transform: scale(0.992);
}

.gallery-modal__stage video.gallery-modal__media {
    aspect-ratio: 16 / 9;
}

.gallery-modal__counter {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.gallery-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(3, 6, 16, 0.62);
    color: #ffffff;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.gallery-modal__nav--prev {
    left: 1rem;
}

.gallery-modal__nav--next {
    right: 1rem;
}

.gallery-modal__nav:hover:not(:disabled) {
    background: #7ABAFF;
    color: #0A142F;
}

.gallery-modal__nav.is-hidden {
    cursor: default;
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 640px) {
    .media-gallery__item {
        grid-column: span 6;
    }

    .media-gallery__item--video {
        grid-column: span 12;
    }
}

@media (min-width: 768px) {
    .vote-mail {
        padding: 7rem 0;
    }

    .vote-mail__header {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 4rem;
    }

    .vote-mail__header h3 {
        font-size: 4.75rem;
    }

    .vote-mail__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vote-mail__step {
        padding: 1.75rem;
    }

    .vote-mail-modal__hero {
        padding: 3rem;
    }

    .vote-mail-modal__hero h2 {
        font-size: 4.25rem;
    }

    .vote-mail-modal__body {
        padding: 1.5rem;
    }

    .vote-mail-modal__actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .vote-mail-modal__primary,
    .vote-mail-modal__secondary {
        padding: 0 1.4rem;
    }

    .media-gallery__header {
        grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
        margin-bottom: 4rem;
    }

    .media-gallery__grid {
        gap: 1.25rem;
    }

    .media-gallery__item {
        grid-column: span 4;
        min-height: 20rem;
    }

    .media-gallery__item--wide {
        grid-column: span 8;
    }

    .media-gallery__item--video {
        grid-column: span 12;
    }
}

@media (min-width: 1180px) {
    .vote-mail__steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pillar-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
}

.pillar-dot::before {
    content: "";
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.pillar-dot.is-active::before {
    width: 1.5rem;
    background: #7ABAFF;
}

/* Animación copas */
.copa-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.3em;
    height: 0.3em;
    margin-left: 0.1em;
    vertical-align: baseline;
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.copa-circle .copa-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.7);
    transition: all 0.4s ease;
}

.copa-circle.active {
    opacity: 1;
    transform: scale(1.1);
}

.copa-circle.active .copa-img {
    filter: brightness(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.copa-circle.fade-out {
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.copa-circle.fade-out .copa-img {
    filter: brightness(0.7);
    transition: all 0.6s ease;
}

@media (max-width: 639px) {
    .copa-circle {
        width: 0.4em;
        height: 0.4em;
        margin-left: 0.12em;
    }
}

.left-inset{
    inset: auto 0 0 0;
    pointer-events: none;
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero-scroll-cta {
        display: none !important;
    }
}
