/* --- Estilos Generales y Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0D0D0D;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* --- Contenedor del "Teléfono" --- */
.phone-container {
    width: 100%;
    max-width: 450px; /* Tamaño ideal tipo mockup móvil */
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #0D0D0D;
}

/* --- Pantalla Interna Redondeada --- */
.app-screen {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 24px;
    flex-grow: 1;
    margin-bottom: 16px;
    overflow-y: auto;
    position: relative;
}

.app-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* --- Componentes: Tarjetas (Cards) --- */
.card {
    background-color: #1E1E1E;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.text-center { text-align: center; }

/* Distribución lado a lado en la Home */
.home-layout {
    display: flex;
    gap: 12px;
}
.card-main { flex: 1.2; }
.card-accent { flex: 0.8; }

.card h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.card-text {
    font-size: 11px;
    color: #AAAAAA;
    line-height: 1.4;
    margin-bottom: 16px;
}

.accent-text {
    font-size: 12px;
    margin-bottom: 16px;
}

/* --- Botones --- */
.btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta */
}
.btn-dark { background-color: #333333; color: white; }
.btn-danger { background-color: #8B0000; color: white; }

/* --- Pantalla: Crear Nueva --- */
.create-options {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.create-box {
    flex: 1;
    aspect-ratio: 1;
    border: 1px solid #555555;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.icon-big { font-size: 40px !important; margin-bottom: 8px; }

/* --- Pantalla: Calendario --- */
.calendar-card { position: relative; height: 100%; }
.calendar-month { font-size: 16px; margin-bottom: 12px; }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    color: #AAAAAA;
    font-weight: bold;
    margin-bottom: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    position: relative;
}

/* Acentos específicos de tus imágenes */
.day-green {
    border: 1px solid #00C853;
    color: #00C853;
    border-radius: 4px;
    font-weight: bold;
}
.day-pink {
    color: #FF0266;
    font-weight: bold;
}
.alert-dot {
    font-size: 9px;
    line-height: 1;
}

/* Botón flotante "+" en el calendario */
.fab-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: #1E1E1E;
    border: 1px solid #FFFFFF;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

/* --- Barra de Navegación Inferior (Idéntica al boceto) --- */
.bottom-nav {
    display: flex;
    height: 65px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    background-color: #0D0D0D;
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    gap: 4px;
}

/* El separador vertical entre pestañas */
.nav-tab:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

/* Estado activo: fondo blanco, letras negras e íconos negros */
.nav-tab.active {
    background-color: #FFFFFF;
    color: #000000;
}