
/* ============================================================
   Pasaporte del visitante
   ============================================================ */

.title-section {
    display: flex;
    justify-content: center;
    background-image: var(--gradient-primary);
    color: var(--light-text);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0% 100%);
    position: relative;
    z-index: 1;
}

.title-section .event-studio-info a:visited, 
.title-section .event-studio-info a {
    color: var(--light-text);
    text-decoration: underline;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.title-section h1 {
    font-size: 3.5rem;
}

.title-section p {
    color: var(--light-text);
    text-wrap: balance;
}


.passport-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.passport-preview img {
    max-width: 100%;
    width: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(108, 74, 226, 0.35);
    transition: box-shadow 0.3s ease;
}

.passport-preview img:hover {
    box-shadow: 0 12px 40px rgba(108, 74, 226, 0.5);
}

.passport-download {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.btn-passport-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: var(--gradient-primary);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(108, 74, 226, 0.4);
    transition: all 0.3s ease;
}

.btn-passport-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 74, 226, 0.55);
    color: var(--light-text);
}

.stamp-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: var(--gradient-accent);
    color: var(--light-text);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.stamps-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.stamp-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stamp-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(108, 74, 226, 0.2);
}

.stamp-item-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.stamp-item-link:hover {
    color: inherit;
}

.stamp-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stamp-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.stamp-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stamp-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.stamp-studio {
    font-size: 0.82rem;
    color: var(--muted-text);
}

@media (max-width: 768px) {
    .title-section h1 {
        font-size: 2rem;
    }

    .stamps-list {
        grid-template-columns: 1fr;
    }

    .passport-preview img {
        width: 100%;
    }
}

@media (max-width: 576px) {    
    .title-section h1 {
        font-size: 1.75rem;
    }
}


/* ============================================================
   passport.html — Sellos individuales
   ============================================================ */

.passport-title-section {
    min-height: 28vh;
    display: flex;
    align-items: center;
}

.passport-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

.passport-stamp-image {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
    animation: stamp-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.passport-stamp-image img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
}

@keyframes stamp-appear {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.passport-studio-name {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.passport-content-section {
    min-height: 60vh;
}

/* Tarjeta de información del juego */
.passport-info-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(108, 74, 226, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.passport-info-body {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    padding: 2rem;
}

.passport-info-desc {
    margin:auto 0;
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-text);
}

/* Contenedor de imágenes (espejo de estudios.css) */
.passport-info-card .info-portada {
    text-align: center;
    margin: auto;
    flex-shrink: 0;
}

.passport-info-card .info-portada img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    object-fit: cover;
}

/* Links de la info (espejo de estudios.css) */
.passport-info-card .info-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid var(--light-bg);
}

.passport-info-card .info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.passport-info-card .info-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Sección de sellos */
.passport-stamps-section {
    margin-top: 2rem;
}

.passport-stamps-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: bold;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sello activo (el que acaba de ser escaneado) */
.stamp-item-current {
    border-left-color: var(--secondary-color) !important;
    background: linear-gradient(90deg, rgba(0, 225, 217, 0.08) 0%, white 60%) !important;
}

.stamp-item-current .stamp-title {
    color: var(--secondary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .passport-info-body {
        flex-wrap: wrap;
    }

    .passport-info-card .info-portada img {
        max-width: 100%;
    }

    .passport-title-section {
        min-height: 22vh;
    }

    .passport-stamp-image img {
        width: 100px;
        height: 100px;
    }
}


/* ============================================================
   passport_invalid.html — Estado de error de QR
   ============================================================ */

.passport-status-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 3rem 1.5rem;
    gap: 1.25rem;
}

.passport-status-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.passport-status-error .passport-status-icon {
    background-color: rgba(255, 94, 91, 0.12);
    color: var(--accent-color);
}

.passport-status-page h1 {
    font-size: 2rem;
    color: var(--dark-text);
    margin: 0;
}

.passport-status-page p {
    font-size: 1.05rem;
    color: var(--muted-text);
    max-width: 420px;
    line-height: 1.6;
    margin: 0;
}

.passport-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--gradient-primary);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(108, 74, 226, 0.35);
    transition: all 0.3s ease;
}

.passport-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 74, 226, 0.5);
    color: var(--light-text);
}