/* ================= COMPONENTES ================= */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 2em;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.18);
}

.btn.secondary {
    background: var(--secondary);
}

/* ================= COMPONENTE: LIGHTBOX ================= */
/* Evita el scroll del body cuando el lightbox está activo */
body.lightbox-active {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: #fff;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.lightbox-gallery-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #e30613 0%, #c40511 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.lightbox-gallery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.6);
    background: linear-gradient(135deg, #c40511 0%, #a00410 100%);
}

.lightbox-gallery-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(227, 6, 19, 0.5);
}

