* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: 'Fira Sans', sans-serif;
}

body {
    background: #00001D;
    background: linear-gradient(0deg, rgba(0, 0, 29, 1) 0%, rgba(1, 1, 74, 1) 48%, rgba(0, 0, 29, 1) 100%);
}

.degradado {
    position: fixed;
    width: 100%;
    height: 100dvh;
    background: linear-gradient(180deg, rgba(0, 0, 29, 0.8) 0%, rgba(1, 1, 74, 0.8) 48%, rgba(0, 0, 29, 0.8) 100%);
    z-index: -5;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
}

.containerImg {
    width: 100%;
    height: 100dvh;
    position: fixed;
}

.containerImg img {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
}

.contenedor1 {
    z-index: 2;
    animation: entradaEficio 6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contenedor2 {
    z-index: 3;
    animation: entradaEficioSecundario 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;

}

.contenedor3 {
    z-index: 1;
    animation: entradaPiso 1s ease-out forwards;
    opacity: 0;
    animation-delay: .5s;
}

.containerLogo {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 80%;
    max-width: 600px;
    margin-top: 3em;
    z-index: 0;
    position: fixed;
    transition: all 0.4s ease;
    transform-origin: top left;
    animation: entradaLogo 2s ease-out forwards;
}

.botonera {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 1em;
    padding: 1em;
    position: sticky;
    top: 30px;
    z-index: 1000;
}

.botonera_button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.7em 2em;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 50px;
    width: 100%;
    max-width: 260px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.botonera_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.botonera_button:hover::before {
    left: 100%;
}

.botonera_button:hover {
    border-color: rgba(199, 68, 106, 0.6);
    color: white;
    background: rgba(199, 68, 106, 0.1);
    box-shadow: 0 0 20px rgba(199, 68, 106, 0.15), inset 0 0 20px rgba(199, 68, 106, 0.05);
    transform: translateY(-2px);
}

.botonera_button:active {
    transform: translateY(0);
    background: rgba(199, 68, 106, 0.3);
    box-shadow: 0 0 15px rgba(199, 68, 106, 0.3);
}

.buttonActive {
    background: linear-gradient(135deg, rgba(199, 68, 106, 0.8), rgba(199, 68, 106, 0.5));
    border-color: rgba(199, 68, 106, 0.6);
    color: white;
    box-shadow: 0 0 25px rgba(199, 68, 106, 0.3), 0 0 60px rgba(199, 68, 106, 0.1);
}

.buttonActive:hover {
    background: linear-gradient(135deg, rgba(199, 68, 106, 0.9), rgba(199, 68, 106, 0.6));
    box-shadow: 0 0 30px rgba(199, 68, 106, 0.4), 0 0 80px rgba(199, 68, 106, 0.15);
}

.logo.logo-small {
    width: 100px;
    max-width: 100px;
    margin-top: 0;
    top: 10px;
    left: 10px;
}

@keyframes entradaLogo {
    0% {
        transform: translateY(30dvh);
        opacity: 0;
    }

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

@keyframes entradaEficio {
    0% {
        transform: translateX(12dvh);

    }

    100% {
        transform: translateY(0);

    }
}

@keyframes entradaEficioSecundario {
    0% {
        transform: translateX(-20dvh);
        opacity: 0;
    }

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

@keyframes entradaPiso {
    to {
        opacity: 1;
    }
}


.containerCards {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 1em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 1.2em;
    position: relative;
    z-index: 999;
    min-height: 200dvh;
    position: sticky;
    top: 120px;
}

.card {
    position: sticky;
    top: 120px;
    height: 100%;
}

.card_inner {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: background 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card_inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 60%, transparent 100%);
    border-radius: 16px 16px 0 0;
}

@media (hover: hover) {
    .card_inner:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

@keyframes featuredGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 16px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.52);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 48px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
}

.card_inner--featured {
    background: rgba(255, 255, 255, 0.11);
    animation: featuredGlow 3s ease-in-out infinite;
}

.card_inner--featured::before {
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 60%, transparent 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@media (hover: hover) {
    .card_inner--featured:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.55);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 50px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.card_inner.card--hidden {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transition: none;
}

.card_inner.card--hidden::before {
    display: none;
}

.card_body {
    flex: 1;
    padding: 1.4em 1.4em 1em;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    overflow: hidden;
}

.card_footer {
    padding: 0.75em 1.4em;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.card_footer_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
}

add-to-calendar-button {
    flex-shrink: 0;
}

.atcb-bgoverlay {
    display: none !important;
}

.card_ponencia {
    font-size: 1em;
    font-weight: 600;
    color: white;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card_ponente {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card_horario {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.22em 0.65em;
    border-radius: 50px;
}

.card_lugar {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (width < 700px) {
    .containerLogo {
        align-items: center;
    }

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

@media (width < 500px) {
    .containerCards {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .botonera {
        flex-direction: column;
        align-items: center;
        gap: 0.8em;
    }

    .botonera_button {
        max-width: 280px;
        font-size: 0.9em;
        padding: 0.65em 1.8em;
    }

    .card {
        top: 200px;
    }
}

@media (width < 400px) {
    .botonera_button {
        max-width: 100%;
        font-size: 0.85em;
        padding: 0.6em 1.5em;
    }
}

/* ── Scroll hint ── */
.scroll-hint {
    position: fixed;
    right: 12%;
    top: 58%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9em;
    pointer-events: none;
    opacity: 0;
    animation: scrollHintFadeIn 1s ease forwards;
    animation-delay: 2.5s;
    transition: opacity 0.5s ease;
}

.scroll-hint--hidden {
    opacity: 0 !important;
}

.scroll-hint_text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    max-width: 200px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.scroll-hint_arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-hint_arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    animation: arrowPulse 1.6s ease-in-out infinite;
}

.scroll-hint_arrow:nth-child(1) { animation-delay: 0s; }
.scroll-hint_arrow:nth-child(2) { animation-delay: 0.2s; }
.scroll-hint_arrow:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollHintFadeIn {
    to { opacity: 1; }
}

@keyframes arrowPulse {
    0%   { opacity: 0.15; transform: rotate(45deg) translate(-3px, -3px); }
    50%  { opacity: 1;    transform: rotate(45deg) translate(3px, 3px); }
    100% { opacity: 0.15; transform: rotate(45deg) translate(-3px, -3px); }
}

@media (width < 700px) {
    .scroll-hint {
        right: 0;
        left: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        align-items: center;
    }
}

/* ── Skeleton loader ── */
@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes skFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card--skeleton {
    animation: skFadeIn 0.35s ease both;
    animation-delay: var(--sk-delay, 0s);
}

.card_inner--skeleton {
    cursor: default;
    pointer-events: none;
    gap: 0.75em;
}

.card_inner--skeleton:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
}

.sk-line {
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.13) 40%,
        rgba(255, 255, 255, 0.05) 80%
    );
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    animation-delay: var(--sk-delay, 0s);
}

.sk-title   { height: 1.05em; }
.sk-ponente { height: 0.9em;  width: 62%;
    background: linear-gradient(
        90deg,
        rgba(199, 68, 106, 0.15) 0%,
        rgba(199, 68, 106, 0.32) 40%,
        rgba(199, 68, 106, 0.15) 80%
    );
    background-size: 200% 100%;
}
.sk-horario { height: 0.85em; width: 44%; }
.sk-lugar   { height: 0.8em;  width: 56%; }

/* ── Modal ── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.modal--open {
    opacity: 1;
    pointer-events: all;
}

.modal_inner {
    position: relative;
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    padding: 2em 2em 1.8em;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(32px) saturate(1.5);
    -webkit-backdrop-filter: blur(32px) saturate(1.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.modal--open .modal_inner {
    transform: scale(1) translateY(0);
}

.modal_close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    line-height: 1;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.modal_close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.modal_ponencia {
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    line-height: 1.35;
    padding-right: 2.2em;
}

.modal_ponente {
    font-size: 1em;
    color: rgba(199, 68, 106, 0.95);
    font-weight: 500;
}

.modal_horario {
    font-size: 0.92em;
    color: rgba(255, 255, 255, 0.65);
}

.modal_lugar {
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.48);
    font-style: italic;
}

/* ── Avatar character ── */
.avatar-character {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    height: 55vh;
    pointer-events: none;
    will-change: opacity, transform;
}

.avatar-character img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    animation: avatarEntrada 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.2s;
}

@keyframes avatarEntrada {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .avatar-character {
        height: 38vh;
    }
}
