:root {
    --ios-blue: #007AFF;
    --win95-gray: #c0c0c0;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.forest-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                url('fondocuarto.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

#notification-container {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.ios-notification {
    width: 280px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: slideFromTop 0.5s ease-out; /* Animación de caída */
    pointer-events: auto;
}

@keyframes slideFromTop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notif-header { display: flex; justify-content: space-between; font-size: 10px; color: #666; margin-bottom: 3px; }
.notif-body { font-size: 12px; color: #000; font-family: "Georgia", serif; font-style: italic; }

.iphone-frame {
    width: 250px;
    height: 520px; /* Mantén el tamaño que elegimos antes */
    background: #fff;
    border-radius: 35px;
    box-shadow: 0 0 0 10px #1a1a1a, 0 30px 60px rgba(0,0,0,0.7);
    position: relative;
    overflow: hidden; /* Esto es vital para que nada se salga del "vidrio" */
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.status-bar {
    height: 20px;
    padding: 12px 18px 0;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
}

.ios-header { padding: 0 15px; }
.app-title { color: var(--ios-blue); margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.header-main { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-top: 5px;    /* Aumenta este número para bajarlo */
    margin-bottom: 10px; /* Ajusta el espacio respecto a los álbumes de abajo */
}
.ios-header h1 { font-size: 22px; margin: 0; }
.blue-link { color: var(--ios-blue); font-size: 12px; }

.scroll-area {
    height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.scroll-area::-webkit-scrollbar {
    display: none;
}

.album-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 15px;
}

.album-item { cursor: pointer; text-align: left; }
.album-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    background: #f0f0f0;
    overflow: hidden;
    transition: transform 0.2s;
}
.album-thumb img { width: 100%; height: 100%; object-fit: cover; }
.album-name { font-size: 11px; font-weight: 500; display: block; margin-top: 4px; }
.album-count { font-size: 10px; color: #8e8e93; }

/* ESTILOS WINDOWS 95 */
.win95-window {
    position: absolute;
    width: 450px;
    background: var(--win95-gray);
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 2px;
    z-index: 50;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.4);
}

.win95-title-bar {
    background: #000080;
    color: white;
    padding: 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'MS Sans Serif', 'Arial', sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: move;
}

.win95-content {
    background: #fff;
    border: 2px inset #808080;
    margin: 2px;
    padding: 10px;
    min-height: 250px;
    overflow-y: auto;
}

.win95-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* NUEVOS ESTILOS PARA FOTOS CON DESCRIPCIÓN */
.foto-container {
    position: relative;
    display: block;        /* Cambiado de inline-block para mejor control en el grid */
    width: 100%;
    aspect-ratio: 1 / 1;   /* Asegura que el contenedor también sea 1x1 */
    overflow: hidden;      /* Mantiene todo dentro de los bordes cuadrados */
}

.foto-interactiva {
    width: 100%;           /* Ocupa todo el ancho de su columna */
    aspect-ratio: 1 / 1;   /* Fuerza a que la altura sea igual al ancho */
    object-fit: cover;     /* Recorta la imagen para llenar el cuadrado sin deformarse */
    filter: sepia(0.3) brightness(0.8);
    cursor: help;
    transition: 0.3s;
    display: block;        /* Elimina espacios extra debajo de la imagen */
}

.foto-interactiva:hover {
    filter: none;
    transform: scale(1.02);
}

/* EL GLOBO DE TEXTO (TOOLTIP) */
.globo-texto {
    visibility: hidden; /* Oculto por defecto */
    width: 100px; /* Tamaño del globo */
    background-color: rgba(255, 255, 255, 0.85); /* Blanco transparente */
    backdrop-filter: blur(5px); /* Desenfoque de fondo */
    color: #000;
    padding: 10px;
    border: 1px solid #808080;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    font-size: 10px;
    position: absolute;
    z-index: 9999;
    bottom: 50%; /* Aparece arriba de la foto */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

/* Mostrar globo al pasar el mouse por el contenedor */
.foto-container:hover .globo-texto {
    visibility: visible;
    opacity: 10;
    transform: translateX(-50%) translateY(-5px);
}

.tab-bar {
    position: absolute; /* Cambiado a absoluto para que flote sobre el scroll */
    bottom: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.85); /* Efecto translúcido */
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 0.5px solid #ccc;
    z-index: 20; /* Mayor que el área de scroll */
}

/* Título de la sección */
.section-subtitle {
    font-size: 17px;
    font-weight: 600;
    margin: 20px 15px 0px 15px;
    color: #000;
}

/* Contenedor de la lista */
.text-album-list {
    background-color: #fff;
    margin-left: 15px; /* Sangría a la izquierda para la línea divisoria */
}

/* Cada fila de la lista */
.text-album-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px 12px 0;
    border-bottom: 0.5px solid #c6c6c8; /* Línea gris fina de iOS */
    cursor: pointer;
}

.text-album-item:last-child {
    border-bottom: none; /* Quita la línea del último elemento */
}

/* Texto del título */
.text-album-title {
    font-size: 16px;
    color: var(--ios-blue); /* Color azul característico */
}

/* Parte derecha (número y flecha) */
.text-album-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-album-count {
    color: #8e8e93;
    font-size: 15px;
}

.text-album-arrow {
    color: #c4c4c6;
    font-size: 18px;
    font-weight: 300;
}

.tab { text-align: center; font-size: 8px; color: #8e8e93; }
.tab.active { color: var(--ios-blue); }
.tab span { font-size: 20px; display: block; }
.home-indicator { position: absolute; bottom: 4px; width: 80px; height: 4px; background: #000; left: 50%; transform: translateX(-50%); border-radius: 10px; }