/* --- Variables & Reset --- */
:root {
    --primary-color: #b164e0; /* Morado */
    --secondary-color: #fce4ec; /* Rosa pálido */
    --accent-color: rgb(255, 130, 172); /* Rosa brillante */
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover-color: rgba(0, 0, 0, 0.2);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white); /* Fondo principal limpio */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; color: var(--primary-color); }


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .accent {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.controls {
    display: flex;
    align-items: center;
}

/* Language Switcher */
.lang-switcher button {
    background: none;
    border: 1px solid var(--light-gray);
    padding: 5px 8px;
    margin-left: 5px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-switcher button:hover {
    background-color: var(--light-gray);
}

.lang-switcher button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Burger Menu (Mobile) */
.burger {
    display: none; /* Hidden by default */
    cursor: pointer;
    margin-left: 20px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--secondary-color); /* Fondo rosa pálido */
    /* Optional: Add background image here */
    /* background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/hero-bg.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    padding: 6rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px; /* Estilo píldora */
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #d81b60; /* Darker accent */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-hover-color);
}

.view-more-button {
     display: inline-block;
     margin-top: 2rem;
     padding: 8px 18px;
     border: 1px solid var(--primary-color);
     color: var(--primary-color);
     border-radius: 20px;
     transition: background-color 0.3s ease, color 0.3s ease;
}

.view-more-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}


/* --- Gallery Preview (Home) --- */
.gallery-preview {
    padding: 4rem 0;
    text-align: center;
}

.gallery-preview h2 {
    margin-bottom: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item img {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
     box-shadow: 0 8px 20px var(--shadow-hover-color);
}

/* --- Commissions Page --- */
.intro-text {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.commissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.commission-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-color);
    overflow: hidden; /* Ensure image corners are rounded */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.commission-card:hover {
     box-shadow: 0 8px 20px var(--shadow-hover-color);
}

.commission-card img {
    display: block;
    width: 100%;

    /* --- CAMBIOS CLAVE --- */
    /* Define una altura fija para el espacio de la imagen */
    height: 250px;             /* << AJUSTA ESTE VALOR según necesites */
    /* Ya no usamos 'auto', ni 'max-height' */

    object-fit: contain;       /* Mantiene la imagen completa DENTRO de la altura fija */
    /* --- FIN CAMBIOS CLAVE --- */

    background-color: #f0f0f0; /* Un gris un poco más oscuro para el fondo */
    border-radius: 8px 8px 0 0; /* Redondear esquinas superiores */
    /* Asegúrate que no haya overflow: hidden aquí, debe estar en .commission-card */
}

.card-content {
    /* ... otros estilos ... */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que esta sección ocupe el espacio restante */
    padding: 1.5rem; /* Asegúrate de tener padding */
    /* Un min-height aquí puede ayudar a igualar un poco más las tarjetas
       si el texto varía mucho, pero no es estrictamente para la imagen */
    /* min-height: 280px; */
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-content p {
    margin-bottom: 1rem;
    flex-grow: 1; /* Push price and button down */
}

.card-content .cta-button {
    margin-top: auto;       /* Mantiene el botón abajo */

    /* --- CAMBIO AQUÍ --- */
    align-self: center;   /* Cambia de flex-start a center */
    /* --- FIN DEL CAMBIO --- */

    /* Otros estilos del botón que ya tengas (padding, font-size, etc.) */
    /* Ej: padding: 10px 20px; */
    /* Ej: font-size: 0.9rem; */
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem !important; /* Override default p margin */
}

.price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    margin-right: 5px;
}

.add-ons {
    list-style: none;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding-left: 0;
}
.add-ons li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 15px;
}
.add-ons li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.commission-process {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.commission-process h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.commission-process ol {
    padding-left: 20px;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

.commission-process li {
    margin-bottom: 0.8rem;
}
.commission-process p {
    text-align: center;
    font-size: 0.9rem;
}


/* --- Terms & Conditions Page --- */
.tos-content section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}
.tos-content section:last-of-type {
    border-bottom: none;
}

.tos-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tos-content p, .tos-content li {
    margin-bottom: 0.8rem;
}

.tos-content ul {
    list-style: disc;
    padding-left: 25px;
}
.tos-content ul[data-lang="tos_wontdo_list"] {
    list-style: none; /* Quitar viñetas por defecto */
    padding-left: 0;  /* Quitar padding por defecto */
    margin-top: 1rem; /* Espacio sobre la lista */
}

.tos-content ul[data-lang="tos_wontdo_list"] li {
     position: relative;      /* Para posicionar el ::before */
     padding-left: 25px;      /* Espacio a la izquierda para el icono */
     margin-bottom: 0.8rem;   /* Espacio entre elementos */
     line-height: 1.4;        /* Mejorar legibilidad */
     font-size: 0.95rem;      /* Ajustar tamaño si es necesario */
}

.tos-content ul[data-lang="tos_wontdo_list"] li::before {
    content: '✕';             /* El carácter de cruz */
    position: absolute;
    left: 0;
    top: 1px;                /* Ajuste fino vertical */
    color: var(--accent-color); /* Usar color de acento (o un rojo/primario) */
    font-weight: bold;
    font-size: 1.1em;         /* Hacer el icono un poco más grande */
    line-height: 1;          /* Alinear icono verticalmente */
}


/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: var(--light-gray);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem; /* Add space before footer */
}

