* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    min-height: 100vh;
}

/* Header Móvil (Oculto en PC) */
.mobile-header {
    display: none;
}

/* Sidebar / Índice en Escritorio */
.sidebar {
    width: 260px;
    background-color: #181818;
    padding: 40px 30px;
    border-right: 1px solid #222;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 90;
}

.brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #ffffff;
    text-transform: uppercase;
}

.nav-index {
    list-style: none;
}

.nav-index li {
    margin-bottom: 18px;
}

.nav-index a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-index a:hover,
.nav-index a.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 4px;
}

/* Galería Principal */
.main-content {
    margin-left: 260px;
    padding: 40px;
    width: calc(100% - 260px);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.photo-card {
    position: relative;
    margin-bottom: 20px;
    break-inside: avoid;
    overflow: hidden;
    
    /* MODIFICACIONES DE DISEÑO (Borde y Fondo) */
    border-radius: 12px;                  /* Curvatura de las esquinas */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde fino sutil */
    background: #1e1e1e;                  /* Fondo de la tarjeta */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Sombra para dar profundidad */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Opcional: efecto al pasar el mouse por encima */
.photo-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.photo-card img {
    width: 100%;
    display: block;
    height: auto;
    pointer-events: none;
}

.protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0);
}

/* --- REGLAS EXCLUSIVAS PARA CELULARES Y TABLETS --- */
/* --- REGLAS EXCLUSIVAS PARA CELULARES Y TABLETS --- */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #181818;
        padding: 12px 15px;
        border-bottom: 1px solid #222;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .mobile-brand {
        font-size: 15px;
        font-weight: bold;
        color: #fff;
        letter-spacing: 1px;
    }

    .menu-toggle {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }

    .sidebar {
        display: none;
        position: relative;
        width: 100%;
        height: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .sidebar.active {
        display: block;
    }

    .sidebar .brand {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 10px; /* Se reduce el margen general para aprovechar espacio */
    }

    /* FORZAR 2 COLUMNAS Y REDUCIR TAMAÑO EN CELULARES */
    .masonry-grid {
        column-count: 2 !important; /* Fuerza las 2 columnas en pantallas chicas */
        column-gap: 8px !important;  /* Espacio estrecho entre columnas */
    }

    .photo-card {
        margin-bottom: 8px !important; /* Reduce la distancia vertical entre tarjetas */
        border-radius: 6px !important;  /* Borde redondeado más ajustado al tamaño chico */
    }
}
@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}