* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(-45deg, #009b3a, #fedf00, #002776);
    background-size: 400% 400%;
    animation: brasilGradient 8s ease infinite;
    min-height: 100vh;
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

@keyframes brasilGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header {
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
    padding: .1rem 0;
    position: fixed;
    top: 0;
    border-bottom: 2px solid #009C3B;
    box-shadow: 0 0 10px #009c3b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    margin: auto;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 .3rem #fedf00);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.cursor-pointer-logo:hover {
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem #fedf00);
    transform: translateY(-5px);
}

.cart-count {
    color: #000000;
    background-color: #ffffff;
    border-radius: .5rem;
    margin: auto 0;
    padding: .1rem .5rem;
    font-size: .8rem;
    font-weight: 600;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    border: 1px solid #ffffff;
    box-shadow: 0 0 5px #ffdd00;
    display: flex;
}

.cart-button {
    color: white;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #ffffff0d;
    border: 1px solid #ffe203;
    border-radius: 100px;
    align-items: center;
    gap: .40rem;
    padding: .6rem 1.2rem;
    font-size: .9rem;
    font-weight: 600;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
}

.cart-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

button {
    cursor: pointer;
    font-family: sans-serif;
}

.cart-button:hover {
    filter: drop-shadow(0 0 .2rem #ffffff);
    transform: translateY(-4px);
}

.Adm-Button {
    background: #009c3c31;
    border: 1px solid #009C3B;
    border-radius: 20px;
    align-items: center;
    gap: .50rem;
    padding: 0.5rem;
    margin: 0.5rem;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
}

.Adm-Button:hover {
    filter: drop-shadow(0 0 .1rem #009C3B);
    transform: translateY(-3px);
}

.adm-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%) drop-shadow(0 0 .1rem #ffffffbb);
}

.instagram-link {
    display: flex;
    align-items: center;
}

.instagram-icon {
    width: 1.8rem;
    height: 1.8rem;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%) drop-shadow(0 0 .4rem #ffffff);
}

.hero {
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
    padding: 12rem 1.5rem 8rem;
}

.text-pasion {
    color: #ffdf00;
}

.highlight {
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
    font-style: italic;
    display: block;
}

.hero-title {
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
    font-style: italic;
}

.hero-description {
    text-transform: uppercase;
    color: #000000;
    text-shadow: 0 0 10px #fcfcfcb4;
    max-width: 650px;
    margin: 50px auto 0;
    font-size: 1.3rem;
    font-weight: 650;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
    font-style: italic;
}

.section-gallery {
    padding-bottom: 8rem;
    padding-top: 100px;
    background-color: rgba(0, 0, 0, 0.70);
    box-shadow: 0px 0px 10px black;
    max-width: 1500px;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ffdf00;
    padding-bottom: 1rem;
    font-family: 'Arial Black', sans-serif;
    color: white;
}

.gallery-title-highlight {
    color: #ffdf00;
    text-shadow: 0 0 5px #ffdf00;
    font-style: italic;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding-bottom: 8rem;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

.carrito-modal-overlay {
    z-index: 100;
    background: #000000d9;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    display: flex;
    position: fixed;
    inset: 0;
}

.carrito-modal-content {
    background: #ffdd00;
    border: 1px solid #ffdd00;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 0px 50px -12px rgb(255, 255, 255);
}

.carrito-modal-close {
    color: black;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    border: 1px solid rgb(255, 255, 255);
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-weight: 600;
}

.carrito-modal-title {
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 900;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
}

.empty-cart {
    text-align: center;
    color: #474747;
    padding: 3rem 0;
}

.empty-cart-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}

.container-hidden, .admin-overlay {
    background: #000000d9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 100;
    position: fixed;
    inset: 0;
}

.card, .adm-content-overlay {
    background-color: #000000bb;
    width: 100%;
    max-width: 550px;
    border-radius: 9px;
    padding: 2.5rem;
    color: white;
    position: relative;
}

.input-group input, .albname, .date, .photo-price-input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #fff;
    margin-bottom: 10px;
}

.btn-primary, .btn-secondary, .Submit {
    padding: 0.6rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

/* Panel de administrador: selección de marca de agua y fotos */
.selections-btn {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.mark-title {
    color: #ffdf00;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-top: 0.6rem;
}

/* El input de archivo real queda oculto visualmente (pero accesible);
   lo que se ve y se clickea es el .custom-file-btn de al lado */
.mark {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-file-btn {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: #ffffff0d;
    border: 1px solid #ffe203;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.custom-file-btn:hover {
    filter: drop-shadow(0 0 .2rem #ffffff);
    transform: translateY(-2px);
}

#file-name, #file-names {
    display: block;
    color: #ffffffbb;
    font-size: 0.8rem;
    word-break: break-word;
}

.Submit {
    background: #009c3b;
    color: #fff;
    width: 100%;
    margin-top: 1.2rem;
    transition: all .3s ease;
}

.Submit:hover {
    background: #00b845;
}

.Submit:disabled {
    background: #555;
    color: #ccc;
    cursor: not-allowed;
}

.album-card {
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #ffffff14;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

.album-card:hover {
    border-color: #ffdd00;
    transform: translateY(-5px);
}

.album-cover-container {
    aspect-ratio: 16/9;
    background: #111;
    position: relative;
    overflow: hidden;
}

.album-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.album-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
}

.album-info {
    padding: 1rem;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    width: 100%;
}

.photo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.85);
}

.photo-price {
    color: #ffdf00;
    font-weight: 900;
    font-size: 1.1rem;
}

.btn-select {
    background: #009c3b;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
}

.btn-select.selected {
    background: #fedf00;
    color: #000;
}

/* Botón flotante para eliminar álbumes */
.delete-album-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.delete-album-btn:hover {
    background-color: rgb(239, 68, 68);
    transform: scale(1.1);
}

.cart-item-list {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #000;
}

.cart-total {
    margin-top: 1rem;
    text-align: right;
    font-size: 1.2rem;
    color: #000;
    border-top: 2px solid #000;
    padding-top: 0.5rem;
}

.payment-status-box {
    margin-top: 1rem;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.25rem;
}

.payment-success {
    background: rgba(0, 156, 59, 0.08);
    border: 1px solid rgba(0, 156, 59, 0.3);
}

.payment-success-icon {
    background-color: #009c3b;
}

.payment-pending {
    background: rgba(255, 159, 10, 0.08);
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.payment-pending-icon {
    background-color: #ff9f0a;
}

.payment-failure {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.payment-failure-icon {
    background-color: rgb(239, 68, 68);
}

.payment-status-title {
    margin: 0;
    color: #000;
    font-size: 1.2rem;
}

.payment-status-text {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.payment-download-btn {
    margin-top: 0.75rem;
    text-decoration: none;
    display: inline-block;
    padding: 12px 20px;
    background-color: #009c3b;
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary-back {
    padding: .6rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
/* Botón para eliminar fotos individualmente dentro del modal del carrito */
.cart-remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cart-remove-btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

/* Cursor de lupa sobre las fotos dentro de un álbum, para indicar que se pueden ampliar */
.photo-card .album-cover-container {
    cursor: zoom-in;
}

/* Lightbox: vista ampliada de la foto */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    .lightbox-close {
        width: 38px;
        height: 38px;
    }
}
/* --- Selector de álbum nuevo/existente (panel admin) --- */
.album-select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #fff;
    margin-bottom: 10px;
    background-color: #000000bb;
    color: #fff;
}

.upload-progress-note {
    display: block;
    color: #ffdf00;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    min-height: 1em;
}

/* =========================================================================
   PROTECCIONES ANTI-CAPTURA (disuasivas, no un bloqueo real)
   Ningún sitio web puede impedir una captura de pantalla del sistema
   operativo o de otro celular apuntando a la pantalla — eso queda fuera
   del control del navegador. Esto solo dificulta el guardado casual
   (clic derecho, arrastrar, seleccionar, tocar y mantener en el celular).
   La protección real sigue siendo la marca de agua hasta que se paga.
   ========================================================================= */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none; /* evita el menú "Guardar imagen" al mantener tocado en iOS */
}

.no-select-protect {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#screenshot-warning-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

#screenshot-warning-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Difumina las fotos mientras la pestaña/ventana no está a la vista
   (ver script.js, setupBlurOnAwayProtection). No aplica a los paneles
   de admin/login para no romper la carga de archivos mientras se difumina. */
body.capture-blur #home-screen img,
body.capture-blur #album-view-screen img,
body.capture-blur .lightbox-img {
    filter: blur(24px);
    transition: filter 0.15s ease;
}

/* Ctrl/Cmd + P ya está bloqueado por JS, pero si el usuario igual llega
   a abrir el diálogo de impresión, que no se imprima nada de la galería. */
@media print {
    #home-screen, #album-view-screen, #lightbox, .gallery {
        display: none !important;
    }
    body::before {
        content: "Este contenido está protegido y no está disponible para impresión.";
    }
}