footer p {
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh; /* Adjust based on header height */
        top: 70px; /* Header height */
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%); /* Hide off-screen */
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px var(--shadow-color);
    }

    .nav-links li {
        margin-left: 0;
        opacity: 0; /* For fade-in animation */
        padding: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .burger {
        display: block; /* Show burger */
    }

    .nav-active {
        transform: translateX(0%); /* Slide in */
    }

    /* Animate Links */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding: 4rem 0;
        min-height: 50vh;
    }

    .gallery-grid, .commissions-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 1.5rem;
    }

     .commission-card img {
        height: 200px;
    }

    .controls {
        /* Ensure controls stay visible */
    }
}


/* --- Status Indicator (Header) --- */
.status-indicator {
    display: inline-block;
    padding: 3px 10px;
    margin-left: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 12px; /* Pill shape */
    border: 1px solid transparent;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    vertical-align: middle; /* Align with logo text */
}

.status-indicator.loading {
    background-color: var(--light-gray);
    color: #888;
    border-color: #ddd;
}

.status-indicator.open {
    background-color: #e8f5e9; /* Light Green */
    color: #2e7d32; /* Dark Green */
    border-color: #a5d6a7;
}
.status-indicator.open::before {
    content: "● "; /* Circle character */
    color: #4caf50; /* Bright Green */
}

.status-indicator.waitlist {
    background-color: #fff3e0; /* Light Orange */
    color: #e65100; /* Dark Orange */
    border-color: #ffcc80;
}
.status-indicator.waitlist::before {
    content: "● ";
    color: #ffa726; /* Bright Orange */
}

.status-indicator.closed {
    background-color: #fce4ec; /* Light Pink/Red */
    color: #ad1457; /* Dark Pink/Red */
    border-color: #f8bbd0;
}
.status-indicator.closed::before {
    content: "● ";
    color: #e57373; /* Bright Red */
}
.status-indicator.error {
     background-color: #ffebee; /* Light Red */
     color: #c62828; /* Dark Red */
     border-color: #ef9a9a;
}

/* --- Waitlist Page Visual Container --- */
.status-visual-container {
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 12px;
    margin-top: 2rem;
    transition: background-color 0.4s ease, border 0.4s ease;
    border: 2px dashed transparent; /* Start transparent */
}

.status-visual-container.loading {
    background-color: var(--light-gray);
    border-color: #e0e0e0;
}
.status-visual-container.open {
    background-color: #e8f5e9; /* Light Green */
    border-color: #a5d6a7;
}
.status-visual-container.waitlist {
    background-color: #fffde7; /* Light Yellow */
    border-color: #fff59d;
}
.status-visual-container.closed {
    background-color: #f5f5f5; /* Neutral Gray */
    border-color: #e0e0e0;
}
.status-visual-container.error {
    background-color: #ffebee; /* Light Red */
    border-color: #ef9a9a;
}


.status-visual-container .status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1; /* Prevent extra space */
}

/* Icon colors */
.status-visual-container.open .status-icon { color: #4caf50; }
.status-visual-container.waitlist .status-icon { color: #ffb300; }
.status-visual-container.closed .status-icon { color: #bdbdbd; }
.status-visual-container.loading .status-icon { color: #9e9e9e; }
.status-visual-container.error .status-icon { color: #f44336; }


.status-visual-container .status-text {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.status-visual-container.open .status-text { color: #2e7d32; }
.status-visual-container.waitlist .status-text { color: #e65100; }
.status-visual-container.closed .status-text { color: #616161; }
.status-visual-container.loading .status-text { color: #757575; }
.status-visual-container.error .status-text { color: #c62828; }

.status-visual-container .status-message {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    min-height: 1.5em; /* Prevent layout shift if message is empty */
}

.status-visual-container .status-cta .cta-button {
    /* Use existing cta-button style */
}

/* Responsive adjustments for status indicator if needed */
@media (max-width: 768px) {
    .status-indicator {
        display: block; /* Stack below logo on mobile maybe? */
        margin-left: 0;
        margin-top: 5px;
        text-align: center; /* Center if stacked */
        font-size: 0.75rem;
        padding: 2px 8px;
    }
     .status-visual-container {
        padding: 2rem 0.5rem;
    }
     .status-visual-container .status-icon {
        font-size: 2.5rem;
    }
    .status-visual-container .status-text {
        font-size: 1.5rem;
    }
     .status-visual-container .status-message {
        font-size: 1rem;
    }
}

/*NEWWWW----------------------------------------------------------------------------
/* NUEVO: Estilos para la lista de Slots */
.slots-list-container {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left; /* Alinear texto de slots a la izquierda dentro del contenedor centrado */
    max-width: 450px; /* Limitar ancho para mejor lectura */
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5); /* Fondo semi-transparente ligero */
    border-radius: 8px;
}

.slots-list-container h3 { /* Título de la sección de slots */
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-align: center;
}

.slots-list-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slots-list-container li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--light-gray);
    display: flex; /* Usar flex para alinear elementos */
    justify-content: space-between; /* Espacio entre nombre y fecha */
    align-items: center;
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--light-gray);
    transition: background-color 0.2s ease; /* Transición suave para hover/highlight */
}

.slots-list-container li:last-child {
    border-bottom: none;
}

.slots-list-container .slot-name {
    font-weight: 500;
    color: #555;
    margin-right: 10px;
    display: flex; /* Asegurar alineación de icono y texto */
    align-items: center;
}
.slots-list-container .slot-icon {
    margin-right: 8px;
    color: var(--accent-color);
    opacity: 0.7;
}

.slots-list-container .slot-date {
    color: var(--text-color);
    font-family: monospace; /* Opcional: Para fechas alineadas */
    font-size: 0.9rem;
}

/* NUEVO: Estilo para slots disponibles */
.slots-list-container li.available {
    background-color: #e8f5e9; /* Verde muy pálido */
    border-left: 4px solid #66bb6a; /* Borde izquierdo verde */
    padding-left: 10px; /* Añadir padding para el borde */
}
.slots-list-container li.available .slot-name {
    color: #2e7d32; /* Texto verde oscuro */
    font-weight: bold;
}
.slots-list-container li.available .slot-icon {
     color: #4caf50; /* Icono verde brillante */
     opacity: 1;
}
.slots-list-container li.available .slot-date {
    font-style: italic;
    color: #555;
}



/* NUEVO: Estilos para el texto de aviso de Waitlist */
.disclaimer-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: #fffbec; /* Amarillo muy pálido */
    border: 1px solid #ffe58f; /* Borde amarillo pálido */
    border-radius: 6px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Ocultar contenedores inicialmente o cuando no apliquen */
#commission-slots-container:empty,
#waitlist-disclaimer:empty {
    display: none;
}

/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* --- Gallery Page - Masonry Layout --- */
.masonry-container {
    /* Define columnas - Ajusta según tus preferencias */
    column-count: 4; /* Default para pantallas grandes */
    column-gap: 1rem; /* Espacio entre columnas */
    padding: 1rem 0; /* Espacio arriba/abajo */
    margin: 2rem auto;
    max-width: 1200px;
}

.masonry-item {
    display: inline-block; /* Necesario para que funcione con column-count */
    width: 100%;          /* Ocupar el ancho de la columna */
    margin-bottom: 1rem; /* Espacio debajo de cada item */
    position: relative;    /* Para posicionar el nombre del cliente */
    overflow: hidden;      /* Ocultar partes del caption que salgan */
    border-radius: 8px;    /* Bordes redondeados (opcional) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra suave (opcional) */
    /* Intentar evitar que un item se rompa entre columnas */
    break-inside: avoid;
    page-break-inside: avoid; /* Soporte antiguo */
    -webkit-column-break-inside: avoid; /* Soporte webkit */
}

.masonry-item img {
    display: block; /* Elimina espacio extra debajo */
    width: 100%;
    height: auto;   /* Altura automática basada en el contenido */
    border-radius: 8px; /* Heredar borde redondeado */
    transition: transform 0.4s ease; /* Transición suave para zoom */
}

.masonry-item:hover img {
    transform: scale(1.04); /* Ligero zoom al pasar el ratón */
}

.masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0)); /* Gradiente oscuro desde abajo */
    color: #ffffff;
    padding: 1.8rem 0.8rem 0.6rem 0.8rem; /* Más padding arriba para el gradiente */
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    opacity: 0; /* Oculto por defecto */
    transform: translateY(15px); /* Ligeramente abajo */
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* No bloquear hover de la imagen */
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
    transform: translateY(0); /* Subir a su posición final */
}

/* Responsive Columns */
@media (max-width: 1000px) {
    .masonry-container { column-count: 3; }
}
@media (max-width: 768px) {
    .masonry-container { column-count: 2; column-gap: 0.8rem; }
    .masonry-item { margin-bottom: 0.8rem; }
    .masonry-caption { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .masonry-container { column-count: 1; } /* Una sola columna en móviles */
}

/* Estilos para texto de carga/error */
.masonry-container .loading-text,
.masonry-container .error-text {
    width: 100%;
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    /* Hacer que ocupe todas las columnas si están definidas */
    column-span: all;
    -webkit-column-span: all; /* Soporte webkit */
}
.masonry-container .error-text {
    color: #c00; /* Color rojo para errores */
}
/* Estilo para items con error de imagen (opcional) */
.masonry-item.image-error {
     background-color: #eee; /* Fondo gris si la imagen falla */
}



/* --- Lightbox Styles --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Asegurar que esté por encima de todo */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s; /* Transición suave */
    cursor: pointer; /* Indicar que se puede cerrar haciendo clic fuera */
}

.lightbox-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.lightbox-content {
    position: relative; /* Para posicionar botón e imagen */
    max-width: 90%;
    max-height: 90%;
    display: flex; /* Usar flex para centrar imagen si es pequeña */
    align-items: center;
    justify-content: center;
    cursor: default; /* Evitar que el cursor pointer se aplique aquí */
    overflow: hidden; /* Asegurar que la marca de agua no se desborde */
    /* background-color: #fff; */ /* Opcional: fondo blanco para la imagen */
    /* padding: 10px; */      /* Opcional: padding */
    /* border-radius: 5px; */ /* Opcional: bordes redondeados */
}

#lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%; /* Limitar tamaño a contenedor */
    height: auto;
    width: auto; /* Permitir que la imagen mantenga su aspect ratio */
    object-fit: contain; /* Asegurar que toda la imagen sea visible */
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* --- Watermark Styles --- */
.lightbox-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* No interferir con clics */
    opacity: 0.3;       /* Sutilidad de la marca de agua (ajustar) */
    background-repeat: repeat;
    /* El background-image se establecerá con JS */
    z-index: 1; /* Asegurar que esté sobre la imagen */
}

/* Clase para ocultar */
.hidden {
    display: none; /* Usar display none inicialmente para evitar flashes */
                   /* La transición se maneja al quitar/poner la clase */
}

/* Ajuste para transición con display none */
.lightbox-overlay.visible {
    display: flex;
}


/* --- Disable Image Interaction --- */

/* Aplicar a las imágenes de la galería y del lightbox */
.masonry-item img,
.gallery-item img,
.commission-card img,
#lightbox-image {
    /* Prevenir menú contextual (reforzado con JS) */
    pointer-events: none; /* Puede ayudar a prevenir drag-and-drop */

    /* Evitar selección (más útil para texto, pero no daña) */
    user-select: none; /* Standard syntax */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */

    /* Evitar arrastre (no funciona en todos los navegadores) */
    -webkit-user-drag: none;
    user-drag: none; /* Firefox */
    -moz-user-drag: none; /* Firefox */
}

/* Asegurarse que el contenedor del item SÍ sea clickeable para abrir el lightbox */
.masonry-item {
    cursor: pointer; /* Indicar que el contenedor es clickeable */
}



/* --- Commission Style Switcher --- */
.style-selector-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.style-switcher {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px; /* Espacio entre botones */
    margin-bottom: 1rem;
}

.style-switcher button {
    padding: 8px 18px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid var(--light-gray);
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 20px; /* Estilo píldora */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.style-switcher button:hover {
    background-color: var(--secondary-color); /* Rosa pálido */
    border-color: var(--accent-color);
}

.style-switcher button.active {
    background-color: var(--primary-color); /* Morado */
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 700;
}

.current-style-display {
    font-size: 1rem;
    color: #555;
}
.current-style-display strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Ajuste para precio */
.commission-price .price-value {
    /* Estilo específico si necesitas */
}

/* --- Info Button & Popup Styles --- */
.info-button {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.info-button:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.info-button svg {
    width: 20px;
    height: 20px;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
}

/* Popup Content */
.popup-content {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Popup Header */
.popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.popup-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-name h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: #8e24aa;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-subtitle {
    color: #ad7a99;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* Popup Description */
.popup-description {
    margin-bottom: 25px;
}

.popup-description p {
    color: #5d4037;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.popup-status {
    background: rgba(139, 195, 74, 0.2);
    color: #558b2f;
    padding: 8px 15px;
    border-radius: 15px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid rgba(139, 195, 74, 0.3);
}

/* Social Links */
.popup-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-link.twitter {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.social-link.vgen {
    background: linear-gradient(135deg, #7ed321, #6cc015);
}

.social-link.kofi {
    background: linear-gradient(135deg, #ff5f5f, #ff3838);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Popup Actions */
.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.popup-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(142, 36, 170, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8e24aa;
    font-weight: 600;
    text-transform: lowercase;
    font-size: 0.9rem;
}

.popup-action-btn:hover {
    background: #8e24aa;
    color: white;
    border-color: #8e24aa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 36, 170, 0.3);
}

.popup-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Popup Footer */
.popup-footer {
    border-top: 1px solid rgba(142, 36, 170, 0.2);
    padding-top: 15px;
}

.popup-credit {
    color: #ad7a99;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Responsive Design for Popup */
@media (max-width: 480px) {
    .popup-content {
        padding: 25px 20px;
        margin: 20px;
    }
    
    .popup-avatar {
        width: 100px;
        height: 100px;
    }
    
    .popup-name h2 {
        font-size: 1.5rem;
    }
    
    .popup-social {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .info-button {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .info-button svg {
        width: 18px;
        height: 18px;
    }
}